Record Class InlineQueryResultCachedSticker
java.lang.Object
java.lang.Record
org.teleight.teleightbots.api.objects.InlineQueryResultCachedSticker
- All Implemented Interfaces:
Serializable,ApiResult,InlineQueryResult
public record InlineQueryResultCachedSticker(@NotNull String id, @NotNull String stickerFileId, @Nullable ReplyKeyboard replyMarkup, @Nullable InputMessageContent inputMessageContent)
extends Record
implements InlineQueryResult
- See Also:
-
Field Summary
Fields inherited from interface org.teleight.teleightbots.api.objects.InlineQueryResult
TYPE_NAME -
Constructor Summary
ConstructorsConstructorDescriptionInlineQueryResultCachedSticker(@NotNull String id, @NotNull String stickerFileId, @Nullable ReplyKeyboard replyMarkup, @Nullable InputMessageContent inputMessageContent) Creates an instance of aInlineQueryResultCachedStickerrecord 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.@NotNull Stringid()Returns the value of theidrecord component.@Nullable InputMessageContentReturns the value of theinputMessageContentrecord component.@Nullable ReplyKeyboardReturns the value of thereplyMarkuprecord component.@NotNull StringReturns the value of thestickerFileIdrecord component.final StringtoString()Returns a string representation of this record class.type()
-
Constructor Details
-
InlineQueryResultCachedSticker
public InlineQueryResultCachedSticker(@NotNull @NotNull String id, @NotNull @NotNull String stickerFileId, @Nullable @Nullable ReplyKeyboard replyMarkup, @Nullable @Nullable InputMessageContent inputMessageContent) Creates an instance of aInlineQueryResultCachedStickerrecord class.- Parameters:
id- the value for theidrecord componentstickerFileId- the value for thestickerFileIdrecord componentreplyMarkup- the value for thereplyMarkuprecord componentinputMessageContent- the value for theinputMessageContentrecord component
-
-
Method Details
-
type
- Specified by:
typein interfaceInlineQueryResult
-
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
-
stickerFileId
Returns the value of thestickerFileIdrecord component.- Returns:
- the value of the
stickerFileIdrecord component
-
replyMarkup
Returns the value of thereplyMarkuprecord component.- Returns:
- the value of the
replyMarkuprecord component
-
inputMessageContent
Returns the value of theinputMessageContentrecord component.- Returns:
- the value of the
inputMessageContentrecord component
-