bitbankres class : Result getter

Description

Gets the response to the request.

Syntax

bitbankresInstance.Result

Arguments

None

Return value

ClassDescription
stringA response to the request.

Sample code

1:

bitbankapi bitbankapiIns = new bitbankapi();

2:

bitbankres bitbankresIns = bitbankapiIns.Ticker("btc_jpy"); // Public Api. Asynchronous request.

3:

while(true)

4:

if(bitbankresIns.IsCompleted)

5:

string jsonStr = bitbankresIns.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 = bitbankapiIns.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.

Copyright © Cooker All rights reserved.