Пример #1
0
 public void RenderKudos(LcdsResponseString TotalKudos)
 {
     KudosListView.Items.Clear();
     TotalKudos.Value = TotalKudos.Value.Replace("{\"totals\":[0,", "").Replace("]}", "");
     string[] Kudos = TotalKudos.Value.Split(',');
     KudosItem item = new KudosItem("Friendly", Kudos[0]);
     KudosListView.Items.Add(item);
     item = new KudosItem("Helpful", Kudos[1]);
     KudosListView.Items.Add(item);
     item = new KudosItem("Teamwork", Kudos[2]);
     KudosListView.Items.Add(item);
     item = new KudosItem("Honorable Opponent", Kudos[3]);
     KudosListView.Items.Add(item);
 }
Пример #2
0
 public LcdsResponseString CallKudos(String arg0)
 {
     int Id = Invoke("clientFacadeService", "callKudos", new object[] { arg0 });
     while (!results.ContainsKey(Id))
         System.Threading.Thread.Sleep(10);
     TypedObject messageBody = results[Id].GetTO("data").GetTO("body");
     LcdsResponseString result = new LcdsResponseString(messageBody);
     results.Remove(Id);
     return result;
 }
Пример #3
0
 /// 17.)
 public void CallKudos(String arg0, LcdsResponseString.Callback callback)
 {
     LcdsResponseString cb = new LcdsResponseString(callback);
     InvokeWithCallback("clientFacadeService", "callKudos", new object[] { arg0 }, cb);
 }
 public async Task<LcdsResponseString> CallKudos(String arg0)
 {
     int Id = Invoke("clientFacadeService", "callKudos", new object[] { arg0 });
     while (!results.ContainsKey(Id))
         await Task.Delay(10);
     TypedObject messageBody = results[Id].GetTO("data").GetTO("body");
     LcdsResponseString result = new LcdsResponseString(messageBody);
     results.Remove(Id);
     return result;
 }