Beispiel #1
0
        public async void Handle(RepositorySelectedMessage message)
        {
            var repositoryIssues = await issues.Get(message.Owner, message.Name);

            Items.Clear();
            Items.AddRange(repositoryIssues.Select(i => new IssueViewModel(i, () => issues.GetComments(message.Owner, message.Name, i.Number))));
        }
        public Response Handle(Request request)
        {
            var            typedRequest  = (GetIssueRequest)request;
            IIssuesService issuesService = ObjectFactory.GetInstance <IIssuesService>();
            var            issueResult   = issuesService.Get(typedRequest.User, typedRequest.Repo, typedRequest.Number);

            return(new IssueResponse(issueResult));
        }
Beispiel #3
0
        public Issue GetIssue(string user, string repo, int number)
        {
            IIssuesService issuesService = ObjectFactory.GetInstance <IIssuesService>();

            return(issuesService.Get(user, repo, number));
        }
        public IHttpActionResult Get(int pageSize, int pageNumber, string filter)
        {
            var issues = issuesService.Get(pageSize, pageNumber, filter);

            return(Ok(issues));
        }