C# Class Ctf.Communication.LoginCommand

Inheritance: BaseCommand
ファイルを表示 Open project: blstream/Patronage2013-CaptureTheFlag Class Usage Examples

Public Methods

Method Description
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.

Method Details

LogInAs() public method

Logs the in as.
public LogInAs ( UserCredentials user, string secret ) : Task
user Ctf.ApplicationTools.DataObjects.UserCredentials The user.
secret string The secret.
return Task

LogOut() public method

Logs the out.
public LogOut ( ) : bool
return bool

LoggedAs() public method

Loggeds as.
public LoggedAs ( ) : User
return Ctf.ApplicationTools.DataObjects.User

LoginCommand() public method

Initializes a new instance of the Login class.
public LoginCommand ( ) : RestSharp
return RestSharp

RequestCallbackOnFail() public method

Requests the callback on fail.
public RequestCallbackOnFail ( String errorMessage ) : void
errorMessage String The error message.
return void

RequestCallbackOnSuccess() public method

Requests the callback on success.
public RequestCallbackOnSuccess ( IRestResponse response ) : void
response IRestResponse The response.
return void