com.pusher.client.channel
Class User

java.lang.Object
  extended by com.pusher.client.channel.User

public class User
extends Object

Represents a user that is subscribed to a PresenceChannel.


Constructor Summary
User(String id, String jsonData)
          Create a new user.
 
Method Summary
 boolean equals(Object other)
           
 String getId()
          A unique identifier for the user within a Pusher application.
 String getInfo()
          Custom additional information about a user.
 int hashCode()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

User

public User(String id,
            String jsonData)
Create a new user. Users should not be created within an application. Users are created within the library and represent subscriptions to presence channels.

Parameters:
id -
jsonData -
Method Detail

getId

public String getId()
A unique identifier for the user within a Pusher application.

Returns:
The unique id.

getInfo

public String getInfo()
Custom additional information about a user.

Returns:

toString

public String toString()
Overrides:
toString in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object other)
Overrides:
equals in class Object


Copyright © 2013 Pusher. All Rights Reserved.