Class AbstractInputCommandRegion

java.lang.Object
com.iohao.net.extension.client.AbstractInputCommandRegion
All Implemented Interfaces:
InputCommandRegion

public abstract class AbstractInputCommandRegion extends Object implements InputCommandRegion
AbstractInputCommandRegion
Author:
渔民小镇
date:
2023-07-10
  • Constructor Details

    • AbstractInputCommandRegion

      public AbstractInputCommandRegion()
  • Method Details

    • setCmd

      public void setCmd(int cmd)
    • setCmd

      public void setCmd(int cmd, String cmdName)
    • setUserId

      public void setUserId(long userId)
    • getUserId

      public long getUserId()
    • setClientUser

      public void setClientUser(ClientUser clientUser)
      Description copied from interface: InputCommandRegion
      设置 clientUser
      Specified by:
      setClientUser in interface InputCommandRegion
      Parameters:
      clientUser - clientUser
    • ofCommand

      protected InputCommand ofCommand(int subCmd)
      Creates a simulated command
      Parameters:
      subCmd - Sub-route (sub-command)
      Returns:
      InputCommand
    • ofCommand

      protected InputCommand ofCommand(int subCmd, String title)
    • ofListen

      protected void ofListen(CallbackDelegate callback, int subCmd, String title)
    • ofListen

      protected void ofListen(CallbackDelegate callback, CmdInfo cmd, String title)
    • ofRequestCommand

      public RequestCommand ofRequestCommand(int subCmd)
      Creates a request command execution
      Parameters:
      subCmd - Sub-route (sub-command)
      Returns:
      RequestCommand
    • ofRequestCommand

      public RequestCommand ofRequestCommand(CmdInfo cmdInfo)
      Creates a request command execution
      Parameters:
      cmdInfo - Route information
      Returns:
      RequestCommand
    • executeCommand

      public void executeCommand(int subCmd)