Record Class ReplyKeyboardMarkup
java.lang.Object
java.lang.Record
org.teleight.teleightbots.api.objects.ReplyKeyboardMarkup
- All Implemented Interfaces:
Serializable,ApiResult,ReplyKeyboard
public record ReplyKeyboardMarkup(KeyboardButton[][] keyboard, boolean isPersistent, boolean resizeKeyboard, boolean oneTimeKeyboard, @Nullable String inputFieldPlaceholder, boolean selective)
extends Record
implements ReplyKeyboard
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionReplyKeyboardMarkup(KeyboardButton[][] keyboard, boolean isPersistent, boolean resizeKeyboard, boolean oneTimeKeyboard, @Nullable String inputFieldPlaceholder, boolean selective) Creates an instance of aReplyKeyboardMarkuprecord 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.@Nullable StringReturns the value of theinputFieldPlaceholderrecord component.booleanReturns the value of theisPersistentrecord component.KeyboardButton[][]keyboard()Returns the value of thekeyboardrecord component.lombok.BuilderofBuilder(KeyboardButton[][] keyboard) booleanReturns the value of theoneTimeKeyboardrecord component.booleanReturns the value of theresizeKeyboardrecord component.booleanReturns the value of theselectiverecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ReplyKeyboardMarkup
public ReplyKeyboardMarkup(KeyboardButton[][] keyboard, boolean isPersistent, boolean resizeKeyboard, boolean oneTimeKeyboard, @Nullable @Nullable String inputFieldPlaceholder, boolean selective) Creates an instance of aReplyKeyboardMarkuprecord class.- Parameters:
keyboard- the value for thekeyboardrecord componentisPersistent- the value for theisPersistentrecord componentresizeKeyboard- the value for theresizeKeyboardrecord componentoneTimeKeyboard- the value for theoneTimeKeyboardrecord componentinputFieldPlaceholder- the value for theinputFieldPlaceholderrecord componentselective- the value for theselectiverecord component
-
-
Method Details
-
ofBuilder
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
keyboard
Returns the value of thekeyboardrecord component.- Returns:
- the value of the
keyboardrecord component
-
isPersistent
public boolean isPersistent()Returns the value of theisPersistentrecord component.- Returns:
- the value of the
isPersistentrecord component
-
resizeKeyboard
public boolean resizeKeyboard()Returns the value of theresizeKeyboardrecord component.- Returns:
- the value of the
resizeKeyboardrecord component
-
oneTimeKeyboard
public boolean oneTimeKeyboard()Returns the value of theoneTimeKeyboardrecord component.- Returns:
- the value of the
oneTimeKeyboardrecord component
-
inputFieldPlaceholder
Returns the value of theinputFieldPlaceholderrecord component.- Returns:
- the value of the
inputFieldPlaceholderrecord component
-
selective
public boolean selective()Returns the value of theselectiverecord component.- Returns:
- the value of the
selectiverecord component
-