Record Class StickerSet
java.lang.Object
java.lang.Record
org.teleight.teleightbots.api.objects.StickerSet
- All Implemented Interfaces:
Serializable, ApiResult
-
Constructor Summary
Constructors -
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 Stringname()Returns the value of thenamerecord component.@NotNull Sticker[]stickers()Returns the value of thestickersrecord component.@NotNull StringReturns the value of thestickerTyperecord component.@Nullable PhotoSizeReturns the value of thethumbnailrecord component.@NotNull Stringtitle()Returns the value of thetitlerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
StickerSet
public StickerSet(@NotNull @NotNull String name, @NotNull @NotNull String title, @NotNull @NotNull String stickerType, @NotNull @NotNull Sticker[] stickers, @Nullable @Nullable PhotoSize thumbnail) Creates an instance of aStickerSetrecord class.- Parameters:
name- the value for thenamerecord componenttitle- the value for thetitlerecord componentstickerType- the value for thestickerTyperecord componentstickers- the value for thestickersrecord componentthumbnail- the value for thethumbnailrecord component
-
-
Method Details
-
toString
-
hashCode
-
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). -
name
Returns the value of thenamerecord component.- Returns:
- the value of the
namerecord component
-
title
Returns the value of thetitlerecord component.- Returns:
- the value of the
titlerecord component
-
stickerType
Returns the value of thestickerTyperecord component.- Returns:
- the value of the
stickerTyperecord component
-
stickers
Returns the value of thestickersrecord component.- Returns:
- the value of the
stickersrecord component
-
thumbnail
Returns the value of thethumbnailrecord component.- Returns:
- the value of the
thumbnailrecord component
-