Module it.auties.cobalt
Interface HydratedButton
- All Superinterfaces:
it.auties.protobuf.model.ProtobufMessage
,it.auties.protobuf.model.ProtobufObject
- All Known Implementing Classes:
HydratedCallButton
,HydratedQuickReplyButton
,HydratedURLButton
public sealed interface HydratedButton
extends it.auties.protobuf.model.ProtobufMessage
permits HydratedCallButton, HydratedQuickReplyButton, HydratedURLButton
A model that represents all types of hydrated buttons
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic enum
The constants of this enumerated type describe the various types of buttons that a template can wrap -
Method Summary
Modifier and TypeMethodDescriptionReturns the type of this buttontext()
Returns the text of this button
-
Method Details
-
text
String text()Returns the text of this button- Returns:
- a non-null string if the protobuf isn't corrupted
-
buttonType
HydratedButton.Type buttonType()Returns the type of this button- Returns:
- a non-null type
-