Package io.smooch.core
Class Participant
- java.lang.Object
-
- io.smooch.core.Participant
-
public final class Participant extends java.lang.Object
Object representing the participant of aConversation
.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object o)
java.lang.String
getId()
The unique ID of this participant.java.util.Date
getLastRead()
Returns the date when this participant last read messages of the conversation.int
getUnreadCount()
Returns the unread count for this participant.java.lang.String
getUserExternalId()
The assigned userExternalId for the user that this participant is associated with.java.lang.String
getUserId()
The assigned userId for the user that this participant is associated with.int
hashCode()
-
-
-
Method Detail
-
getId
public java.lang.String getId()
The unique ID of this participant. The same user can be a participant of multiple conversations, with a different ID for each conversation, butgetUserId()
will always be the same.- Returns:
- the participant ID
- See Also:
getUserId()
-
getUserId
public java.lang.String getUserId()
The assigned userId for the user that this participant is associated with. The same user can be a participant of multiple conversation.This property is set automatically by Smooch, and is not configurable. This is analogous to
User.getUserId()
.- Returns:
- the participant userId
-
getUserExternalId
public java.lang.String getUserExternalId()
The assigned userExternalId for the user that this participant is associated with. The same user can be a participant of multiple conversation.- Returns:
- the participant userExternalId
-
getUnreadCount
public int getUnreadCount()
Returns the unread count for this participant.- Returns:
- the unread count for this participant
-
getLastRead
public java.util.Date getLastRead()
Returns the date when this participant last read messages of the conversation.- Returns:
- the date when this participant last read messages of the conversation
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
-