zaifres class : Result getter
Description
Gets the response to the request.
Syntax
zaifresInstance.Result
Arguments
None
Return value
Class | Description |
string | A response to the request. |
Sample code
1: | zaifapi zaifapiIns = new zaifapi(); |
2: | zaifres zaifresIns = zaifapiIns.Ticker("btc_jpy"); // Public Api. Asynchronous request. |
3: | while(true) |
4: | if(zaifresIns.IsCompleted) |
5: | string jsonStr = zaifresIns.Result; |
6: | break; |
7: | endif |
8: | // Maybe you should wait here. |
9: | endwhile |
10: | // The following code is also ok. In this case, the request executes synchronously. |
11: | // string jsonStr = zaifapiIns.Ticker("btc_jpy").Result; |
Notes
If the response to the request is not returned yet when this getter is called, execution of the script is stopped and waits the response to the request.
Links for reference
None.