- All Implemented Interfaces:
Serializable,Comparable<MessageType>,Constable
The constants of this enumerated type describe the various types of messages that a
MessageContainer can wrap-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionAudioButtons newslettersButtons newslettersA callCancel payment requestContactContact arrayDecline payment requestDevice sentDevice syncDocumentText editEmptyEncrypted reactionEphemeralGroup inviteHighly structuredImageInteractiveInteractive newslettersKeep in chatListList newslettersLive locationLocationNative flow newslettersNewsletter admin invitePayment invitePayment invoiceOrderPoll creationPoll updateProductProtocolReactionRequest paymentRequest phone numberSend paymentSender key distributionStickerSticker syncTemplateTemplate replyTextVideoView once -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic MessageTypeReturns the enum constant of this class with the specified name.static MessageType[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
EMPTY
Empty -
TEXT
Text -
SENDER_KEY_DISTRIBUTION
Sender key distribution -
IMAGE
Image -
CONTACT
Contact -
LOCATION
Location -
DOCUMENT
Document -
AUDIO
Audio -
VIDEO
Video -
PROTOCOL
Protocol -
CONTACT_ARRAY
Contact array -
HIGHLY_STRUCTURED
Highly structured -
SEND_PAYMENT
Send payment -
LIVE_LOCATION
Live location -
REQUEST_PAYMENT
Request payment -
DECLINE_PAYMENT_REQUEST
Decline payment request -
CANCEL_PAYMENT_REQUEST
Cancel payment request -
TEMPLATE
Template -
STICKER
Sticker -
GROUP_INVITE
Group invite -
TEMPLATE_REPLY
Template reply -
PRODUCT
Product -
DEVICE_SENT
Device sent -
DEVICE_SYNC
Device sync -
LIST
List -
VIEW_ONCE
View once -
PAYMENT_ORDER
Order -
LIST_RESPONSE
List newsletters -
EPHEMERAL
Ephemeral -
PAYMENT_INVOICE
Payment invoice -
BUTTONS
Buttons newsletters -
BUTTONS_RESPONSE
Buttons newsletters -
PAYMENT_INVITE
Payment invite -
INTERACTIVE
Interactive -
REACTION
Reaction -
INTERACTIVE_RESPONSE
Interactive newsletters -
NATIVE_FLOW_RESPONSE
Native flow newsletters -
KEEP_IN_CHAT
Keep in chat -
POLL_CREATION
Poll creation -
POLL_UPDATE
Poll update -
REQUEST_PHONE_NUMBER
Request phone number -
ENCRYPTED_REACTION
Encrypted reaction -
CALL
A call -
STICKER_SYNC
Sticker sync -
EDITED
Text edit -
NEWSLETTER_ADMIN_INVITE
Newsletter admin invite
-
-
Constructor Details
-
MessageType
private MessageType()
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-