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
Identifier uniquely determining type of the object.Emoji corresponding to the sticker.Sticker format.Sticker's full type.int
Sticker height; as defined by the sender.long
Unique sticker identifier within the set; 0 if none.Sticker's outline represented as a list of closed vector paths; may be empty.long
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.int
Sticker width; as defined by the sender. -
Constructor Summary
ConstructorDescriptionSticker()
Describes a sticker.Sticker
(long id, long setId, int width, int height, String emoji, TdApi.StickerFormat format, TdApi.StickerFullType fullType, TdApi.ClosedVectorPath[] outline, TdApi.Thumbnail thumbnail, TdApi.File sticker) Describes a sticker.Describes a sticker. -
Method Summary
Modifier and TypeMethodDescriptionboolean
int
Returns an identifier uniquely determining type of the object.int
hashCode()
void
serialize
(DataOutput output) Serialize the TDLib classMethods inherited from class it.tdlight.jni.TdApi.Object
serialize, toString
-
Field Details
-
id
public long idUnique sticker identifier within the set; 0 if none. -
setId
public long setIdIdentifier 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. -
fullType
Sticker's full type. -
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. -
sticker
File containing the sticker. -
CONSTRUCTOR
public static final int CONSTRUCTORIdentifier uniquely determining type of the object.- See Also:
-
-
Constructor Details
-
Sticker
public Sticker()Describes a sticker. -
Sticker
public Sticker(long id, long setId, int width, int height, String emoji, TdApi.StickerFormat format, TdApi.StickerFullType fullType, TdApi.ClosedVectorPath[] outline, TdApi.Thumbnail thumbnail, TdApi.File sticker) Describes a sticker.- Parameters:
id
- Unique sticker identifier within the set; 0 if none.setId
- Identifier of the sticker set to which the sticker belongs; 0 if none.width
- Sticker width; as defined by the sender.height
- Sticker height; as defined by the sender.emoji
- Emoji corresponding to the sticker.format
- Sticker format.fullType
- Sticker's full type.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.sticker
- File containing the sticker.
-
Sticker
Describes a sticker.- Parameters:
input
- Serialized input- Throws:
IOException
- the deserialization failed
-
-
Method Details
-
getConstructor
public int getConstructor()Description copied from class:TdApi.Object
Returns an identifier uniquely determining type of the object.- Specified by:
getConstructor
in classTdApi.Object
- Returns:
- this.CONSTRUCTOR
-
serialize
Serialize the TDLib class- Specified by:
serialize
in classTdApi.Object
- Parameters:
output
- output data stream- Throws:
IOException
- the serialization failed
-
equals
-
hashCode
public int hashCode()
-