Record Class CallbackQuery
java.lang.Object
java.lang.Record
org.teleight.teleightbots.api.objects.CallbackQuery
- All Implemented Interfaces:
Serializable,ApiResult
public record CallbackQuery(String id, User from, @Nullable MaybeInaccessibleMessage message, @Nullable String inlineMessageId, String chatInstance, @Nullable String data)
extends Record
implements ApiResult
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionCallbackQuery(String id, User from, @Nullable MaybeInaccessibleMessage message, @Nullable String inlineMessageId, String chatInstance, @Nullable String data) Creates an instance of aCallbackQueryrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thechatInstancerecord component.@Nullable Stringdata()Returns the value of thedatarecord component.final booleanIndicates whether some other object is "equal to" this one.from()Returns the value of thefromrecord component.final inthashCode()Returns a hash code value for this object.id()Returns the value of theidrecord component.@Nullable StringReturns the value of theinlineMessageIdrecord component.@Nullable MaybeInaccessibleMessagemessage()Returns the value of themessagerecord component.static @NotNull lombok.Builderfinal StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
CallbackQuery
public CallbackQuery(String id, User from, @Nullable @Nullable MaybeInaccessibleMessage message, @Nullable @Nullable String inlineMessageId, String chatInstance, @Nullable @Nullable String data) 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 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. 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
-