public class APIManager
extends java.lang.Object
implements com.smartfoxserver.bitswarm.service.IService
Constructor and Description |
---|
APIManager() |
Modifier and Type | Method and Description |
---|---|
void |
destroy(java.lang.Object arg0)
Destroy service
|
ISFSBuddyApi |
getBuddyApi() |
ISFSGameApi |
getGameApi() |
ISFSMMOApi |
getMMOApi() |
java.lang.String |
getName()
Get the service name
|
ISFSApi |
getSFSApi() |
void |
handleMessage(java.lang.Object msg)
Send message to service
|
void |
init(java.lang.Object o)
Initialize service
|
void |
setName(java.lang.String arg0)
Set the service name
|
public void init(java.lang.Object o)
com.smartfoxserver.bitswarm.service.IService
init
in interface com.smartfoxserver.bitswarm.service.IService
o
- custom parameterspublic ISFSApi getSFSApi()
public ISFSBuddyApi getBuddyApi()
public ISFSGameApi getGameApi()
public ISFSMMOApi getMMOApi()
public void destroy(java.lang.Object arg0)
com.smartfoxserver.bitswarm.service.IService
destroy
in interface com.smartfoxserver.bitswarm.service.IService
arg0
- custom parameterspublic java.lang.String getName()
com.smartfoxserver.bitswarm.service.IService
getName
in interface com.smartfoxserver.bitswarm.service.IService
public void handleMessage(java.lang.Object msg)
com.smartfoxserver.bitswarm.service.IService
handleMessage
in interface com.smartfoxserver.bitswarm.service.IService
msg
- the messagepublic void setName(java.lang.String arg0)
com.smartfoxserver.bitswarm.service.IService
setName
in interface com.smartfoxserver.bitswarm.service.IService
arg0
- the service name