Package 

Interface MessagePreviewFormatter


  • 
    public interface MessagePreviewFormatter
    
                        

    An interface that allows to generate a preview text for the given message.

    • Method Summary

      Modifier and Type Method Description
      abstract AnnotatedString formatMessageTitle(Message message, User currentUser) Generates a preview title for the given message.
      abstract AnnotatedString formatMessagePreview(Message message, User currentUser, Boolean isDirectMessaging) Generates a preview text for the given message content (icon + text), excluding the sender name prefix.
      • Methods inherited from class java.lang.Object

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

      • formatMessageTitle

         abstract AnnotatedString formatMessageTitle(Message message, User currentUser)

        Generates a preview title for the given message.

        Parameters:
        message - The message whose data is used to generate the preview title.
        currentUser - The currently logged in user.
      • formatMessagePreview

         abstract AnnotatedString formatMessagePreview(Message message, User currentUser, Boolean isDirectMessaging)

        Generates a preview text for the given message content (icon + text), excluding the sender name prefix.

        Parameters:
        message - The message whose data is used to generate the preview text.
        currentUser - The currently logged in user.
        isDirectMessaging - Whether the channel is a direct message conversation.