Class ThreadKt
-
- All Implemented Interfaces:
public final class ThreadKt
-
-
Method Summary
Modifier and Type Method Description final static ThreadupdateParentOrReply(Thread $self, Message message)Updates the given Thread with the new message (parent or reply). final static ThreadupdateParent(Thread $self, Message parent)Updates the parent message of a Thread. final static ThreadupsertReply(Thread $self, Message reply)Inserts a new reply (or updates and existing one) in a Thread. final static ThreadmarkAsReadByUser(Thread $self, ThreadInfo threadInfo, User user, Date createdAt)Marks the given thread as read by the given user. final static ThreadmarkAsUnreadByUser(Thread $self, User user, Date createdAt)Marks the given thread as unread by the given user. -
-
Method Detail
-
updateParentOrReply
final static Thread updateParentOrReply(Thread $self, Message message)
Updates the given Thread with the new message (parent or reply).
-
updateParent
final static Thread updateParent(Thread $self, Message parent)
Updates the parent message of a Thread.
-
upsertReply
final static Thread upsertReply(Thread $self, Message reply)
Inserts a new reply (or updates and existing one) in a Thread.
-
markAsReadByUser
final static Thread markAsReadByUser(Thread $self, ThreadInfo threadInfo, User user, Date createdAt)
Marks the given thread as read by the given user.
- Parameters:
threadInfo- The ThreadInfo holding info about the Thread which should be marked as read.user- The User for which the thread should be marked as read.createdAt- The Date of the 'mark read' event.
-
markAsUnreadByUser
final static Thread markAsUnreadByUser(Thread $self, User user, Date createdAt)
Marks the given thread as unread by the given user.
- Parameters:
user- The User for which the thread should be marked as read.createdAt- The Date of the 'mark read' event.
-
-
-
-