C# Class SnooSharp.NetworkLayer

Inheritance: INetworkLayer
Afficher le fichier Open project: hippiehunter/SnooSharp

Méthodes publiques

Méthode Description
Clone ( RedditOAuth credential ) : INetworkLayer
DestroyToken ( string refreshToken ) : Task
Dispose ( ) : void
Get ( string url, CancellationToken token, IProgress progress, string>.Dictionary body ) : Task
NetworkLayer ( UserState userState, string appId, string appSecret, string redirectUrl ) : Newtonsoft.Json
Post ( string url, CancellationToken token, string>.Dictionary arguments, IProgress progress ) : Task
RefreshToken ( string refreshToken, CancellationToken token ) : Task
RequestGrantCode ( string code, CancellationToken token ) : Task
Send ( string url, string method, CancellationToken token, string>.Dictionary arguments ) : Task
ThrottleRequests ( CancellationToken token ) : Task

Private Methods

Méthode Description
EnsureRedditCookie ( CancellationToken token ) : Task
ProcessJsonErrors ( HttpResponseMessage httpResponse ) : Task
ProcessJsonErrors ( string response ) : string

Method Details

Clone() public méthode

public Clone ( RedditOAuth credential ) : INetworkLayer
credential RedditOAuth
Résultat INetworkLayer

DestroyToken() public méthode

public DestroyToken ( string refreshToken ) : Task
refreshToken string
Résultat Task

Dispose() public méthode

public Dispose ( ) : void
Résultat void

Get() public méthode

public Get ( string url, CancellationToken token, IProgress progress, string>.Dictionary body ) : Task
url string
token System.Threading.CancellationToken
progress IProgress
body string>.Dictionary
Résultat Task

NetworkLayer() public méthode

public NetworkLayer ( UserState userState, string appId, string appSecret, string redirectUrl ) : Newtonsoft.Json
userState UserState
appId string
appSecret string
redirectUrl string
Résultat Newtonsoft.Json

Post() public méthode

public Post ( string url, CancellationToken token, string>.Dictionary arguments, IProgress progress ) : Task
url string
token System.Threading.CancellationToken
arguments string>.Dictionary
progress IProgress
Résultat Task

RefreshToken() public méthode

public RefreshToken ( string refreshToken, CancellationToken token ) : Task
refreshToken string
token System.Threading.CancellationToken
Résultat Task

RequestGrantCode() public méthode

public RequestGrantCode ( string code, CancellationToken token ) : Task
code string
token System.Threading.CancellationToken
Résultat Task

Send() public méthode

public Send ( string url, string method, CancellationToken token, string>.Dictionary arguments ) : Task
url string
method string
token System.Threading.CancellationToken
arguments string>.Dictionary
Résultat Task

ThrottleRequests() public static méthode

public static ThrottleRequests ( CancellationToken token ) : Task
token System.Threading.CancellationToken
Résultat Task