ChatBoostStatus class final
Describes current boost status of a chat
Constructors
- ChatBoostStatus({required String boostUrl, required bool isBoosted, required int level, required int boostCount, required int currentLevelBoostCount, required int nextLevelBoostCount, dynamic extra, int? clientId})
-
Describes current boost status of a chat
const
-
ChatBoostStatus.fromJson(Map<
String, dynamic> json) -
Parses a ChatBoostStatus from TDLib JSON.
factory
Properties
- boostCount → int
-
The number of times the chat was boosted
final
- boostUrl → String
-
An HTTP URL, which can be used to boost the chat
final
- clientId → int?
-
Identifier of the TDLib client that sent this object.
final
- currentLevelBoostCount → int
-
The number of boosts added to reach the current level
final
- extra → dynamic
-
"@extra" of the request this object answers.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- isBoosted → bool
-
True, if the current user has already boosted the chat
final
- level → int
-
Current boost level of the chat
final
- nextLevelBoostCount → int
-
The number of boosts needed to reach the next level; 0 if the next level isn't available
final
-
Approximate number of Telegram Premium subscribers joined the chat; always 0 if the current user isn't an administrator in the chat
final
-
A percentage of Telegram Premium subscribers joined the chat; always 0 if the current user isn't an administrator in the chat
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
copyWith(
{String? boostUrl, bool? isBoosted, int? level, int? boostCount, int? currentLevelBoostCount, int? nextLevelBoostCount, dynamic extra, int? clientId}) → ChatBoostStatus -
Returns a copy with the given fields replaced. For a nullable
field pass a function, e.g.
field: () => nullto clear it. -
getConstructor(
) → String -
TDLib type name, e.g.
updateNewMessage.override -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
Converts this object to TDLib JSON.
override
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Constants
- CONSTRUCTOR → const String
- TDLib type name.