Exemplo n.º 1
0
 public void refreshTeams(Action <JSONObject> successCallback, Action <JSONObject> errorCallback)
 {
     try
     {
         var url = "dashboard/teams";
         var msg = new WwwMessage(this, url, successCallback, errorCallback);
         msg.addHeaderParam("htf-identification", IDENTIFICATION);
         Networking.Instance.StartCoroutine(msg.send());
     }
     catch { }
 }
Exemplo n.º 2
0
 public void refreshChallenges(Guid teamId, Action <JSONObject> successCallback, Action <JSONObject> errorCallback)
 {
     try
     {
         var url = string.Format("/dashboard/teams/{0}/status", teamId);
         var msg = new WwwMessage(this, url, successCallback, errorCallback);
         msg.addHeaderParam("htf-identification", IDENTIFICATION);
         Networking.Instance.StartCoroutine(msg.send());
     }
     catch { }
 }
Exemplo n.º 3
0
 // register all created WWWMessage objects and keep track of their status and yield progress. If they yield longer than the timeout stop the coroutine and make them call the error callback
 public void addMessage(WwwMessage msg)
 {
     messages.Add(msg);
 }