C# Class Telegram.MTProto.Components.Files

Exibir arquivo Open project: naphaso/kilogram

Public Methods

Method Description
DownloadVideo ( System.Video arg, FileUploadProcessHandler handler ) : Task
Files ( TelegramSession session ) : System
GetAvatar ( FileLocation location ) : Task
GetFile ( FileLocation fileLocation ) : Task
UploadFile ( string filename, Stream stream, FileUploadProcessHandler handler ) : Task

Private Methods

Method Description
FileLocationToCachePath ( FileLocationConstructor fileLocation ) : string
GetVideoPath ( VideoConstructor video ) : string

Method Details

DownloadVideo() public method

public DownloadVideo ( System.Video arg, FileUploadProcessHandler handler ) : Task
arg System.Video
handler FileUploadProcessHandler
return Task

Files() public method

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

GetAvatar() public method

public GetAvatar ( FileLocation location ) : Task
location FileLocation
return Task

GetFile() public method

public GetFile ( FileLocation fileLocation ) : Task
fileLocation FileLocation
return Task

UploadFile() public method

public UploadFile ( string filename, Stream stream, FileUploadProcessHandler handler ) : Task
filename string
stream Stream
handler FileUploadProcessHandler
return Task