Package us.zoom.sdk
Class ChatMessageBuilder
java.lang.Object
us.zoom.sdk.ChatMessageBuilder
Chat message builder to create
InMeetingChatMessage objects.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()build chat message entity.decreaseIndent(int indent, int positionStart, int positionEnd) Decrease the chat message content indent styleincreaseIndent(int indent, int positionStart, int positionEnd) Increase the chat message content indent stylesetBackgroundColor(SegmentDetails.BackgroundColorAttrs color, int positionStart, int positionEnd) set the chat message content background color stylesetBold(int positionStart, int positionEnd) set the chat message content bold stylesetBulletedList(int positionStart, int positionEnd) set the chat message content bulleted list stylesetContent(String content) set chat message content.setFontColor(SegmentDetails.FontColorAttrs color, int positionStart, int positionEnd) set the chat message content font color stylesetFontSize(SegmentDetails.FontSizeAttrs fontSize, int positionStart, int positionEnd) set the chat message content font size stylesetInsertLink(String insertLink, int positionStart, int positionEnd) set the chat message content insert link stylesetItalic(int positionStart, int positionEnd) set the chat message content italic styleset chat message type.setNumberedList(int positionStart, int positionEnd) set the chat message content numbered list stylesetParagraph(SegmentDetails.ParagraphAttrs paragraph, int positionStart, int positionEnd) set the chat message content paragraph stylesetQuotePosition(int positionStart, int positionEnd) set the chat message content quote style and position.setReceiver(int receiver) set who will receive the chat message.setStrikethrough(int positionStart, int positionEnd) set the chat message content strikethrough stylesetThreadId(String threadId) set the ID of the thread the message will be posted.setUnderline(int positionStart, int positionEnd) set the chat message content underline styleunsetBackgroundColor(int positionStart, int positionEnd) unset the chat message content background color styleunsetBold(int positionStart, int positionEnd) unset the chat message content bold styleunsetBulletedList(int positionStart, int positionEnd) unset the chat message content bulleted list styleunsetFontColor(int positionStart, int positionEnd) unset the chat message content font color styleunsetFontSize(int positionStart, int positionEnd) unset the chat message content font size styleunsetInsertLink(int positionStart, int positionEnd) unset the chat message content insert link styleunsetItalic(int positionStart, int positionEnd) unset the chat message content italic styleunsetNumberedList(int positionStart, int positionEnd) unset the chat message content numbered list styleunsetParagraph(int positionStart, int positionEnd) unset the chat message content paragraph styleunsetQuotePosition(int positionStart, int positionEnd) unset the chat message content quote style and position.unsetStrikethrough(int positionStart, int positionEnd) unset the chat message content strikethrough styleunsetUnderline(int positionStart, int positionEnd) unset the chat message content underline style
-
Constructor Details
-
ChatMessageBuilder
public ChatMessageBuilder()
-
-
Method Details
-
setContent
set chat message content.- Parameters:
content- The chat message’s content.
-
setReceiver
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
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
set chat message type.- Parameters:
type- The type of the chat message
-
setQuotePosition
set the chat message content quote style and position.- Parameters:
positionStart- The segment start position.positionEnd- The segment end position.
-
unsetQuotePosition
unset the chat message content quote style and position.- Parameters:
positionStart- The segment start position.positionEnd- The segment end position.
-
setInsertLink
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
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 seeSegmentDetails.FontSizeAttrs.positionStart- The segment start position.positionEnd- The segment end position.
-
unsetFontSize
unset the chat message content font size style- Parameters:
positionStart- The segment start position.positionEnd- The segment end position.
-
setItalic
set the chat message content italic style- Parameters:
positionStart- The segment start position.positionEnd- The segment end position.
-
unsetItalic
unset the chat message content italic style- Parameters:
positionStart- The segment start position.positionEnd- The segment end position.
-
setBold
set the chat message content bold style- Parameters:
positionStart- The segment start position.positionEnd- The segment end position.
-
unsetBold
unset the chat message content bold style- Parameters:
positionStart- The segment start position.positionEnd- The segment end position.
-
setStrikethrough
set the chat message content strikethrough style- Parameters:
positionStart- The segment start position.positionEnd- The segment end position.
-
unsetStrikethrough
unset the chat message content strikethrough style- Parameters:
positionStart- The segment start position.positionEnd- The segment end position.
-
setBulletedList
set the chat message content bulleted list style- Parameters:
positionStart- The segment start position.positionEnd- The segment end position.
-
unsetBulletedList
unset the chat message content bulleted list style- Parameters:
positionStart- The segment start position.positionEnd- The segment end position.
-
setNumberedList
set the chat message content numbered list style- Parameters:
positionStart- The segment start position.positionEnd- The segment end position.
-
unsetNumberedList
unset the chat message content numbered list style- Parameters:
positionStart- The segment start position.positionEnd- The segment end position.
-
setUnderline
set the chat message content underline style- Parameters:
positionStart- The segment start position.positionEnd- The segment end position.
-
unsetUnderline
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 seeSegmentDetails.FontColorAttrs.positionStart- The segment start position.positionEnd- The segment end position.
-
unsetFontColor
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 seeSegmentDetails.BackgroundColorAttrs.positionStart- The segment start position.positionEnd- The segment end position.
-
unsetBackgroundColor
unset the chat message content background color style- Parameters:
positionStart- The segment start position.positionEnd- The segment end position.
-
increaseIndent
Increase the chat message content indent style- Parameters:
indent- Increase indent number.positionStart- The segment start position.positionEnd- The segment end position.
-
decreaseIndent
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 seeSegmentDetails.ParagraphAttrs.positionStart- The segment start position.positionEnd- The segment end position.
-
unsetParagraph
unset the chat message content paragraph style- Parameters:
positionStart- The segment start position.positionEnd- The segment end position.
-
build
build chat message entity.- Returns:
InMeetingChatMessage
-