java.lang.Object
it.tdlight.jni.TdApi.Object
it.tdlight.jni.TdApi.ChatBoost
- Enclosing class:
- TdApi
Describes a boost applied to a chat.
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
Identifier uniquely determining type of the object.int
The number of identical boosts applied.int
Point in time (Unix timestamp) when the boost will expire.Unique identifier of the boost.Source of the boost.int
Point in time (Unix timestamp) when the chat was boosted. -
Constructor Summary
-
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
Unique identifier of the boost. -
count
public int countThe number of identical boosts applied. -
source
Source of the boost. -
startDate
public int startDatePoint in time (Unix timestamp) when the chat was boosted. -
expirationDate
public int expirationDatePoint in time (Unix timestamp) when the boost will expire. -
CONSTRUCTOR
public static final int CONSTRUCTORIdentifier uniquely determining type of the object.- See Also:
-
-
Constructor Details
-
ChatBoost
public ChatBoost()Describes a boost applied to a chat. -
ChatBoost
public ChatBoost(String id, int count, TdApi.ChatBoostSource source, int startDate, int expirationDate) Describes a boost applied to a chat.- Parameters:
id
- Unique identifier of the boost.count
- The number of identical boosts applied.source
- Source of the boost.startDate
- Point in time (Unix timestamp) when the chat was boosted.expirationDate
- Point in time (Unix timestamp) when the boost will expire.
-
ChatBoost
Describes a boost applied to a chat.- 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()
-