Class AbstractInputCommandRegion
java.lang.Object
com.iohao.net.extension.client.AbstractInputCommandRegion
- All Implemented Interfaces:
InputCommandRegion
AbstractInputCommandRegion
- Author:
- 渔民小镇
- date:
- 2023-07-10
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidexecuteCommand(int subCmd) longprotected InputCommandofCommand(int subCmd) Creates a simulated commandprotected InputCommandprotected voidofListen(CallbackDelegate callback, int subCmd, String title) protected voidofListen(CallbackDelegate callback, CmdInfo cmd, String title) ofRequestCommand(int subCmd) Creates a request command executionofRequestCommand(CmdInfo cmdInfo) Creates a request command executionvoidsetClientUser(ClientUser clientUser) 设置 clientUservoidsetCmd(int cmd) voidvoidsetUserId(long userId) Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface InputCommandRegion
connectionComplete, initInputCommand, loginSuccessCallback
-
Constructor Details
-
AbstractInputCommandRegion
public AbstractInputCommandRegion()
-
-
Method Details
-
setCmd
public void setCmd(int cmd) -
setCmd
-
setUserId
public void setUserId(long userId) -
getUserId
public long getUserId() -
setClientUser
Description copied from interface:InputCommandRegion设置 clientUser- Specified by:
setClientUserin interfaceInputCommandRegion- Parameters:
clientUser- clientUser
-
ofCommand
Creates a simulated command- Parameters:
subCmd- Sub-route (sub-command)- Returns:
- InputCommand
-
ofCommand
-
ofListen
-
ofListen
-
ofRequestCommand
Creates a request command execution- Parameters:
subCmd- Sub-route (sub-command)- Returns:
- RequestCommand
-
ofRequestCommand
Creates a request command execution- Parameters:
cmdInfo- Route information- Returns:
- RequestCommand
-
executeCommand
public void executeCommand(int subCmd)
-