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
ConstructorsConstructorDescriptionKeyboardButtonRequestUsers(int requestId, boolean userIsBot, boolean userIsPremium, int maxQuantity, boolean requestName, boolean requestUsername, boolean requestPhoto) Creates an instance of aKeyboardButtonRequestUsersrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.intReturns the value of themaxQuantityrecord component.intReturns the value of therequestIdrecord component.booleanReturns the value of therequestNamerecord component.booleanReturns the value of therequestPhotorecord component.booleanReturns the value of therequestUsernamerecord component.final StringtoString()Returns a string representation of this record class.booleanReturns the value of theuserIsBotrecord component.booleanReturns the value of theuserIsPremiumrecord component.
-
Constructor Details
-
KeyboardButtonRequestUsers
public KeyboardButtonRequestUsers(int requestId, boolean userIsBot, boolean userIsPremium, int maxQuantity, boolean requestName, boolean requestUsername, boolean requestPhoto) Creates an instance of aKeyboardButtonRequestUsersrecord class.- Parameters:
requestId- the value for therequestIdrecord componentuserIsBot- the value for theuserIsBotrecord componentuserIsPremium- the value for theuserIsPremiumrecord componentmaxQuantity- the value for themaxQuantityrecord componentrequestName- the value for therequestNamerecord componentrequestUsername- the value for therequestUsernamerecord componentrequestPhoto- the value for therequestPhotorecord component
-
-
Method Details
-
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. -
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. -
equals
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 '=='. -
requestId
public int requestId()Returns the value of therequestIdrecord component.- Returns:
- the value of the
requestIdrecord component
-
userIsBot
public boolean userIsBot()Returns the value of theuserIsBotrecord component.- Returns:
- the value of the
userIsBotrecord component
-
userIsPremium
public boolean userIsPremium()Returns the value of theuserIsPremiumrecord component.- Returns:
- the value of the
userIsPremiumrecord component
-
maxQuantity
public int maxQuantity()Returns the value of themaxQuantityrecord component.- Returns:
- the value of the
maxQuantityrecord component
-
requestName
public boolean requestName()Returns the value of therequestNamerecord component.- Returns:
- the value of the
requestNamerecord component
-
requestUsername
public boolean requestUsername()Returns the value of therequestUsernamerecord component.- Returns:
- the value of the
requestUsernamerecord component
-
requestPhoto
public boolean requestPhoto()Returns the value of therequestPhotorecord component.- Returns:
- the value of the
requestPhotorecord component
-