Interface MessagePreviewFormatter

  • All Implemented Interfaces:

    
    public interface MessagePreviewFormatter
    
                        

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

    • 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
      abstract CharSequence formatMessagePreview(Channel channel, Message message, User currentUser) Generates a preview text for the given message.
      • Methods inherited from class java.lang.Object

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

    • Method Detail

      • formatMessagePreview

         abstract CharSequence formatMessagePreview(Channel channel, Message message, User currentUser)

        Generates a preview text for the given message.

        Parameters:
        channel - The channel containing the message.
        message - The message whose data is used to generate the preview text.
        currentUser - The currently logged in user.
        Returns:

        The formatted text representation for the given message.