Record Class Sticker
java.lang.Object
java.lang.Record
org.teleight.teleightbots.api.objects.Sticker
- All Implemented Interfaces:
Serializable,ApiResult
public record Sticker(String fileId, String fileUniqueId, String type, int width, int height, boolean isAnimated, boolean isVideo, @Nullable PhotoSize thumbnail, @Nullable String emoji, @Nullable String setName, @Nullable File premiumAnnotation, @Nullable MaskPosition maskPosition, @Nullable String customEmojiId, boolean needsRepainting, @Nullable Long fileSize)
extends Record
implements ApiResult
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionSticker(String fileId, String fileUniqueId, String type, int width, int height, boolean isAnimated, boolean isVideo, @Nullable PhotoSize thumbnail, @Nullable String emoji, @Nullable String setName, @Nullable File premiumAnnotation, @Nullable MaskPosition maskPosition, @Nullable String customEmojiId, boolean needsRepainting, @Nullable Long fileSize) Creates an instance of aStickerrecord class. -
Method Summary
Modifier and TypeMethodDescription@Nullable StringReturns the value of thecustomEmojiIdrecord component.@Nullable Stringemoji()Returns the value of theemojirecord component.final booleanIndicates whether some other object is "equal to" this one.fileId()Returns the value of thefileIdrecord component.@Nullable LongfileSize()Returns the value of thefileSizerecord component.Returns the value of thefileUniqueIdrecord component.final inthashCode()Returns a hash code value for this object.intheight()Returns the value of theheightrecord component.booleanReturns the value of theisAnimatedrecord component.booleanisVideo()Returns the value of theisVideorecord component.@Nullable MaskPositionReturns the value of themaskPositionrecord component.booleanReturns the value of theneedsRepaintingrecord component.@Nullable FileReturns the value of thepremiumAnnotationrecord component.@Nullable StringsetName()Returns the value of thesetNamerecord component.@Nullable PhotoSizeReturns the value of thethumbnailrecord component.final StringtoString()Returns a string representation of this record class.type()Returns the value of thetyperecord component.intwidth()Returns the value of thewidthrecord component.
-
Constructor Details
-
Sticker
public Sticker(String fileId, String fileUniqueId, String type, int width, int height, boolean isAnimated, boolean isVideo, @Nullable @Nullable PhotoSize thumbnail, @Nullable @Nullable String emoji, @Nullable @Nullable String setName, @Nullable @Nullable File premiumAnnotation, @Nullable @Nullable MaskPosition maskPosition, @Nullable @Nullable String customEmojiId, boolean needsRepainting, @Nullable @Nullable Long fileSize) Creates an instance of aStickerrecord class.- Parameters:
fileId- the value for thefileIdrecord componentfileUniqueId- the value for thefileUniqueIdrecord componenttype- the value for thetyperecord componentwidth- the value for thewidthrecord componentheight- the value for theheightrecord componentisAnimated- the value for theisAnimatedrecord componentisVideo- the value for theisVideorecord componentthumbnail- the value for thethumbnailrecord componentemoji- the value for theemojirecord componentsetName- the value for thesetNamerecord componentpremiumAnnotation- the value for thepremiumAnnotationrecord componentmaskPosition- the value for themaskPositionrecord componentcustomEmojiId- the value for thecustomEmojiIdrecord componentneedsRepainting- the value for theneedsRepaintingrecord componentfileSize- the value for thefileSizerecord 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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
fileId
Returns the value of thefileIdrecord component.- Returns:
- the value of the
fileIdrecord component
-
fileUniqueId
Returns the value of thefileUniqueIdrecord component.- Returns:
- the value of the
fileUniqueIdrecord component
-
type
Returns the value of thetyperecord component.- Returns:
- the value of the
typerecord component
-
width
public int width()Returns the value of thewidthrecord component.- Returns:
- the value of the
widthrecord component
-
height
public int height()Returns the value of theheightrecord component.- Returns:
- the value of the
heightrecord component
-
isAnimated
public boolean isAnimated()Returns the value of theisAnimatedrecord component.- Returns:
- the value of the
isAnimatedrecord component
-
isVideo
public boolean isVideo()Returns the value of theisVideorecord component.- Returns:
- the value of the
isVideorecord component
-
thumbnail
Returns the value of thethumbnailrecord component.- Returns:
- the value of the
thumbnailrecord component
-
emoji
Returns the value of theemojirecord component.- Returns:
- the value of the
emojirecord component
-
setName
Returns the value of thesetNamerecord component.- Returns:
- the value of the
setNamerecord component
-
maskPosition
Returns the value of themaskPositionrecord component.- Returns:
- the value of the
maskPositionrecord component
-
customEmojiId
Returns the value of thecustomEmojiIdrecord component.- Returns:
- the value of the
customEmojiIdrecord component
-
needsRepainting
public boolean needsRepainting()Returns the value of theneedsRepaintingrecord component.- Returns:
- the value of the
needsRepaintingrecord component
-
fileSize
Returns the value of thefileSizerecord component.- Returns:
- the value of the
fileSizerecord component
-