Exemplo n.º 1
0
        public static RtmApiResponse AddTask(string timeline, string name, string listId = null, string parse = null, string parentTaskId = null)
        {
            IDictionary <string, string> parameters = new Dictionary <string, string>
            {
                { "timeline", timeline },
                { "name", name },
            };

            if (listId != null)
            {
                parameters.Add("list_id", listId);
            }

            if (parse != null)
            {
                parameters.Add("parse", parse);
            }

            if (parentTaskId != null)
            {
                parameters.Add("parent_task_id", parentTaskId);
            }

            return(RtmConnectionHelper.SendRequest(AddTaskMethod, parameters));
        }
Exemplo n.º 2
0
        public static RtmApiResponse UndoTransaction(string timeline, string transactionId)
        {
            IDictionary <string, string> parameters = new Dictionary <string, string>
            {
                { "timeline", timeline },
                { "transaction_id", transactionId },
            };

            return(RtmConnectionHelper.SendRequest(UndoMethod, parameters));
        }
Exemplo n.º 3
0
 public static RtmApiResponse GetTasksList() => RtmConnectionHelper.SendRequest(GetTasksListMethod, new Dictionary <string, string>());