Package io.getstream.chat.android.models
Class Thread
-
- All Implemented Interfaces:
@Immutable() public final class ThreadDomain model for a thread. Holds all information related to a thread.
-
-
Field Summary
Fields Modifier and Type Field Description private final IntegerreplyCountprivate final IntegeractiveParticipantCountprivate final Stringcidprivate final Channelchannelprivate final StringparentMessageIdprivate final MessageparentMessageprivate final StringcreatedByUserIdprivate final UsercreatedByprivate final IntegerparticipantCountprivate final List<ThreadParticipant>threadParticipantsprivate final DatelastMessageAtprivate final DatecreatedAtprivate final DateupdatedAtprivate final DatedeletedAtprivate final Stringtitleprivate final List<Message>latestRepliesprivate final List<ChannelUserRead>read
-
Constructor Summary
Constructors Constructor Description Thread(Integer activeParticipantCount, String cid, Channel channel, String parentMessageId, Message parentMessage, String createdByUserId, User createdBy, Integer participantCount, List<ThreadParticipant> threadParticipants, Date lastMessageAt, Date createdAt, Date updatedAt, Date deletedAt, String title, List<Message> latestReplies, List<ChannelUserRead> read)
-
Method Summary
Modifier and Type Method Description final IntegergetReplyCount()final IntegergetActiveParticipantCount()final StringgetCid()final ChannelgetChannel()final StringgetParentMessageId()final MessagegetParentMessage()final StringgetCreatedByUserId()final UsergetCreatedBy()final IntegergetParticipantCount()final List<ThreadParticipant>getThreadParticipants()final DategetLastMessageAt()final DategetCreatedAt()final DategetUpdatedAt()final DategetDeletedAt()final StringgetTitle()final List<Message>getLatestReplies()final List<ChannelUserRead>getRead()-
-
Constructor Detail
-
Thread
Thread(Integer activeParticipantCount, String cid, Channel channel, String parentMessageId, Message parentMessage, String createdByUserId, User createdBy, Integer participantCount, List<ThreadParticipant> threadParticipants, Date lastMessageAt, Date createdAt, Date updatedAt, Date deletedAt, String title, List<Message> latestReplies, List<ChannelUserRead> read)
- Parameters:
activeParticipantCount- The number of active participants in the thread.cid- Id of the channel in which the thread resides.channel- The Channel object holding info about the channel if which the thread resides.parentMessageId- The ID of the parent message of the thread.parentMessage- The parent message of the thread.createdByUserId- The ID of the User which created the thread.createdBy- The User which created the thread.participantCount- The number of participants in the thread.threadParticipants- The list of participants in the thread.lastMessageAt- Date of the last message in the thread.createdAt- Date when the thread was created.updatedAt- Date of the most recent update of the thread.deletedAt- Date when the thread was deleted (null if the thread is not deleted).title- The title of the thread.latestReplies- The list of latest replies in the thread.read- Information about the read status for the participants in the thread.
-
-
Method Detail
-
getReplyCount
final Integer getReplyCount()
-
getActiveParticipantCount
final Integer getActiveParticipantCount()
-
getChannel
final Channel getChannel()
-
getParentMessageId
final String getParentMessageId()
-
getParentMessage
final Message getParentMessage()
-
getCreatedByUserId
final String getCreatedByUserId()
-
getCreatedBy
final User getCreatedBy()
-
getParticipantCount
final Integer getParticipantCount()
-
getThreadParticipants
final List<ThreadParticipant> getThreadParticipants()
-
getLastMessageAt
final Date getLastMessageAt()
-
getCreatedAt
final Date getCreatedAt()
-
getUpdatedAt
final Date getUpdatedAt()
-
getDeletedAt
final Date getDeletedAt()
-
getLatestReplies
final List<Message> getLatestReplies()
-
getRead
final List<ChannelUserRead> getRead()
-
-
-
-