コード例 #1
0
        public IList <IRtmTask> GetDeletedTasks(GetListResponseData responseData)
        {
            var deletedItems = new List <IRtmTask>();

            if (responseData?.Lists?.Lists == null)
            {
                return(new List <IRtmTask>());
            }

            foreach (var list in responseData.Lists.Lists)
            {
                foreach (var deletedItem in list.DeletedItems)
                {
                    deletedItems.AddRange(ConvertResponseDataToTasks(list.ListId, deletedItem.TaskSeries));
                }
            }

            return(deletedItems);
        }
コード例 #2
0
        public IList <IRtmTask> GetTasks(GetListResponseData responseData)
        {
            var tasks = new List <IRtmTask>();

            if (responseData?.Lists?.Lists == null)
            {
                return(new List <IRtmTask>());
            }

            foreach (var list in responseData.Lists.Lists)
            {
                foreach (var taskSeries in list.TaskSeries)
                {
                    tasks.AddRange(ConvertResponseDataToTasks(list.ListId, taskSeries));
                }
            }

            return(tasks);
        }