예제 #1
0
        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);
        }
예제 #2
0
        /// 15.)
        public void GetPointsBalance(PointSummary.Callback callback)
        {
            PointSummary cb = new PointSummary(callback);

            InvokeWithCallback("lcdsRerollService", "getPointsBalance", new object[] { }, cb);
        }
예제 #3
0
 public RerollState(PointSummary points)
 {
     Cost      = points.PointsCostToRoll;
     Points    = points.CurrentPoints;
     MaxPoints = points.MaxRolls * Cost;
 }