ChatRevenueStatistics class final
A detailed statistics about revenue earned from sponsored messages in a chat
Constructors
- ChatRevenueStatistics({required StatisticalGraph revenueByHourGraph, required StatisticalGraph revenueGraph, required ChatRevenueAmount revenueAmount, required double usdRate, dynamic extra, int? clientId})
-
A detailed statistics about revenue earned from sponsored messages in a chat
const
-
ChatRevenueStatistics.fromJson(Map<
String, dynamic> json) -
Parses a ChatRevenueStatistics from TDLib JSON.
factory
Properties
- clientId → int?
-
Identifier of the TDLib client that sent this object.
final
- extra → dynamic
-
"@extra" of the request this object answers.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- revenueAmount → ChatRevenueAmount
-
Amount of earned revenue
final
- revenueByHourGraph → StatisticalGraph
-
A graph containing amount of revenue in a given hour
final
- revenueGraph → StatisticalGraph
-
A graph containing amount of revenue
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- usdRate → double
-
Current exchange rate of the cryptocurrency in which revenue is calculated to USD
final
Methods
-
copyWith(
{StatisticalGraph? revenueByHourGraph, StatisticalGraph? revenueGraph, ChatRevenueAmount? revenueAmount, double? usdRate, dynamic extra, int? clientId}) → ChatRevenueStatistics -
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.