C# Class Catrobat.IDE.WindowsShared.Services.Common.WebCommunicationServiceWindowsShared

Inheritance: IWebCommunicationService
Show file Open project: Catrobat/CatrobatForWindows

Public Methods

Method Description
CancelDownloads ( ) : void
ChangePasswordAsync ( string newPassword, string newPasswortRepeated, string language = "en" ) : Task
CheckTokenAsync ( string username, string token, string language = "en" ) : Task
ConvertUnixTimeStamp ( double timestamp ) : System.DateTime
CreateFolderPathAsync ( string path ) : Task
DownloadAsync ( string downloadUrl, string programName, CancellationToken taskCancellationToken ) : Task
DownloadAsyncAlternativ ( string downloadUrl, string programName ) : Task
GetFileAsync ( string path, bool createIfNotExists = true ) : Task
GetFolderAsync ( string path ) : Task
InitDownloads ( ) : void
LoadOnlinePrograms ( string category, int offset, int count, CancellationToken token, string additionalSearchText = null ) : Task>
LoadOnlineProgramsAsync ( string filterText, int offset, int count, CancellationToken taskCancellationToken ) : Task>
LoginOrRegisterAsync ( string username, string password, string userEmail, string language = "en", string country = "AT" ) : Task
NoUploadsPending ( ) : bool
PauseOrResumeDownloads ( ) : void
RecoverPasswordAsync ( string recoveryUserData, string language = "en" ) : Task
ReportAsInappropriateAsync ( string programId, string flagReason, string language = "en" ) : Task
SetRecoveryHash ( string recoveryHash ) : void
UploadProgramAsync ( string programTitle, string username, string token, CancellationToken taskCancellationToken, string language = "en" ) : Task

Private Methods

Method Description
ManageDownloadProgress ( DownloadOperation downloadOperation ) : void
ManageDownloadsAsync ( DownloadOperation downloadOperation, bool start ) : void

Method Details

CancelDownloads() public method

public CancelDownloads ( ) : void
return void

ChangePasswordAsync() public method

public ChangePasswordAsync ( string newPassword, string newPasswortRepeated, string language = "en" ) : Task
newPassword string
newPasswortRepeated string
language string
return Task

CheckTokenAsync() public method

public CheckTokenAsync ( string username, string token, string language = "en" ) : Task
username string
token string
language string
return Task

ConvertUnixTimeStamp() public method

public ConvertUnixTimeStamp ( double timestamp ) : System.DateTime
timestamp double
return System.DateTime

CreateFolderPathAsync() public method

public CreateFolderPathAsync ( string path ) : Task
path string
return Task

DownloadAsync() public method

public DownloadAsync ( string downloadUrl, string programName, CancellationToken taskCancellationToken ) : Task
downloadUrl string
programName string
taskCancellationToken System.Threading.CancellationToken
return Task

DownloadAsyncAlternativ() public method

public DownloadAsyncAlternativ ( string downloadUrl, string programName ) : Task
downloadUrl string
programName string
return Task

GetFileAsync() public method

public GetFileAsync ( string path, bool createIfNotExists = true ) : Task
path string
createIfNotExists bool
return Task

GetFolderAsync() public method

public GetFolderAsync ( string path ) : Task
path string
return Task

InitDownloads() public method

public InitDownloads ( ) : void
return void

LoadOnlinePrograms() public method

public LoadOnlinePrograms ( string category, int offset, int count, CancellationToken token, string additionalSearchText = null ) : Task>
category string
offset int
count int
token System.Threading.CancellationToken
additionalSearchText string
return Task>

LoadOnlineProgramsAsync() public method

public LoadOnlineProgramsAsync ( string filterText, int offset, int count, CancellationToken taskCancellationToken ) : Task>
filterText string
offset int
count int
taskCancellationToken System.Threading.CancellationToken
return Task>

LoginOrRegisterAsync() public method

public LoginOrRegisterAsync ( string username, string password, string userEmail, string language = "en", string country = "AT" ) : Task
username string
password string
userEmail string
language string
country string
return Task

NoUploadsPending() public method

public NoUploadsPending ( ) : bool
return bool

PauseOrResumeDownloads() public method

public PauseOrResumeDownloads ( ) : void
return void

RecoverPasswordAsync() public method

public RecoverPasswordAsync ( string recoveryUserData, string language = "en" ) : Task
recoveryUserData string
language string
return Task

ReportAsInappropriateAsync() public method

public ReportAsInappropriateAsync ( string programId, string flagReason, string language = "en" ) : Task
programId string
flagReason string
language string
return Task

SetRecoveryHash() public method

public SetRecoveryHash ( string recoveryHash ) : void
recoveryHash string
return void

UploadProgramAsync() public method

public UploadProgramAsync ( string programTitle, string username, string token, CancellationToken taskCancellationToken, string language = "en" ) : Task
programTitle string
username string
token string
taskCancellationToken System.Threading.CancellationToken
language string
return Task