Record Class KeyboardButtonRequestUsers

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

public record KeyboardButtonRequestUsers(int requestId, boolean userIsBot, boolean userIsPremium, int maxQuantity, boolean requestName, boolean requestUsername, boolean requestPhoto) extends Record implements ApiResult
See Also:
  • Constructor Summary

    Constructors
    Constructor
    Description
    KeyboardButtonRequestUsers(int requestId, boolean userIsBot, boolean userIsPremium, int maxQuantity, boolean requestName, boolean requestUsername, boolean requestPhoto)
    Creates an instance of a KeyboardButtonRequestUsers record class.
  • Method Summary

    Modifier and Type
    Method
    Description
    final boolean
    Indicates whether some other object is "equal to" this one.
    final int
    Returns a hash code value for this object.
    int
    Returns the value of the maxQuantity record component.
    int
    Returns the value of the requestId record component.
    boolean
    Returns the value of the requestName record component.
    boolean
    Returns the value of the requestPhoto record component.
    boolean
    Returns the value of the requestUsername record component.
    final String
    Returns a string representation of this record class.
    boolean
    Returns the value of the userIsBot record component.
    boolean
    Returns the value of the userIsPremium record component.

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • KeyboardButtonRequestUsers

      public KeyboardButtonRequestUsers(int requestId, boolean userIsBot, boolean userIsPremium, int maxQuantity, boolean requestName, boolean requestUsername, boolean requestPhoto)
      Creates an instance of a KeyboardButtonRequestUsers record class.
      Parameters:
      requestId - the value for the requestId record component
      userIsBot - the value for the userIsBot record component
      userIsPremium - the value for the userIsPremium record component
      maxQuantity - the value for the maxQuantity record component
      requestName - the value for the requestName record component
      requestUsername - the value for the requestUsername record component
      requestPhoto - the value for the requestPhoto record component
  • Method Details

    • 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 '=='.
      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.
    • requestId

      public int requestId()
      Returns the value of the requestId record component.
      Returns:
      the value of the requestId record component
    • userIsBot

      public boolean userIsBot()
      Returns the value of the userIsBot record component.
      Returns:
      the value of the userIsBot record component
    • userIsPremium

      public boolean userIsPremium()
      Returns the value of the userIsPremium record component.
      Returns:
      the value of the userIsPremium record component
    • maxQuantity

      public int maxQuantity()
      Returns the value of the maxQuantity record component.
      Returns:
      the value of the maxQuantity record component
    • requestName

      public boolean requestName()
      Returns the value of the requestName record component.
      Returns:
      the value of the requestName record component
    • requestUsername

      public boolean requestUsername()
      Returns the value of the requestUsername record component.
      Returns:
      the value of the requestUsername record component
    • requestPhoto

      public boolean requestPhoto()
      Returns the value of the requestPhoto record component.
      Returns:
      the value of the requestPhoto record component