Пример #1
0
 public void GetTasks(int? listId, string filter, DateTime? lastSync, RawListArrayCallback callback)
 {
     Dictionary<string, string> parameters = new Dictionary<string, string>();
     if (listId != null) parameters["list_id"] = listId.Value.ToString();
     if (filter != null) parameters["filter"] = filter;
     if (lastSync != null) parameters["last_sync"] = lastSync.Value.ToString("s");
     GetResponse("rtm.tasks.getList", parameters, (response) =>
     {
         callback(response.Tasks);
     });
 }
Пример #2
0
 public void GetTasks(int listId, RawListArrayCallback callback)
 {
     GetTasks(listId, null, null, callback);
 }
Пример #3
0
 public void GetTasks(string filter, RawListArrayCallback callback)
 {
     GetTasks(null, filter, null, callback);
 }
Пример #4
0
 public void GetLists(RawListArrayCallback callback)
 {
     GetResponse("rtm.lists.getList", (response) =>
     {
         callback(response.Lists);
     });
 }