C# Class Telegram.MTProto.Components.EncryptedChats

Mostrar archivo Open project: naphaso/kilogram Class Usage Examples

Public Methods

Method Description
CalculateKeyFingerprint ( byte key ) : long
CreateChatRequest ( InputUser user ) : System.Threading.Tasks.Task
EncryptedChats ( TelegramSession session ) : System
EncryptedChats ( TelegramSession session, BinaryReader reader ) : System
UpdateChat ( EncryptedChat chat, byte a = null ) : void
UpdateChat ( EncryptedChatConstructor chat, byte a ) : void
UpdateChat ( EncryptedChatDiscardedConstructor chat, byte a ) : void
UpdateChat ( EncryptedChatRequestedConstructor chat, byte a ) : void
UpdateChat ( EncryptedChatWaitingConstructor chat, byte a ) : void
UpdateChatHandler ( EncryptedChat chat ) : void
Write ( BinaryWriter writer ) : void

Private Methods

Method Description
CreateChatResponse ( EncryptedChatRequestedConstructor chat ) : System.Threading.Tasks.Task
GetSaltedRandomBytes ( int bytesCount, byte salt, int offset ) : byte[]
Read ( BinaryReader reader ) : void

Method Details

CalculateKeyFingerprint() public static method

public static CalculateKeyFingerprint ( byte key ) : long
key byte
return long

CreateChatRequest() public method

public CreateChatRequest ( InputUser user ) : System.Threading.Tasks.Task
user InputUser
return System.Threading.Tasks.Task

EncryptedChats() public method

public EncryptedChats ( TelegramSession session ) : System
session TelegramSession
return System

EncryptedChats() public method

public EncryptedChats ( TelegramSession session, BinaryReader reader ) : System
session TelegramSession
reader System.IO.BinaryReader
return System

UpdateChat() public method

public UpdateChat ( EncryptedChat chat, byte a = null ) : void
chat EncryptedChat
a byte
return void

UpdateChat() public method

public UpdateChat ( EncryptedChatConstructor chat, byte a ) : void
chat EncryptedChatConstructor
a byte
return void

UpdateChat() public method

public UpdateChat ( EncryptedChatDiscardedConstructor chat, byte a ) : void
chat EncryptedChatDiscardedConstructor
a byte
return void

UpdateChat() public method

public UpdateChat ( EncryptedChatRequestedConstructor chat, byte a ) : void
chat EncryptedChatRequestedConstructor
a byte
return void

UpdateChat() public method

public UpdateChat ( EncryptedChatWaitingConstructor chat, byte a ) : void
chat EncryptedChatWaitingConstructor
a byte
return void

UpdateChatHandler() public method

public UpdateChatHandler ( EncryptedChat chat ) : void
chat EncryptedChat
return void

Write() public method

public Write ( BinaryWriter writer ) : void
writer System.IO.BinaryWriter
return void