Package dev.tobee.telegram.model
Record Class Sticker
java.lang.Object
java.lang.Record
dev.tobee.telegram.model.Sticker
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionemoji()Returns the value of theemojirecord component.booleanIndicates whether some other object is "equal to" this one.file_id()Returns the value of thefile_idrecord component.fileName()Returns the value of thefileNamerecord component.fileSize()Returns the value of thefileSizerecord component.Returns the value of thefileUniqueIdrecord component.inthashCode()Returns a hash code value for this object.intheight()Returns the value of theheightrecord component.Returns the value of theisAnimatedrecord component.mimeType()Returns the value of themimeTyperecord component.thumb()Returns the value of thethumbrecord component.toString()Returns a string representation of this record class.intwidth()Returns the value of thewidthrecord component.
-
Constructor Details
-
Sticker
public Sticker(String file_id, String fileUniqueId, int width, int height, Boolean isAnimated, Optional<PhotoSize> thumb, Optional<String> emoji, Optional<String> fileName, Optional<MaskPosition> mimeType, OptionalInt fileSize)Creates an instance of aStickerrecord class.- Parameters:
file_id- the value for thefile_idrecord componentfileUniqueId- the value for thefileUniqueIdrecord componentwidth- the value for thewidthrecord componentheight- the value for theheightrecord componentisAnimated- the value for theisAnimatedrecord componentthumb- the value for thethumbrecord componentemoji- the value for theemojirecord componentfileName- the value for thefileNamerecord componentmimeType- the value for themimeTyperecord 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 '=='. -
file_id
Returns the value of thefile_idrecord component.- Returns:
- the value of the
file_idrecord component
-
fileUniqueId
Returns the value of thefileUniqueIdrecord component.- Returns:
- the value of the
fileUniqueIdrecord 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
Returns the value of theisAnimatedrecord component.- Returns:
- the value of the
isAnimatedrecord component
-
thumb
Returns the value of thethumbrecord component.- Returns:
- the value of the
thumbrecord component
-
emoji
Returns the value of theemojirecord component.- Returns:
- the value of the
emojirecord component
-
fileName
Returns the value of thefileNamerecord component.- Returns:
- the value of the
fileNamerecord component
-
mimeType
Returns the value of themimeTyperecord component.- Returns:
- the value of the
mimeTyperecord component
-
fileSize
Returns the value of thefileSizerecord component.- Returns:
- the value of the
fileSizerecord component
-