Class GenericInvitationCallback

    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected com.smartfoxserver.v2.api.response.ISFSGameResponseApi responseApi  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void onAccepted​(Invitation invObj, ISFSObject params)
      Fired when the invited User has accepted the invitation
      void onExpired​(Invitation invObj)
      The event is fired when the invitation has expired or if the invitee gets disconnected before he sends a response.
      void onRefused​(Invitation invObj, ISFSObject params)
      Fired when the invited User has refused the invitation
      • Methods inherited from class java.lang.Object

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

      • responseApi

        protected final com.smartfoxserver.v2.api.response.ISFSGameResponseApi responseApi
    • Constructor Detail

      • GenericInvitationCallback

        public GenericInvitationCallback()
    • Method Detail

      • onAccepted

        public void onAccepted​(Invitation invObj,
                               ISFSObject params)
        Description copied from interface: InvitationCallback
        Fired when the invited User has accepted the invitation
        Specified by:
        onAccepted in interface InvitationCallback
        Parameters:
        invObj - the invitation
        params - optional custom parameters sent by the invitee
      • onExpired

        public void onExpired​(Invitation invObj)
        Description copied from interface: InvitationCallback
        The event is fired when the invitation has expired or if the invitee gets disconnected before he sends a response.
        Specified by:
        onExpired in interface InvitationCallback
        Parameters:
        invObj - the invitation
      • onRefused

        public void onRefused​(Invitation invObj,
                              ISFSObject params)
        Description copied from interface: InvitationCallback
        Fired when the invited User has refused the invitation
        Specified by:
        onRefused in interface InvitationCallback
        Parameters:
        invObj - the invitation
        params - optional custom parameters sent by the invitee