C# Class AssemblyCSharp.BackendConnection

Inheritance: System.DisposableObject
Show file Open project: wooga/ps_social_jam Class Usage Examples

Public Methods

Method 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

Method 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 method

public Authenticate ( BackendAuth auth ) : void
auth BackendAuth
return void

Authenticate() public method

public Authenticate ( string userID, string password ) : void
userID string
password string
return void

BackendConnection() public method

public BackendConnection ( string host ) : System
host string
return System

DoGet() public method

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
return IEnumerator

DoPostData() public method

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
return IEnumerator

DoPostForm() public method

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
return IEnumerator

Execute() public method

public Execute ( AbstractBackendTask task, Action onSuccess, Action onError = null ) : void
task AbstractBackendTask
onSuccess Action
onError Action
return void

NewContextDict() public method

public NewContextDict ( ) : object>.Dictionary
return object>.Dictionary

PaymentAction() public method

public PaymentAction ( ) : string
return string

RequestDigest() public method

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

ResponseDigest() public method

public ResponseDigest ( string body, string password = null ) : string
body string
password string
return string

RetryRequest() public method

public RetryRequest ( ) : void
return void

StartSession() public method

public StartSession ( string sessionID, int sequence ) : void
sessionID string
sequence int
return void

TargetedAction() public method

public TargetedAction ( string target, string action = null ) : string
target string
action string
return string

UserAction() public method

public UserAction ( string action = null ) : string
action string
return string