ChatRevenueStatistics class final
ChatRevenueStatistics (chatRevenueStatistics) - basic class
A detailed statistics about revenue earned from sponsored messages in a chat.
- revenueByHourGraph: A graph containing amount of revenue in a given hour.
- revenueGraph: A graph containing amount of revenue.
- revenueAmount: Amount of earned revenue.
- usdRate: Current conversion rate of the cryptocurrency in which revenue is calculated to USD.
Constructors
- ChatRevenueStatistics({required StatisticalGraph revenueByHourGraph, required StatisticalGraph revenueGraph, required ChatRevenueAmount revenueAmount, required double usdRate, dynamic extra, int? clientId})
-
ChatRevenueStatistics (chatRevenueStatistics) - basic class
const
-
ChatRevenueStatistics.fromJson(Map<
String, dynamic> json) -
Parse from a json
factory
Properties
- clientId → int?
-
clientId client identifier
final
- currentObjectId → String
-
TDLib object type for current class instance
no setteroverride
- extra → dynamic
-
extra callback sign
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 conversion 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 - Copy model with modified properties.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
Convert model to TDLib JSON format
override
-
toString(
) → String -
Convert model to TDLib JSON format, encoded into String.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Constants
- defaultObjectId → const String
- TDLib object type