Esempio n. 1
0
 public void UncompleteTask(int listId, int taskSeriesId, int taskId, int timeline, RawListCallback callback)
 {
     Dictionary<string, string> parameters = new Dictionary<string, string>();
     parameters.Add("timeline", timeline.ToString());
     parameters.Add("list_id", listId.ToString());
     parameters.Add("taskseries_id", taskSeriesId.ToString());
     parameters.Add("task_id", taskId.ToString());
     GetResponse("rtm.tasks.uncomplete", parameters, (response) =>
     {
         callback(response.List);
     });
 }
Esempio n. 2
0
 public void SetTaskUrl(int listId, int taskSeriesId, int taskId, string url, int timeline, RawListCallback callback)
 {
     Dictionary<string, string> parameters = new Dictionary<string, string>();
     parameters.Add("timeline", timeline.ToString());
     parameters.Add("list_id", listId.ToString());
     parameters.Add("taskseries_id", taskSeriesId.ToString());
     parameters.Add("task_id", taskId.ToString());
     parameters.Add("url", url);
     GetResponse("rtm.tasks.setURL", parameters, (response) =>
     {
         callback(response.List);
     });
 }
Esempio n. 3
0
 public void UnarchiveList(int listId, int timeline, RawListCallback callback)
 {
     Dictionary<string, string> parameters = new Dictionary<string, string>();
     parameters.Add("timeline", timeline.ToString());
     parameters.Add("list_id", listId.ToString());
     GetResponse("rtm.lists.unarchive", parameters, (response) =>
     {
         callback(response.List);
     });
 }
Esempio n. 4
0
 public void SetTaskPriority(int listId, int taskSeriesId, int taskId, int? priority, int timeline, RawListCallback callback)
 {
     Dictionary<string, string> parameters = new Dictionary<string, string>();
     parameters.Add("timeline", timeline.ToString());
     parameters.Add("list_id", listId.ToString());
     parameters.Add("taskseries_id", taskSeriesId.ToString());
     parameters.Add("task_id", taskId.ToString());
     if (priority.HasValue)
         parameters.Add("priority", priority.ToString());
     GetResponse("rtm.tasks.setPriority", parameters, (response) =>
     {
         callback(response.List);
     });
 }
Esempio n. 5
0
 public void SetTaskRecurrence(int listId, int taskSeriesId, int taskId, string recurrence, int timeline, RawListCallback callback)
 {
     Dictionary<string, string> parameters = new Dictionary<string, string>();
     parameters.Add("timeline", timeline.ToString());
     parameters.Add("list_id", listId.ToString());
     parameters.Add("taskseries_id", taskSeriesId.ToString());
     parameters.Add("task_id", taskId.ToString());
     parameters.Add("repeat", recurrence);
     GetResponse("rtm.tasks.setRecurrence", parameters, (response) =>
     {
         callback(response.List);
     });
 }
Esempio n. 6
0
 public void SetTaskDueDate(int listId, int taskSeriesId, int taskId, string due, int timeline, RawListCallback callback)
 {
     SetTaskDueDate(listId, taskSeriesId, taskId, due, false, true, timeline, callback);
 }
Esempio n. 7
0
 public void SetTaskDueDate(int listId, int taskSeriesId, int taskId, string due, bool hasDueTime, bool parse, int timeline, RawListCallback callback)
 {
     Dictionary<string, string> parameters = new Dictionary<string, string>();
     parameters.Add("timeline", timeline.ToString());
     parameters.Add("list_id", listId.ToString());
     parameters.Add("taskseries_id", taskSeriesId.ToString());
     parameters.Add("task_id", taskId.ToString());
     if (due != null)
         parameters.Add("due", due);
     if (hasDueTime)
         parameters.Add("has_due_time", "1");
     if (parse)
         parameters.Add("parse", "1");
     GetResponse("rtm.tasks.setDueDate", parameters, (response) =>
     {
         callback(response.List);
     });
 }
Esempio n. 8
0
 public void ResetTaskPriority(int listId, int taskSeriesId, int taskId, int timeline, RawListCallback callback)
 {
     SetTaskPriority(listId, taskSeriesId, taskId, null, timeline, callback);
 }
Esempio n. 9
0
 public void SetListName(int listId, string name, int timeline, RawListCallback callback)
 {
     Dictionary<string, string> parameters = new Dictionary<string, string>();
     parameters.Add("timeline", timeline.ToString());
     parameters.Add("list_id", listId.ToString());
     parameters.Add("name", name);
     GetResponse("rtm.lists.setName", parameters, (response) =>
     {
         callback(response.List);
     });
 }
Esempio n. 10
0
 public void MoveTaskPriorityUp(int listId, int taskSeriesId, int taskId, int timeline, RawListCallback callback)
 {
     Dictionary<string, string> parameters = new Dictionary<string, string>();
     parameters.Add("timeline", timeline.ToString());
     parameters.Add("list_id", listId.ToString());
     parameters.Add("taskseries_id", taskSeriesId.ToString());
     parameters.Add("task_id", taskId.ToString());
     parameters.Add("direction", "up");
     GetResponse("rtm.tasks.movePriority", parameters, (response) =>
     {
         callback(response.List);
     });
 }
Esempio n. 11
0
 public void MoveTaskTo(int fromListId, int toListId, int taskSeriesId, int taskId, int timeline, RawListCallback callback)
 {
     Dictionary<string, string> parameters = new Dictionary<string, string>();
     parameters.Add("timeline", timeline.ToString());
     parameters.Add("from_list_id", fromListId.ToString());
     parameters.Add("to_list_id", toListId.ToString());
     parameters.Add("taskseries_id", taskSeriesId.ToString());
     parameters.Add("task_id", taskId.ToString());
     GetResponse("rtm.tasks.moveTo", parameters, (response) =>
     {
         callback(response.List);
     });
 }
Esempio n. 12
0
 public void AddTask(string name, bool parse, string listId, int timeline, RawListCallback callback)
 {
     Dictionary<string, string> parameters = new Dictionary<string, string>();
     parameters.Add("timeline", timeline.ToString());
     if (listId != null)
         parameters.Add("list_id", listId.ToString());
     parameters.Add("name", name);
     if (parse)
         parameters.Add("parse", "1");
     GetResponse("rtm.tasks.add", parameters, (response) =>
     {
         callback(response.List);
     });
 }
Esempio n. 13
0
 public void AddTask(string name, string listId, int timeline, RawListCallback callback)
 {
     AddTask(name, false, listId, timeline, callback);
 }
Esempio n. 14
0
 public void AddTask(string name, bool parse, int timeline, RawListCallback callback)
 {
     AddTask(name, parse, null, timeline, callback);
 }
Esempio n. 15
0
 public void AddList(string listName, string filter, int timeline, RawListCallback callback)
 {
     Dictionary<string, string> parameters = new Dictionary<string, string>();
     parameters.Add("timeline", timeline.ToString());
     parameters.Add("name", listName);
     if (filter != null)
         parameters.Add("filter", filter);
     GetResponse("rtm.lists.add", parameters, (response) =>
     {
         callback(response.List);
     });
 }
Esempio n. 16
0
 public void AddList(string listName, int timeline, RawListCallback callback)
 {
     AddList(listName, null, timeline, callback);
 }