Exemplo n.º 1
0
 public void GetScheduleFor(string team, Action <List <ScheduleItem> > successCallback, Action failureCallback)
 {
     ScheduleService.FetchSchedule(null,
                                   (response) => {
         List <ScheduleItem> list = ParseScheduleResponse(response);
         if (successCallback != null)
         {
             successCallback(list);
         }
         else if (failureCallback != null)
         {
             failureCallback();
         }
     },
                                   (response) => {
         if (failureCallback != null)
         {
             failureCallback();
         }
     });
 }