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 Classes
    Modifier and Type
    Interface
    Description
    static enum 
    The constants of this enumerated type describe the various types of buttons that a template can wrap
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns the type of this button
    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