java.lang.Object
it.tdlight.jni.TdApi.Object
it.tdlight.jni.TdApi.Sticker
- Enclosing class:
- TdApi
Describes a sticker.
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
long
Identifier of the emoji if the sticker is a custom emoji.Emoji corresponding to the sticker.Sticker format.int
Sticker height; as defined by the sender.boolean
True, if only Premium users can use the sticker.Position where the mask is placed; may be null even the sticker is a mask.Sticker's outline represented as a list of closed vector paths; may be empty.Premium animation of the sticker; may be null.long
The identifier of the sticker set to which the sticker belongs; 0 if none.File containing the sticker.Sticker thumbnail in WEBP or JPEG format; may be null.Sticker type.int
Sticker width; as defined by the sender. -
Constructor Summary
ConstructorDescriptionSticker()
Describes a sticker.Sticker
(long setId, int width, int height, String emoji, TdApi.StickerFormat format, TdApi.StickerType type, TdApi.MaskPosition maskPosition, long customEmojiId, TdApi.ClosedVectorPath[] outline, TdApi.Thumbnail thumbnail, boolean isPremium, TdApi.File premiumAnimation, TdApi.File sticker) Describes a sticker.Describes a sticker. -
Method Summary
Methods inherited from class it.tdlight.jni.TdApi.Object
serialize, toString
-
Field Details
-
setId
public long setIdThe identifier of the sticker set to which the sticker belongs; 0 if none. -
width
public int widthSticker width; as defined by the sender. -
height
public int heightSticker height; as defined by the sender. -
emoji
Emoji corresponding to the sticker. -
format
Sticker format. -
type
Sticker type. -
maskPosition
Position where the mask is placed; may be null even the sticker is a mask. -
customEmojiId
public long customEmojiIdIdentifier of the emoji if the sticker is a custom emoji. -
outline
Sticker's outline represented as a list of closed vector paths; may be empty. The coordinate system origin is in the upper-left corner. -
thumbnail
Sticker thumbnail in WEBP or JPEG format; may be null. -
isPremium
public boolean isPremiumTrue, if only Premium users can use the sticker. -
sticker
File containing the sticker. -
CONSTRUCTOR
public static final int CONSTRUCTOR- See Also:
-
-
Constructor Details
-
Sticker
public Sticker()Describes a sticker. -
Sticker
public Sticker(long setId, int width, int height, String emoji, TdApi.StickerFormat format, TdApi.StickerType type, TdApi.MaskPosition maskPosition, long customEmojiId, TdApi.ClosedVectorPath[] outline, TdApi.Thumbnail thumbnail, boolean isPremium, TdApi.File premiumAnimation, TdApi.File sticker) Describes a sticker.- Parameters:
setId
- long The identifier of the sticker set to which the sticker belongs; 0 if none.width
- int Sticker width; as defined by the sender.height
- int Sticker height; as defined by the sender.emoji
- String Emoji corresponding to the sticker.format
- StickerFormat Sticker format.type
- StickerType Sticker type.maskPosition
- MaskPosition Position where the mask is placed; may be null even the sticker is a mask.customEmojiId
- long Identifier of the emoji if the sticker is a custom emoji.outline
- ClosedVectorPath[] Sticker's outline represented as a list of closed vector paths; may be empty. The coordinate system origin is in the upper-left corner.thumbnail
- Thumbnail Sticker thumbnail in WEBP or JPEG format; may be null.isPremium
- boolean True, if only Premium users can use the sticker.premiumAnimation
- File Premium animation of the sticker; may be null.sticker
- File File containing the sticker.
-
Sticker
Describes a sticker.- Throws:
IOException
-
-
Method Details
-
getConstructor
public int getConstructor()- Specified by:
getConstructor
in classTdApi.Object
-
serialize
- Specified by:
serialize
in classTdApi.Object
- Throws:
IOException
-
equals
-
hashCode
public int hashCode()
-