C# Class JSONClient, CSE110M240T10

Mostra file Open project: ucsdCSE110wi16/CSE110M240T10 Class Usage Examples

Public Methods

Method Description
Get ( string url, responseDelegate responseFunction ) : IEnumerator
GetHTML ( string url, responseHTMLDelegate callback ) : IEnumerator
GetImage ( string url, responseImageDelegate callback, object place ) : IEnumerator
Post ( string url, JSONObject, payload, responseDelegate responseFunction, string>.Dictionary headers = null ) : IEnumerator

Private Methods

Method Description
Generic ( string url, string method, JSONObject, payload, responseDelegate responseFunction, string>.Dictionary headers = null ) : IEnumerator

Method Details

Get() public static method

public static Get ( string url, responseDelegate responseFunction ) : IEnumerator
url string
responseFunction responseDelegate
return IEnumerator

GetHTML() public static method

public static GetHTML ( string url, responseHTMLDelegate callback ) : IEnumerator
url string
callback responseHTMLDelegate
return IEnumerator

GetImage() public static method

public static GetImage ( string url, responseImageDelegate callback, object place ) : IEnumerator
url string
callback responseImageDelegate
place object
return IEnumerator

Post() public static method

public static Post ( string url, JSONObject, payload, responseDelegate responseFunction, string>.Dictionary headers = null ) : IEnumerator
url string
payload JSONObject,
responseFunction responseDelegate
headers string>.Dictionary
return IEnumerator