Module it.auties.whatsapp4j
Class DocumentMessage.SimpleDocumentMessageBuilder
java.lang.Object
it.auties.whatsapp.model.message.standard.DocumentMessage.SimpleDocumentMessageBuilder
- Enclosing class:
- DocumentMessage
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()
contextInfo
(ContextInfo contextInfo) media
(byte[] media) pageCount
(int pageCount) thumbnail
(byte[] thumbnail) toString()
-
Field Details
-
media
private byte[] media -
fileName
-
mimeType
-
title
-
pageCount
private int pageCount -
thumbnail
private byte[] thumbnail -
contextInfo
-
-
Constructor Details
-
SimpleDocumentMessageBuilder
SimpleDocumentMessageBuilder()
-
-
Method Details
-
media
- Parameters:
media
- the non-null document that the new message wraps- Returns:
this
.
-
fileName
- Parameters:
fileName
- the non-null name of the document that the new message wraps- Returns:
this
.
-
mimeType
- Parameters:
mimeType
- the mime type of the new message, by defaultMediaMessageType.defaultMimeType()
- Returns:
this
.
-
title
- Parameters:
title
- the title of the document that the new message wraps- Returns:
this
.
-
pageCount
- Parameters:
pageCount
- the number of pages of the document that the new message wraps- Returns:
this
.
-
thumbnail
- Parameters:
thumbnail
- the thumbnail of the document that the new message wraps- Returns:
this
.
-
contextInfo
- Parameters:
contextInfo
- the context info that the new message wraps- Returns:
this
.
-
build
-
toString
-