Record Class CallbackQuery

java.lang.Object
java.lang.Record
org.teleight.teleightbots.api.objects.CallbackQuery
All Implemented Interfaces:
Serializable, ApiResult

public record CallbackQuery(String id, User from, @Nullable MaybeInaccessibleMessage message, @Nullable String inlineMessageId, String chatInstance, @Nullable String data) extends Record implements ApiResult
See Also:
  • Constructor Details

    • CallbackQuery

      public CallbackQuery(String id, User from, @Nullable @Nullable MaybeInaccessibleMessage message, @Nullable @Nullable String inlineMessageId, String chatInstance, @Nullable @Nullable String data)
      Creates an instance of a CallbackQuery record class.
      Parameters:
      id - the value for the id record component
      from - the value for the from record component
      message - the value for the message record component
      inlineMessageId - the value for the inlineMessageId record component
      chatInstance - the value for the chatInstance record component
      data - the value for the data record component
  • Method Details

    • ofBuilder

      @NotNull public static @NotNull lombok.Builder ofBuilder(String id, User from)
    • toString

      public final String toString()
      Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • hashCode

      public final int hashCode()
      Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared with Objects::equals(Object,Object).
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • id

      public String id()
      Returns the value of the id record component.
      Returns:
      the value of the id record component
    • from

      public User from()
      Returns the value of the from record component.
      Returns:
      the value of the from record component
    • message

      @Nullable public @Nullable MaybeInaccessibleMessage message()
      Returns the value of the message record component.
      Returns:
      the value of the message record component
    • inlineMessageId

      @Nullable public @Nullable String inlineMessageId()
      Returns the value of the inlineMessageId record component.
      Returns:
      the value of the inlineMessageId record component
    • chatInstance

      public String chatInstance()
      Returns the value of the chatInstance record component.
      Returns:
      the value of the chatInstance record component
    • data

      @Nullable public @Nullable String data()
      Returns the value of the data record component.
      Returns:
      the value of the data record component