Package dev.tobee.telegram.model
Record Class InlineKeyboardButton
java.lang.Object
java.lang.Record
dev.tobee.telegram.model.InlineKeyboardButton
-
Constructor Summary
ConstructorsConstructorDescriptionInlineKeyboardButton(String text, Optional<String> url, Optional<LoginUrl> loginUrl, Optional<String> callbackData, Optional<String> switchInlineQuery, Optional<String> switchInlineQueryCurrentChat, Optional<CallbackGame> callbackGame, Optional<Boolean> pay)Creates an instance of aInlineKeyboardButtonrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thecallbackDatarecord component.Returns the value of thecallbackGamerecord component.booleanIndicates whether some other object is "equal to" this one.inthashCode()Returns a hash code value for this object.loginUrl()Returns the value of theloginUrlrecord component.pay()Returns the value of thepayrecord component.Returns the value of theswitchInlineQueryrecord component.Returns the value of theswitchInlineQueryCurrentChatrecord component.text()Returns the value of thetextrecord component.toString()Returns a string representation of this record class.url()Returns the value of theurlrecord component.
-
Constructor Details
-
InlineKeyboardButton
public InlineKeyboardButton(String text, Optional<String> url, Optional<LoginUrl> loginUrl, Optional<String> callbackData, Optional<String> switchInlineQuery, Optional<String> switchInlineQueryCurrentChat, Optional<CallbackGame> callbackGame, Optional<Boolean> pay)Creates an instance of aInlineKeyboardButtonrecord class.- Parameters:
text- the value for thetextrecord componenturl- the value for theurlrecord componentloginUrl- the value for theloginUrlrecord componentcallbackData- the value for thecallbackDatarecord componentswitchInlineQuery- the value for theswitchInlineQueryrecord componentswitchInlineQueryCurrentChat- the value for theswitchInlineQueryCurrentChatrecord componentcallbackGame- the value for thecallbackGamerecord componentpay- the value for thepayrecord 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). -
text
Returns the value of thetextrecord component.- Returns:
- the value of the
textrecord component
-
url
Returns the value of theurlrecord component.- Returns:
- the value of the
urlrecord component
-
loginUrl
Returns the value of theloginUrlrecord component.- Returns:
- the value of the
loginUrlrecord component
-
callbackData
Returns the value of thecallbackDatarecord component.- Returns:
- the value of the
callbackDatarecord component
-
switchInlineQuery
Returns the value of theswitchInlineQueryrecord component.- Returns:
- the value of the
switchInlineQueryrecord component
-
switchInlineQueryCurrentChat
Returns the value of theswitchInlineQueryCurrentChatrecord component.- Returns:
- the value of the
switchInlineQueryCurrentChatrecord component
-
callbackGame
Returns the value of thecallbackGamerecord component.- Returns:
- the value of the
callbackGamerecord component
-
pay
Returns the value of thepayrecord component.- Returns:
- the value of the
payrecord component
-