Package org.drinkless.tdlib
Class TdApi.TextCompositionStyle
java.lang.Object
org.drinkless.tdlib.TdApi.Object
org.drinkless.tdlib.TdApi.TextCompositionStyle
- Enclosing class:
TdApi
Describes a style that can be used to compose a text.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intIdentifier uniquely determining type of the object.longUser identifier of the creator of the style; 0 if none of unknown.longIdentifier of the custom emoji corresponding to the style; 0 if none.Example of the style usage in English; may be null if unknown.intNumber of users that installed the style; for created custom styles only; 0 if unknown.booleanTrue, if the user is creator of the style.booleanTrue, if the style is created by a user.Name of the style.Prompt of the style; for created custom styles only.Title of the style in the user application's language. -
Constructor Summary
ConstructorsConstructorDescriptionDescribes a style that can be used to compose a text.TextCompositionStyle(String name, long customEmojiId, String title, boolean isCustom, boolean isCreator, int installCount, String prompt, long creatorUserId, TdApi.TextCompositionStyleExample englishExample) Describes a style that can be used to compose a text. -
Method Summary
Modifier and TypeMethodDescriptionintReturns an identifier uniquely determining type of the object.Methods inherited from class org.drinkless.tdlib.TdApi.Object
toString
-
Field Details
-
name
Name of the style. -
customEmojiId
public long customEmojiIdIdentifier of the custom emoji corresponding to the style; 0 if none. -
title
Title of the style in the user application's language. -
isCustom
public boolean isCustomTrue, if the style is created by a user. -
isCreator
public boolean isCreatorTrue, if the user is creator of the style. -
installCount
public int installCountNumber of users that installed the style; for created custom styles only; 0 if unknown. -
prompt
Prompt of the style; for created custom styles only. -
creatorUserId
public long creatorUserIdUser identifier of the creator of the style; 0 if none of unknown. -
englishExample
Example of the style usage in English; may be null if unknown. -
CONSTRUCTOR
public static final int CONSTRUCTORIdentifier uniquely determining type of the object.- See Also:
-
-
Constructor Details
-
TextCompositionStyle
public TextCompositionStyle()Describes a style that can be used to compose a text. -
TextCompositionStyle
public TextCompositionStyle(String name, long customEmojiId, String title, boolean isCustom, boolean isCreator, int installCount, String prompt, long creatorUserId, TdApi.TextCompositionStyleExample englishExample) Describes a style that can be used to compose a text.- Parameters:
name- Name of the style.customEmojiId- Identifier of the custom emoji corresponding to the style; 0 if none.title- Title of the style in the user application's language.isCustom- True, if the style is created by a user.isCreator- True, if the user is creator of the style.installCount- Number of users that installed the style; for created custom styles only; 0 if unknown.prompt- Prompt of the style; for created custom styles only.creatorUserId- User identifier of the creator of the style; 0 if none of unknown.englishExample- Example of the style usage in English; may be null if unknown.
-
-
Method Details
-
getConstructor
public int getConstructor()Description copied from class:TdApi.ObjectReturns an identifier uniquely determining type of the object.- Specified by:
getConstructorin classTdApi.Object- Returns:
- this.CONSTRUCTOR
-