public BacklogClientImpl(BacklogConfigure configure) { this.Configure = configure; this.HttpClient = new BacklogHttpClient(); this.BacklogEndPointSupport = new BacklogEndPointSupport(configure); ConfigureHttpClient(); }
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)); }
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)); }
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)); }
public async Task <Icon> GetProjectIconAsync(IdOrKey projectIdOrKey, CancellationToken?token = default(CancellationToken?)) { var response = await Get(BacklogEndPointSupport.ProjectIconEndpoint(projectIdOrKey)); return(await IconImpl.CreateaAsync(response)); }
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)); }