ConnectedAffiliateProgram class final
Describes an affiliate program that was connected to an affiliate
Constructors
- ConnectedAffiliateProgram({required String url, required int botUserId, required AffiliateProgramParameters parameters, required int connectionDate, required bool isDisconnected, required int userCount, required int revenueStarCount, dynamic extra, int? clientId})
-
Describes an affiliate program that was connected to an affiliate
const
-
ConnectedAffiliateProgram.fromJson(Map<
String, dynamic> json) -
Parses a ConnectedAffiliateProgram from TDLib JSON.
factory
Properties
- botUserId → int
-
User identifier of the bot that created the program
final
- clientId → int?
-
Identifier of the TDLib client that sent this object.
final
- connectionDate → int
-
Point in time (Unix timestamp) when the affiliate program was connected
final
- extra → dynamic
-
"@extra" of the request this object answers.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- isDisconnected → bool
-
True, if the program was canceled by the bot, or disconnected by the chat owner and isn't available anymore
final
- parameters → AffiliateProgramParameters
-
The parameters of the affiliate program
final
- revenueStarCount → int
-
The number of Telegram Stars that were earned by the affiliate program
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- url → String
-
The link that can be used to refer users if the program is still active
final
- userCount → int
-
The number of users that used the affiliate program
final
Methods
-
copyWith(
{String? url, int? botUserId, AffiliateProgramParameters? parameters, int? connectionDate, bool? isDisconnected, int? userCount, int? revenueStarCount, dynamic extra, int? clientId}) → ConnectedAffiliateProgram -
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.