WATUser

public class WATUser : NSObject

Class to be used to get user information.

  • Last date time the user was connected.

    Declaration

    Swift

    public var lastSeen: Double
  • Phone number of the user.

    Declaration

    Swift

    public var msisdn: String
  • Name of the user.

    Declaration

    Swift

    public var name: String
  • Connection status of the user : CONNECTED or NOT_CONNECTED.

    Declaration

    Swift

    public var status: String
  • uid

    Unique identifier of the user.

    Declaration

    Swift

    public var uid: String?
  • Observes the last status ( CONNTECTED , WAS_CONNECTED , NOT_CONNECTED ) .

    Declaration

    Swift

    public func onStatus (  completeCallback:@escaping(_ error: Error?, _ info: String?) -> Void)

    Parameters

    completeCallback

    Block called once a change of status .

  • Removes observer for the status of User

    Declaration

    Swift

    public func offStatus()