Class Command


  • public class Command
    extends Object
    Command Class used between to manage data between server and client
    • Constructor Detail

      • Command

        public Command​(String type,
                       String info)
        Simple Command Constructor
        Parameters:
        type - command type
        info - command info
      • Command

        public Command​(String type,
                       String funcName,
                       String info,
                       String funcData)
        Usable Command Constructor
        Parameters:
        type - command type
        funcName - command function to launch
        info - command info
        funcData - command data to use in the function
    • 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