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); }); }
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); }); }
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); }); }
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); }); }
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); }); }
public void SetTaskDueDate(int listId, int taskSeriesId, int taskId, string due, int timeline, RawListCallback callback) { SetTaskDueDate(listId, taskSeriesId, taskId, due, false, true, timeline, callback); }
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); }); }
public void ResetTaskPriority(int listId, int taskSeriesId, int taskId, int timeline, RawListCallback callback) { SetTaskPriority(listId, taskSeriesId, taskId, null, timeline, callback); }
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); }); }
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); }); }
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); }); }
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); }); }
public void AddTask(string name, string listId, int timeline, RawListCallback callback) { AddTask(name, false, listId, timeline, callback); }
public void AddTask(string name, bool parse, int timeline, RawListCallback callback) { AddTask(name, parse, null, timeline, callback); }
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); }); }
public void AddList(string listName, int timeline, RawListCallback callback) { AddList(listName, null, timeline, callback); }