TonConnectRequest class final

Represents a pending TON Connect request

Inheritance

Constructors

TonConnectRequest({required int sessionId, required int messageId, required String body, required int expirationDate, required String topic, required String traceId})
Represents a pending TON Connect request
const
TonConnectRequest.fromJson(Map<String, dynamic> json)
Parses a TonConnectRequest from TDLib JSON.
factory

Properties

body → String
Body of the request
final
clientId → int?
Identifier of the TDLib client that sent this object, when known.
no setterinherited
expirationDate → int
Point in time (Unix timestamp) when the request will expire; 0 if never
final
extra → dynamic
"@extra" of the request this object answers; null for updates.
no setterinherited
hashCode → int
The hash code for this object.
no setterinherited
messageId → int
Unique identifier of the service message in the chat 777000 with the request
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
sessionId → int
Unique identifier of the session
final
topic → String
Topic of the request; may be empty if none
final
traceId → String
Identifier to trace the request; may be empty if none
final

Methods

copyWith({int? sessionId, int? messageId, String? body, int? expirationDate, String? topic, String? traceId}) → TonConnectRequest
Returns a copy with the given fields replaced. For a nullable field pass a function, e.g. field: () => null to 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.