Package com.smartfoxserver.v2.api
Class APIManager
- java.lang.Object
-
- com.smartfoxserver.v2.api.APIManager
-
- All Implemented Interfaces:
com.smartfoxserver.bitswarm.service.IService
public class APIManager extends java.lang.Object implements com.smartfoxserver.bitswarm.service.IService
-
-
Constructor Summary
Constructors Constructor Description APIManager()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddestroy(java.lang.Object arg0)Destroy serviceISFSBuddyApigetBuddyApi()ISFSGameApigetGameApi()ISFSMMOApigetMMOApi()java.lang.StringgetName()Get the service nameISFSApigetSFSApi()voidhandleMessage(java.lang.Object msg)Send message to servicevoidinit(java.lang.Object o)Initialize servicevoidsetName(java.lang.String arg0)Set the service name
-
-
-
Method Detail
-
init
public void init(java.lang.Object o)
Description copied from interface:com.smartfoxserver.bitswarm.service.IServiceInitialize service- Specified by:
initin interfacecom.smartfoxserver.bitswarm.service.IService- Parameters:
o- custom parameters
-
getSFSApi
public ISFSApi getSFSApi()
-
getBuddyApi
public ISFSBuddyApi getBuddyApi()
-
getGameApi
public ISFSGameApi getGameApi()
-
getMMOApi
public ISFSMMOApi getMMOApi()
-
destroy
public void destroy(java.lang.Object arg0)
Description copied from interface:com.smartfoxserver.bitswarm.service.IServiceDestroy service- Specified by:
destroyin interfacecom.smartfoxserver.bitswarm.service.IService- Parameters:
arg0- custom parameters
-
getName
public java.lang.String getName()
Description copied from interface:com.smartfoxserver.bitswarm.service.IServiceGet the service name- Specified by:
getNamein interfacecom.smartfoxserver.bitswarm.service.IService- Returns:
- the service name
-
handleMessage
public void handleMessage(java.lang.Object msg)
Description copied from interface:com.smartfoxserver.bitswarm.service.IServiceSend message to service- Specified by:
handleMessagein interfacecom.smartfoxserver.bitswarm.service.IService- Parameters:
msg- the message
-
setName
public void setName(java.lang.String arg0)
Description copied from interface:com.smartfoxserver.bitswarm.service.IServiceSet the service name- Specified by:
setNamein interfacecom.smartfoxserver.bitswarm.service.IService- Parameters:
arg0- the service name
-
-