TonConnectRequest class

Represents a pending TON Connect request

Inheritance
Available extensions
Annotations
  • @immutable

Constructors

TonConnectRequest({required int sessionId, required int messageId, required String body, required int expirationDate, required String topic, required String traceId})
const

Properties

body → String
body Body of the request
final
expirationDate → int
expirationDate Point in time (Unix timestamp) when the request will expire; 0 if never
final
hashCode → int
The hash code for this object.
no setteroverride
messageId → int
messageId 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
sessionId Unique identifier of the session
final
topic → String
topic Topic of the request; may be empty if none
final
traceId → String
traceId 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

Available on TonConnectRequest, provided by the TonConnectRequestExtensions extension

getConstructor() → String
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() → Map<String, dynamic>
override
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
override

Static Methods

fromJson(Map<String, dynamic>? json) → TonConnectRequest?

Constants

constructor → const String