C# Class Imgur.API.Authentication.Impl.ApiClientBase

Base Client class.
Inheritance: IApiClient
ファイルを表示 Open project: DamienDennehy/Imgur.API

Public Methods

Method Description
SetOAuth2Token ( IOAuth2Token oAuth2Token ) : void

Sets the oAuth2Token to be used.

Protected Methods

Method Description
ApiClientBase ( string clientId ) : System

Initializes a new instance of the ApiClientBase class.

ApiClientBase ( string clientId, IOAuth2Token oAuth2Token ) : System

Initializes a new instance of the ApiClientBase class.

ApiClientBase ( string clientId, string clientSecret ) : System

Initializes a new instance of the ApiClientBase class.

ApiClientBase ( string clientId, string clientSecret, IOAuth2Token oAuth2Token ) : System

Initializes a new instance of the ApiClientBase class.

Private Methods

Method Description
ApiClientBase ( ) : System

Initializes a new instance of the ApiClientBase class.

Method Details

ApiClientBase() protected method

Initializes a new instance of the ApiClientBase class.
/// Thrown when a null reference is passed to a method that does not accept it as a /// valid argument. ///
protected ApiClientBase ( string clientId ) : System
clientId string The Imgur app's ClientId.
return System

ApiClientBase() protected method

Initializes a new instance of the ApiClientBase class.
/// Thrown when a null reference is passed to a method that does not accept it as a /// valid argument. ///
protected ApiClientBase ( string clientId, IOAuth2Token oAuth2Token ) : System
clientId string The Imgur app's ClientId.
oAuth2Token IOAuth2Token OAuth2 credentials.
return System

ApiClientBase() protected method

Initializes a new instance of the ApiClientBase class.
/// Thrown when a null reference is passed to a method that does not accept it as a /// valid argument. ///
protected ApiClientBase ( string clientId, string clientSecret ) : System
clientId string The Imgur app's ClientId.
clientSecret string The Imgur app's ClientSecret.
return System

ApiClientBase() protected method

Initializes a new instance of the ApiClientBase class.
/// Thrown when a null reference is passed to a method that does not accept it as a /// valid argument. ///
protected ApiClientBase ( string clientId, string clientSecret, IOAuth2Token oAuth2Token ) : System
clientId string The Imgur app's ClientId.
clientSecret string The Imgur app's ClientSecret.
oAuth2Token IOAuth2Token OAuth2 credentials.
return System

SetOAuth2Token() public method

Sets the oAuth2Token to be used.
/// Thrown when a null reference is passed to a method that does not accept it as a /// valid argument. ///
public SetOAuth2Token ( IOAuth2Token oAuth2Token ) : void
oAuth2Token IOAuth2Token See .
return void