java.lang.Object
it.tdlight.jni.TdApi.Object
it.tdlight.jni.TdApi.Background
- Enclosing class:
- TdApi
Describes a chat background.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intDocument with the background; may be null.longUnique background identifier.booleanTrue, if the background is dark and is recommended to be used with dark theme.booleanTrue, if this is one of default backgrounds.Unique background name.Type of the background. -
Constructor Summary
ConstructorsConstructorDescriptionDescribes a chat background.Background(long id, boolean isDefault, boolean isDark, String name, TdApi.Document document, TdApi.BackgroundType type) Describes a chat background.Background(DataInput input) Describes a chat background. -
Method Summary
Methods inherited from class it.tdlight.jni.TdApi.Object
serialize, toString
-
Field Details
-
id
public long idUnique background identifier. -
isDefault
public boolean isDefaultTrue, if this is one of default backgrounds. -
isDark
public boolean isDarkTrue, if the background is dark and is recommended to be used with dark theme. -
name
Unique background name. -
document
Document with the background; may be null. Null only for filled backgrounds. -
type
Type of the background. -
CONSTRUCTOR
public static final int CONSTRUCTOR- See Also:
-
-
Constructor Details
-
Background
public Background()Describes a chat background. -
Background
public Background(long id, boolean isDefault, boolean isDark, String name, TdApi.Document document, TdApi.BackgroundType type) Describes a chat background.- Parameters:
id- long Unique background identifier.isDefault- boolean True, if this is one of default backgrounds.isDark- boolean True, if the background is dark and is recommended to be used with dark theme.name- String Unique background name.document- Document Document with the background; may be null. Null only for filled backgrounds.type- BackgroundType Type of the background.
-
Background
Describes a chat background.- Throws:
IOException
-
-
Method Details
-
getConstructor
public int getConstructor()- Specified by:
getConstructorin classTdApi.Object
-
serialize
- Specified by:
serializein classTdApi.Object- Throws:
IOException
-
equals
-
hashCode
public int hashCode()
-