public TasksProxy Sync(TasksProxy proxy) { // Sync the current data if (proxy != null) { } // Get the latest data var lists = GetLists(); var tasks = GetTasks(lists); return new TasksProxy {Lists = lists, Tasks = tasks}; }
private void PopulateAfterSync(TasksProxy proxy) { Lists.Clear(); proxy.Lists.ToList().ForEach(list => Lists.Add(list)); }
public SyncedMessage(TasksProxy proxy) { Proxy = proxy; }
public TasksProxy Sync(TasksProxy proxy) { // Nothing to do! return new TasksProxy {Lists = new List<TaskList2>(), Tasks = new List<Task2>()}; }