java.lang.Object
it.tdlight.jni.TdApi.Object
it.tdlight.jni.TdApi.ChatBoostStatus
- Enclosing class:
- TdApi
Describes current boost status of a chat.
-
Field Summary
FieldsModifier and TypeFieldDescriptionint
The number of times the chat was boosted.An HTTP URL, which can be used to boost the chat.static final int
Identifier uniquely determining type of the object.int
The number of boosts added to reach the current level.boolean
True, if the current user has already boosted the chat.int
Current boost level of the chat.int
The number of boosts needed to reach the next level; 0 if the next level isn't available.int
Approximate number of Telegram Premium subscribers joined the chat; always 0 if the current user isn't an administrator in the chat.double
A percentage of Telegram Premium subscribers joined the chat; always 0 if the current user isn't an administrator in the chat. -
Constructor Summary
ConstructorsConstructorDescriptionDescribes current boost status of a chat.ChatBoostStatus
(DataInput input) Describes current boost status of a chat.ChatBoostStatus
(String boostUrl, boolean isBoosted, int level, int boostCount, int currentLevelBoostCount, int nextLevelBoostCount, int premiumMemberCount, double premiumMemberPercentage) Describes current boost status of a chat. -
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
-
boostUrl
An HTTP URL, which can be used to boost the chat. -
isBoosted
public boolean isBoostedTrue, if the current user has already boosted the chat. -
level
public int levelCurrent boost level of the chat. -
boostCount
public int boostCountThe number of times the chat was boosted. -
currentLevelBoostCount
public int currentLevelBoostCountThe number of boosts added to reach the current level. -
nextLevelBoostCount
public int nextLevelBoostCountThe number of boosts needed to reach the next level; 0 if the next level isn't available. -
CONSTRUCTOR
public static final int CONSTRUCTORIdentifier uniquely determining type of the object.- See Also:
-
-
Constructor Details
-
ChatBoostStatus
public ChatBoostStatus()Describes current boost status of a chat. -
ChatBoostStatus
public ChatBoostStatus(String boostUrl, boolean isBoosted, int level, int boostCount, int currentLevelBoostCount, int nextLevelBoostCount, int premiumMemberCount, double premiumMemberPercentage) Describes current boost status of a chat.- Parameters:
boostUrl
- An HTTP URL, which can be used to boost the chat.isBoosted
- True, if the current user has already boosted the chat.level
- Current boost level of the chat.boostCount
- The number of times the chat was boosted.currentLevelBoostCount
- The number of boosts added to reach the current level.nextLevelBoostCount
- The number of boosts needed to reach the next level; 0 if the next level isn't available.premiumMemberCount
- Approximate number of Telegram Premium subscribers joined the chat; always 0 if the current user isn't an administrator in the chat.premiumMemberPercentage
- A percentage of Telegram Premium subscribers joined the chat; always 0 if the current user isn't an administrator in the chat.
-
ChatBoostStatus
Describes current boost status of 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()
-