java.lang.Object
it.tdlight.jni.TdApi.Object
it.tdlight.jni.TdApi.Background
- Enclosing class:
- TdApi
Describes a chat background.
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
Identifier uniquely determining type of the object.Document with the background; may be null.long
Unique background identifier.boolean
True, if the background is dark and is recommended to be used with dark theme.boolean
True, if this is one of default backgrounds.Unique background name.Type of the background. -
Constructor Summary
ConstructorDescriptionDescribes 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
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 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 and chat theme backgrounds. -
type
Type of the background. -
CONSTRUCTOR
public static final int CONSTRUCTORIdentifier uniquely determining type of the object.- 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
- Unique background identifier.isDefault
- True, if this is one of default backgrounds.isDark
- True, 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 and chat theme backgrounds.type
- Type of the background.
-
Background
Describes a chat background.- 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()
-