Package us.zoom.sdk

Class ChatMessageBuilder

java.lang.Object
us.zoom.sdk.ChatMessageBuilder

public class ChatMessageBuilder extends Object
Chat message builder to create InMeetingChatMessage objects.
  • Constructor Details

    • ChatMessageBuilder

      public ChatMessageBuilder()
  • Method Details

    • setContent

      public ChatMessageBuilder setContent(String content)
      set chat message content.
      Parameters:
      content - The chat message’s content.
    • setReceiver

      public ChatMessageBuilder setReceiver(int receiver)
      set who will receive the chat message.
      Parameters:
      receiver - Specify the user ID to receive the chat message. The message is sent to all participants when the value is zero(0).
    • setThreadId

      public ChatMessageBuilder setThreadId(String threadId)
      set the ID of the thread the message will be posted.
      Parameters:
      threadId - Specify the thread ID. The message will be sent to all when the value is zero(0).
    • setMessageType

      public ChatMessageBuilder setMessageType(ZoomSDKChatMessageType type)
      set chat message type.
      Parameters:
      type - The type of the chat message
    • setQuotePosition

      public ChatMessageBuilder setQuotePosition(int positionStart, int positionEnd)
      set the chat message content quote style and position.
      Parameters:
      positionStart - The segment start position.
      positionEnd - The segment end position.
    • unsetQuotePosition

      public ChatMessageBuilder unsetQuotePosition(int positionStart, int positionEnd)
      unset the chat message content quote style and position.
      Parameters:
      positionStart - The segment start position.
      positionEnd - The segment end position.
    • setInsertLink

      public ChatMessageBuilder setInsertLink(String insertLink, int positionStart, int positionEnd)
      set the chat message content insert link style
      Parameters:
      insertLink - The insert link string.
      positionStart - The segment start position.
      positionEnd - The segment end position.
    • unsetInsertLink

      public ChatMessageBuilder unsetInsertLink(int positionStart, int positionEnd)
      unset the chat message content insert link style
      Parameters:
      positionStart - The segment start position.
      positionEnd - The segment end position.
    • setFontSize

      public ChatMessageBuilder setFontSize(SegmentDetails.FontSizeAttrs fontSize, int positionStart, int positionEnd)
      set the chat message content font size style
      Parameters:
      fontSize - font size see SegmentDetails.FontSizeAttrs.
      positionStart - The segment start position.
      positionEnd - The segment end position.
    • unsetFontSize

      public ChatMessageBuilder unsetFontSize(int positionStart, int positionEnd)
      unset the chat message content font size style
      Parameters:
      positionStart - The segment start position.
      positionEnd - The segment end position.
    • setItalic

      public ChatMessageBuilder setItalic(int positionStart, int positionEnd)
      set the chat message content italic style
      Parameters:
      positionStart - The segment start position.
      positionEnd - The segment end position.
    • unsetItalic

      public ChatMessageBuilder unsetItalic(int positionStart, int positionEnd)
      unset the chat message content italic style
      Parameters:
      positionStart - The segment start position.
      positionEnd - The segment end position.
    • setBold

      public ChatMessageBuilder setBold(int positionStart, int positionEnd)
      set the chat message content bold style
      Parameters:
      positionStart - The segment start position.
      positionEnd - The segment end position.
    • unsetBold

      public ChatMessageBuilder unsetBold(int positionStart, int positionEnd)
      unset the chat message content bold style
      Parameters:
      positionStart - The segment start position.
      positionEnd - The segment end position.
    • setStrikethrough

      public ChatMessageBuilder setStrikethrough(int positionStart, int positionEnd)
      set the chat message content strikethrough style
      Parameters:
      positionStart - The segment start position.
      positionEnd - The segment end position.
    • unsetStrikethrough

      public ChatMessageBuilder unsetStrikethrough(int positionStart, int positionEnd)
      unset the chat message content strikethrough style
      Parameters:
      positionStart - The segment start position.
      positionEnd - The segment end position.
    • setBulletedList

      public ChatMessageBuilder setBulletedList(int positionStart, int positionEnd)
      set the chat message content bulleted list style
      Parameters:
      positionStart - The segment start position.
      positionEnd - The segment end position.
    • unsetBulletedList

      public ChatMessageBuilder unsetBulletedList(int positionStart, int positionEnd)
      unset the chat message content bulleted list style
      Parameters:
      positionStart - The segment start position.
      positionEnd - The segment end position.
    • setNumberedList

      public ChatMessageBuilder setNumberedList(int positionStart, int positionEnd)
      set the chat message content numbered list style
      Parameters:
      positionStart - The segment start position.
      positionEnd - The segment end position.
    • unsetNumberedList

      public ChatMessageBuilder unsetNumberedList(int positionStart, int positionEnd)
      unset the chat message content numbered list style
      Parameters:
      positionStart - The segment start position.
      positionEnd - The segment end position.
    • setUnderline

      public ChatMessageBuilder setUnderline(int positionStart, int positionEnd)
      set the chat message content underline style
      Parameters:
      positionStart - The segment start position.
      positionEnd - The segment end position.
    • unsetUnderline

      public ChatMessageBuilder unsetUnderline(int positionStart, int positionEnd)
      unset the chat message content underline style
      Parameters:
      positionStart - The segment start position.
      positionEnd - The segment end position.
    • setFontColor

      public ChatMessageBuilder setFontColor(SegmentDetails.FontColorAttrs color, int positionStart, int positionEnd)
      set the chat message content font color style
      Parameters:
      color - font color see SegmentDetails.FontColorAttrs.
      positionStart - The segment start position.
      positionEnd - The segment end position.
    • unsetFontColor

      public ChatMessageBuilder unsetFontColor(int positionStart, int positionEnd)
      unset the chat message content font color style
      Parameters:
      positionStart - The segment start position.
      positionEnd - The segment end position.
    • setBackgroundColor

      public ChatMessageBuilder setBackgroundColor(SegmentDetails.BackgroundColorAttrs color, int positionStart, int positionEnd)
      set the chat message content background color style
      Parameters:
      color - background color see SegmentDetails.BackgroundColorAttrs.
      positionStart - The segment start position.
      positionEnd - The segment end position.
    • unsetBackgroundColor

      public ChatMessageBuilder unsetBackgroundColor(int positionStart, int positionEnd)
      unset the chat message content background color style
      Parameters:
      positionStart - The segment start position.
      positionEnd - The segment end position.
    • increaseIndent

      public ChatMessageBuilder increaseIndent(int indent, int positionStart, int positionEnd)
      Increase the chat message content indent style
      Parameters:
      indent - Increase indent number.
      positionStart - The segment start position.
      positionEnd - The segment end position.
    • decreaseIndent

      public ChatMessageBuilder decreaseIndent(int indent, int positionStart, int positionEnd)
      Decrease the chat message content indent style
      Parameters:
      indent - Decrease indent number.
      positionStart - The segment start position.
      positionEnd - The segment end position.
    • setParagraph

      public ChatMessageBuilder setParagraph(SegmentDetails.ParagraphAttrs paragraph, int positionStart, int positionEnd)
      set the chat message content paragraph style
      Parameters:
      paragraph - paragraph see SegmentDetails.ParagraphAttrs.
      positionStart - The segment start position.
      positionEnd - The segment end position.
    • unsetParagraph

      public ChatMessageBuilder unsetParagraph(int positionStart, int positionEnd)
      unset the chat message content paragraph style
      Parameters:
      positionStart - The segment start position.
      positionEnd - The segment end position.
    • build

      public InMeetingChatMessage build()
      build chat message entity.
      Returns:
      InMeetingChatMessage