Package it.polimi.ingsw.utils.model
Class Command
- java.lang.Object
-
- it.polimi.ingsw.utils.model.Command
-
public class Command extends Object
Command Class used between to manage data between server and client
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetFuncData()Get Command data to use with the function on serverStringgetFuncName()Get Command function to launch on serverStringgetInfo()Get Command infoBooleangetStatus()Get Command statusStringgetType()Get Command typevoidsetStatus(Boolean status)Set Command status
-
-
-
Method Detail
-
setStatus
public void setStatus(Boolean status)
Set Command status- Parameters:
status- command status
-
getStatus
public Boolean getStatus()
Get Command status- Returns:
- command status true = add, false = delete
-
getType
public String getType()
Get Command type- Returns:
- aggregation type of command
-
getInfo
public String getInfo()
Get Command info- Returns:
- command info stored
-
getFuncData
public String getFuncData()
Get Command data to use with the function on server- Returns:
- function data to use
-
getFuncName
public String getFuncName()
Get Command function to launch on server- Returns:
- function to run on server
-
-