コード例 #1
0
 public BacklogClientImpl(BacklogConfigure configure)
 {
     this.Configure              = configure;
     this.HttpClient             = new BacklogHttpClient();
     this.BacklogEndPointSupport = new BacklogEndPointSupport(configure);
     ConfigureHttpClient();
 }
コード例 #2
0
        public async Task <Icon> GetUserIconAsync(long numericUserId, CancellationToken?token = default(CancellationToken?))
        {
            var response = await Get(BacklogEndPointSupport.UserIconEndpoint(numericUserId));

            return(await IconImpl.CreateaAsync(response));
        }
        public async Task <AttachmentData> DownloadPullRequestAttachmentAsync(IdOrKey projectIdOrKey, IdOrKey repoIdOrName, long number, long attachmentId, CancellationToken?token = default(CancellationToken?))
        {
            var response = await Get(BacklogEndPointSupport.PullRequestAttachmentEndpoint(projectIdOrKey, repoIdOrName, number, attachmentId));

            return(await AttachmentDataImpl.CreateaAsync(response));
        }
コード例 #4
0
        public async Task <AttachmentData> DownloadIssueAttachmentAsync(IdOrKey issueIdOrKey, long attachmentId, CancellationToken?token = default(CancellationToken?))
        {
            var response = await Get(BacklogEndPointSupport.IssueAttachmentEndpoint(issueIdOrKey, attachmentId));

            return(await Internal.File.AttachmentDataImpl.CreateaAsync(response));
        }
コード例 #5
0
        public async Task <AttachmentData> DownloadWikiAttachmentAsync(long wikiId, long attachmentId, CancellationToken?token = default(CancellationToken?))
        {
            var response = await Get(BacklogEndPointSupport.WikiAttachmentEndpoint(wikiId, attachmentId));

            return(await AttachmentDataImpl.CreateaAsync(response));
        }
コード例 #6
0
        public async Task <Icon> GetProjectIconAsync(IdOrKey projectIdOrKey, CancellationToken?token = default(CancellationToken?))
        {
            var response = await Get(BacklogEndPointSupport.ProjectIconEndpoint(projectIdOrKey));

            return(await IconImpl.CreateaAsync(response));
        }
コード例 #7
0
        public async Task <SharedFileData> DownloadSharedFileAsync(IdOrKey projectIdOrKey, long sharedFileId, CancellationToken?token = default(CancellationToken?))
        {
            var response = await Get(BacklogEndPointSupport.SharedFileEndpoint(projectIdOrKey, sharedFileId));

            return(await SharedFileDataImpl.CreateaAsync(response));
        }