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
      Modifier and Type Method 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
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • APIManager

        public APIManager()
    • 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 interface com.smartfoxserver.bitswarm.service.IService
        Parameters:
        o - custom parameters
      • getSFSApi

        public ISFSApi getSFSApi()
      • destroy

        public void destroy​(java.lang.Object arg0)
        Description copied from interface: com.smartfoxserver.bitswarm.service.IService
        Destroy service
        Specified by:
        destroy in interface com.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 interface com.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 interface com.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 interface com.smartfoxserver.bitswarm.service.IService
        Parameters:
        arg0 - the service name