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); }
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); }