Package dev.tobee.telegram.model
Record Class ReplyKeyboardMarkup
java.lang.Object
java.lang.Record
dev.tobee.telegram.model.ReplyKeyboardMarkup
- All Implemented Interfaces:
ReplyMarkup
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanIndicates whether some other object is "equal to" this one.inthashCode()Returns a hash code value for this object.Returns the value of theinputFieldPlaceholderrecord component.keyboard()Returns the value of thekeyboardrecord component.Returns the value of theoneTimeKeyboardrecord component.Returns the value of theresizeKeyboardrecord component.Returns the value of theselectiverecord component.toString()Returns a string representation of this record class.
-
Constructor Details
-
ReplyKeyboardMarkup
public ReplyKeyboardMarkup(List<List<KeyboardButton>> keyboard, Optional<Boolean> resizeKeyboard, Optional<Boolean> oneTimeKeyboard, Optional<String> inputFieldPlaceholder, Optional<Boolean> selective)Creates an instance of aReplyKeyboardMarkuprecord class.- Parameters:
keyboard- the value for thekeyboardrecord componentresizeKeyboard- the value for theresizeKeyboardrecord componentoneTimeKeyboard- the value for theoneTimeKeyboardrecord componentinputFieldPlaceholder- the value for theinputFieldPlaceholderrecord componentselective- the value for theselectiverecord 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 withObjects::equals(Object,Object). -
keyboard
Returns the value of thekeyboardrecord component.- Returns:
- the value of the
keyboardrecord component
-
resizeKeyboard
Returns the value of theresizeKeyboardrecord component.- Returns:
- the value of the
resizeKeyboardrecord component
-
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
Returns the value of theselectiverecord component.- Returns:
- the value of the
selectiverecord component
-