private void OnReceiveTotal(string error, IJSonObject data, object state) { CoinsConnection connection = (CoinsConnection)state; if (connection.callback != null) { connection.callback(connection.userId, (!data.IsNull() && !data.IsError()) ? data.ToString().ToInt32() : 0); } }
public static bool IsEmpty(this IJSonObject json) { return(json == null || json.IsNull() | json.ToString() == ERROR_EMPTY_JSON || json.ToString().IsEmpty()); }
private void OnReceiveTotal(string error, IJSonObject data, object state) { CoinsConnection connection = (CoinsConnection)state; if (connection.callback != null) connection.callback(connection.userId, (!data.IsNull() && !data.IsError()) ? data.ToString().ToInt32() : 0); }