Package io.smooch.core
Class Participant
- java.lang.Object
-
- io.smooch.core.Participant
-
public final class Participant extends java.lang.ObjectObject representing the participant of aConversation.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object o)java.lang.StringgetId()The unique ID of this participant.java.util.DategetLastRead()Returns the date when this participant last read messages of the conversation.intgetUnreadCount()Returns the unread count for this participant.java.lang.StringgetUserExternalId()The assigned userExternalId for the user that this participant is associated with.java.lang.StringgetUserId()The assigned userId for the user that this participant is associated with.inthashCode()
-
-
-
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:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
-