SecretChat class

Implemented types

Constructors

SecretChat({int id, int userId, dynamic state, bool isOutbound, int ttl, String keyHash, int layer})
Represents a secret chat. id Secret chat identifier. userId Identifier of the chat partner. state State of the secret chat. isOutbound True, if the chat was created by the current user; otherwise false. ttl Current message Time To Live setting (self-destruct timer) for the chat, in seconds. keyHash Hash of the currently used key for comparison with the hash of the chat partner's key. This is a string of 36 bytes, which must be used to make a 12x12 square image with a color depth of 4. The first 16 bytes should be used to make a central 8x8 square, while the remaining 20 bytes should be used to construct a 2-pixel-wide border around that square.. Alternatively, the first 32 bytes of the hash can be converted to the hexadecimal format and printed as 32 2-digit hex numbers. layer Secret chat layer; determines features supported by the other client. Video notes are supported if the layer
SecretChat.fromJson(Map<String, dynamic> json)
Parse from a json

Properties

extra ↔ dynamic
read / write
hashCode int
The hash code for this object. [...]
read-only, inherited
id int
read / write
isOutbound bool
read / write
keyHash String
read / write
layer int
read / write
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
state ↔ dynamic
read / write
ttl int
read / write
userId int
read / write

Methods

getConstructor() String
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toJson() Map<String, dynamic>
override
toString() String
Returns a string representation of this object.
inherited

Operators

operator ==(dynamic other) bool
The equality operator. [...]
inherited

Constants

CONSTRUCTOR → const String
"secretChat"