C# Класс Ctf.Communication.LoginCommand

Наследование: BaseCommand
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
LogInAs ( UserCredentials user, string secret ) : Task

Logs the in as.

LogOut ( ) : bool

Logs the out.

LoggedAs ( ) : User

Loggeds as.

LoginCommand ( ) : RestSharp

Initializes a new instance of the Login class.

RequestCallbackOnFail ( String errorMessage ) : void

Requests the callback on fail.

RequestCallbackOnSuccess ( IRestResponse response ) : void

Requests the callback on success.

Описание методов

LogInAs() публичный Метод

Logs the in as.
public LogInAs ( UserCredentials user, string secret ) : Task
user Ctf.ApplicationTools.DataObjects.UserCredentials The user.
secret string The secret.
Результат Task

LogOut() публичный Метод

Logs the out.
public LogOut ( ) : bool
Результат bool

LoggedAs() публичный Метод

Loggeds as.
public LoggedAs ( ) : User
Результат Ctf.ApplicationTools.DataObjects.User

LoginCommand() публичный Метод

Initializes a new instance of the Login class.
public LoginCommand ( ) : RestSharp
Результат RestSharp

RequestCallbackOnFail() публичный Метод

Requests the callback on fail.
public RequestCallbackOnFail ( String errorMessage ) : void
errorMessage String The error message.
Результат void

RequestCallbackOnSuccess() публичный Метод

Requests the callback on success.
public RequestCallbackOnSuccess ( IRestResponse response ) : void
response IRestResponse The response.
Результат void