/// 15.) public void GetPointsBalance(PointSummary.Callback callback) { PointSummary cb = new PointSummary(callback); InvokeWithCallback("lcdsRerollService", "getPointsBalance", new object[] { }, cb); }
public PointSummary GetPointsBalance() { int Id = Invoke("lcdsRerollService", "getPointsBalance", new object[] { }); while (!results.ContainsKey(Id)) System.Threading.Thread.Sleep(10); TypedObject messageBody = results[Id].GetTO("data").GetTO("body"); PointSummary result = new PointSummary(messageBody); results.Remove(Id); return result; }
public async Task<PointSummary> GetPointsBalance() { int Id = Invoke("lcdsRerollService", "getPointsBalance", new object[] { }); while (!results.ContainsKey(Id)) await Task.Delay(10); TypedObject messageBody = results[Id].GetTO("data").GetTO("body"); PointSummary result = new PointSummary(messageBody); results.Remove(Id); return result; }