Class ThreadKt

  • All Implemented Interfaces:

    
    public final class ThreadKt
    
                        
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      final static Thread updateParentOrReply(Thread $self, Message message) Updates the given Thread with the new message (parent or reply).
      final static Thread updateParent(Thread $self, Message parent) Updates the parent message of a Thread.
      final static Thread upsertReply(Thread $self, Message reply) Inserts a new reply (or updates and existing one) in a Thread.
      final static Thread markAsReadByUser(Thread $self, ThreadInfo threadInfo, User user, Date createdAt) Marks the given thread as read by the given user.
      final static Thread markAsUnreadByUser(Thread $self, User user, Date createdAt) Marks the given thread as unread by the given user.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

    • 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.