示例#1
0
        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);
        }
示例#2
0
        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);
        }
示例#3
0
        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);
        }
示例#4
0
        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);
        }