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 void
destroy(java.lang.Object arg0)
Destroy serviceISFSBuddyApi
getBuddyApi()
ISFSGameApi
getGameApi()
ISFSMMOApi
getMMOApi()
java.lang.String
getName()
Get the service nameISFSApi
getSFSApi()
void
handleMessage(java.lang.Object msg)
Send message to servicevoid
init(java.lang.Object o)
Initialize servicevoid
setName(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.IService
Initialize service- Specified by:
init
in 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.IService
Destroy service- Specified by:
destroy
in interfacecom.smartfoxserver.bitswarm.service.IService
- Parameters:
arg0
- custom parameters
-
getName
public java.lang.String getName()
Description copied from interface:com.smartfoxserver.bitswarm.service.IService
Get the service name- Specified by:
getName
in 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.IService
Send message to service- Specified by:
handleMessage
in 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.IService
Set the service name- Specified by:
setName
in interfacecom.smartfoxserver.bitswarm.service.IService
- Parameters:
arg0
- the service name
-
-