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); }); }
public void GetTasks(int listId, RawListArrayCallback callback) { GetTasks(listId, null, null, callback); }
public void GetTasks(string filter, RawListArrayCallback callback) { GetTasks(null, filter, null, callback); }
public void GetLists(RawListArrayCallback callback) { GetResponse("rtm.lists.getList", (response) => { callback(response.Lists); }); }