public static async Task <bool> Update(Dictionary <int, Tracker> trackers) { Trackers result = await RedmineApi.GetList <Trackers>(); if (result == null) { return(false); } trackers.Clear(); foreach (Tracker t in result.Items) { trackers.Add(t.Id, t); } return(true); }
public static async Task <bool> Update(Dictionary <int, IssueStatus> statuses) { IssueStatuses result = await RedmineApi.GetList <IssueStatuses>(); if (result == null) { return(false); } statuses.Clear(); foreach (IssueStatus s in result.Items) { statuses.Add(s.Id, s); } return(true); }
public static async Task <bool> Update(Dictionary <int, TimeEntryActivity> activities) { TimeEntryActivities result = await RedmineApi.GetList <TimeEntryActivities>(); if (result == null) { return(false); } activities.Clear(); foreach (TimeEntryActivity e in result.Items) { activities.Add(e.Id, e); } return(true); }
public static async Task <bool> Update(Dictionary <int, IssuePriority> priorities) { IssuePriorities result = await RedmineApi.GetList <IssuePriorities>(); if (result == null) { return(false); } priorities.Clear(); foreach (IssuePriority p in result.Items) { priorities.Add(p.Id, p); } return(true); }