Package io.getstream.chat.android.models
Class ThreadInfo
-
- All Implemented Interfaces:
@Immutable() public final class ThreadInfoDomain model for thread info. Holds partial information related to a thread.
-
-
Field Summary
Fields Modifier and Type Field Description private final IntegeractiveParticipantCountprivate final Stringcidprivate final DatecreatedAtprivate final UsercreatedByprivate final StringcreatedByUserIdprivate final DatedeletedAtprivate final DatelastMessageAtprivate final MessageparentMessageprivate final StringparentMessageIdprivate final IntegerparticipantCountprivate final IntegerreplyCountprivate final Stringtitleprivate final DateupdatedAt
-
Constructor Summary
Constructors Constructor Description ThreadInfo(Integer activeParticipantCount, String cid, Date createdAt, User createdBy, String createdByUserId, Date deletedAt, Date lastMessageAt, Message parentMessage, String parentMessageId, Integer participantCount, Integer replyCount, String title, Date updatedAt)
-
Method Summary
Modifier and Type Method Description final IntegergetActiveParticipantCount()final StringgetCid()final DategetCreatedAt()final UsergetCreatedBy()final StringgetCreatedByUserId()final DategetDeletedAt()final DategetLastMessageAt()final MessagegetParentMessage()final StringgetParentMessageId()final IntegergetParticipantCount()final IntegergetReplyCount()final StringgetTitle()final DategetUpdatedAt()-
-
Constructor Detail
-
ThreadInfo
ThreadInfo(Integer activeParticipantCount, String cid, Date createdAt, User createdBy, String createdByUserId, Date deletedAt, Date lastMessageAt, Message parentMessage, String parentMessageId, Integer participantCount, Integer replyCount, String title, Date updatedAt)
- Parameters:
activeParticipantCount- Number of active participants in the thread.cid- Id of the channel in which the thread resides.createdAt- Date when the thread was created.createdBy- The User which created the thread.createdByUserId- The ID of the User which created the thread.deletedAt- Date when the thread was deleted (null if the thread is not deleted).lastMessageAt- Date of the last message in the thread.parentMessage- The parent message of the thread.parentMessageId- The ID of the parent message of the thread.participantCount- The number of participants in the thread.replyCount- The number of replies in the thread.title- The title of the thread.updatedAt- Date of the most recent update of the thread.
-
-
Method Detail
-
getActiveParticipantCount
final Integer getActiveParticipantCount()
-
getCreatedAt
final Date getCreatedAt()
-
getCreatedBy
final User getCreatedBy()
-
getCreatedByUserId
final String getCreatedByUserId()
-
getDeletedAt
final Date getDeletedAt()
-
getLastMessageAt
final Date getLastMessageAt()
-
getParentMessage
final Message getParentMessage()
-
getParentMessageId
final String getParentMessageId()
-
getParticipantCount
final Integer getParticipantCount()
-
getReplyCount
final Integer getReplyCount()
-
getUpdatedAt
final Date getUpdatedAt()
-
-
-
-