Package dev.tobee.telegram.model.message
Record Class CallbackQuery
java.lang.Object
java.lang.Record
dev.tobee.telegram.model.message.CallbackQuery
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thechatInstancerecord component.data()Returns the value of thedatarecord component.final booleanIndicates whether some other object is "equal to" this one.from()Returns the value of thefromrecord component.Returns the value of thegameShortNamerecord component.final inthashCode()Returns a hash code value for this object.id()Returns the value of theidrecord component.Returns the value of theinlineMessageIdrecord component.message()Returns the value of themessagerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
CallbackQuery
public CallbackQuery(String id, User from, Message message, String inlineMessageId, String chatInstance, String data, String gameShortName) Creates an instance of aCallbackQueryrecord class.- Parameters:
id- the value for theidrecord componentfrom- the value for thefromrecord componentmessage- the value for themessagerecord componentinlineMessageId- the value for theinlineMessageIdrecord componentchatInstance- the value for thechatInstancerecord componentdata- the value for thedatarecord componentgameShortName- the value for thegameShortNamerecord 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). -
id
Returns the value of theidrecord component.- Returns:
- the value of the
idrecord component
-
from
Returns the value of thefromrecord component.- Returns:
- the value of the
fromrecord component
-
message
Returns the value of themessagerecord component.- Returns:
- the value of the
messagerecord component
-
inlineMessageId
Returns the value of theinlineMessageIdrecord component.- Returns:
- the value of the
inlineMessageIdrecord component
-
chatInstance
Returns the value of thechatInstancerecord component.- Returns:
- the value of the
chatInstancerecord component
-
data
Returns the value of thedatarecord component.- Returns:
- the value of the
datarecord component
-
gameShortName
Returns the value of thegameShortNamerecord component.- Returns:
- the value of the
gameShortNamerecord component
-