C# Class TLSharp.Core.Session

Afficher le fichier Open project: sochix/TLSharp Class Usage Examples

Méthodes publiques

Méthode Description
FromBytes ( byte buffer, ISessionStore store, string sessionUserId ) : Session
GetNewMessageId ( ) : long
Save ( ) : void
ToBytes ( ) : byte[]
TryLoadOrCreateNew ( ISessionStore store, string sessionUserId ) : Session

Private Methods

Méthode Description
GenerateRandomUlong ( ) : ulong
Session ( ISessionStore store ) : System

Method Details

FromBytes() public static méthode

public static FromBytes ( byte buffer, ISessionStore store, string sessionUserId ) : Session
buffer byte
store ISessionStore
sessionUserId string
Résultat Session

GetNewMessageId() public méthode

public GetNewMessageId ( ) : long
Résultat long

Save() public méthode

public Save ( ) : void
Résultat void

ToBytes() public méthode

public ToBytes ( ) : byte[]
Résultat byte[]

TryLoadOrCreateNew() public static méthode

public static TryLoadOrCreateNew ( ISessionStore store, string sessionUserId ) : Session
store ISessionStore
sessionUserId string
Résultat Session