Class PresenceUser

java.lang.Object
com.pusher.rest.data.PresenceUser

public class PresenceUser extends Object
Represents a precence channel "user", that is a user from the domain of your application.
  • Constructor Details

    • PresenceUser

      public PresenceUser(String userId)
      Represents a presence channel user with no additional data associated other than the userId
      Parameters:
      userId - the unique ID to associate with the user
    • PresenceUser

      public PresenceUser(Number userId)
      Represents a presence channel user with no additional data associated other than the userId
      Parameters:
      userId - the unique ID to associate with the user
    • PresenceUser

      public PresenceUser(String userId, Object userInfo)
      Represents a presence channel user and a map of data associated with the user
      Parameters:
      userId - the unique ID to associate with the user
      userInfo - additional data to be associated with the user
    • PresenceUser

      public PresenceUser(Number userId, Object userInfo)
      Represents a presence channel user and a map of data associated with the user
      Parameters:
      userId - the unique ID to associate with the user
      userInfo - additional data to be associated with the user
  • Method Details