C# Class AssemblyCSharp.BackendConnection

Inheritance: System.DisposableObject
Afficher le fichier Open project: wooga/ps_social_jam Class Usage Examples

Méthodes publiques

Méthode Description
Authenticate ( BackendAuth auth ) : void
Authenticate ( string userID, string password ) : void
BackendConnection ( string host ) : System
DoGet ( string path, Dictionary,System.Collections.Generic urlParams, CancellationToken cancellationToken, bool verifyResponse, object>.Action responseCallback ) : IEnumerator
DoPostData ( string path, string postDataBody, CancellationToken cancellationToken, bool verifyResponse, object>.Action responseCallback = null ) : IEnumerator
DoPostForm ( string path, Dictionary,System.Collections.Generic formData, CancellationToken cancellationToken, bool verifyResponse, object>.Action responseCallback ) : IEnumerator
Execute ( AbstractBackendTask task, Action onSuccess, Action onError = null ) : void
NewContextDict ( ) : object>.Dictionary
PaymentAction ( ) : string
RequestDigest ( string path, string body = null, Dictionary,System.Collections.Generic urlParams = null ) : string
ResponseDigest ( string body, string password = null ) : string
RetryRequest ( ) : void
StartSession ( string sessionID, int sequence ) : void
TargetedAction ( string target, string action = null ) : string
UserAction ( string action = null ) : string

Private Methods

Méthode Description
AbsURL ( string path ) : string
CreatePostFormWWW ( string path, Dictionary,System.Collections.Generic formData ) : WWW
CreateRequestHeaders ( string path, string body = null, Dictionary,System.Collections.Generic urlParams = null ) : Dictionary,System.Collections.Generic
DoRequest ( WWW www, CancellationToken cancellationToken, bool verifyResponse, object>.Action responseCallback ) : IEnumerator
ResponseAsDictionary ( WWW www ) : object>.Dictionary
SHA1HexDigest ( string str ) : string
SetCookie ( string cookieValue ) : void

Method Details

Authenticate() public méthode

public Authenticate ( BackendAuth auth ) : void
auth BackendAuth
Résultat void

Authenticate() public méthode

public Authenticate ( string userID, string password ) : void
userID string
password string
Résultat void

BackendConnection() public méthode

public BackendConnection ( string host ) : System
host string
Résultat System

DoGet() public méthode

public DoGet ( string path, Dictionary,System.Collections.Generic urlParams, CancellationToken cancellationToken, bool verifyResponse, object>.Action responseCallback ) : IEnumerator
path string
urlParams Dictionary,System.Collections.Generic
cancellationToken CancellationToken
verifyResponse bool
responseCallback object>.Action
Résultat IEnumerator

DoPostData() public méthode

public DoPostData ( string path, string postDataBody, CancellationToken cancellationToken, bool verifyResponse, object>.Action responseCallback = null ) : IEnumerator
path string
postDataBody string
cancellationToken CancellationToken
verifyResponse bool
responseCallback object>.Action
Résultat IEnumerator

DoPostForm() public méthode

public DoPostForm ( string path, Dictionary,System.Collections.Generic formData, CancellationToken cancellationToken, bool verifyResponse, object>.Action responseCallback ) : IEnumerator
path string
formData Dictionary,System.Collections.Generic
cancellationToken CancellationToken
verifyResponse bool
responseCallback object>.Action
Résultat IEnumerator

Execute() public méthode

public Execute ( AbstractBackendTask task, Action onSuccess, Action onError = null ) : void
task AbstractBackendTask
onSuccess Action
onError Action
Résultat void

NewContextDict() public méthode

public NewContextDict ( ) : object>.Dictionary
Résultat object>.Dictionary

PaymentAction() public méthode

public PaymentAction ( ) : string
Résultat string

RequestDigest() public méthode

public RequestDigest ( string path, string body = null, Dictionary,System.Collections.Generic urlParams = null ) : string
path string
body string
urlParams Dictionary,System.Collections.Generic
Résultat string

ResponseDigest() public méthode

public ResponseDigest ( string body, string password = null ) : string
body string
password string
Résultat string

RetryRequest() public méthode

public RetryRequest ( ) : void
Résultat void

StartSession() public méthode

public StartSession ( string sessionID, int sequence ) : void
sessionID string
sequence int
Résultat void

TargetedAction() public méthode

public TargetedAction ( string target, string action = null ) : string
target string
action string
Résultat string

UserAction() public méthode

public UserAction ( string action = null ) : string
action string
Résultat string