Skip to content

Commit

Permalink
➕ ICTime plugin API stub
Browse files Browse the repository at this point in the history
  • Loading branch information
nop77svk committed Jan 26, 2024
1 parent a744d0a commit 0d0a357
Showing 1 changed file with 54 additions and 0 deletions.
54 changes: 54 additions & 0 deletions jwl.jira/JiraWithICTimePluginApi.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
namespace jwl.jira;
using jwl.jira.api.rest.common;

// https://interconcept.atlassian.net/wiki/spaces/ICTIME/pages/31686672/API
public class JiraWithICTimePluginApi
: IJiraServerApi
{
public HttpClient HttpClient { get; }
public string UserName { get; }

public JiraWithICTimePluginApi(HttpClient httpClient, string userName)
{
HttpClient = httpClient;
UserName = userName;
_vanillaJiraApi = new VanillaJiraServerApi(httpClient, userName);
}

private readonly VanillaJiraServerApi _vanillaJiraApi;

public async Task<JiraUserInfo> GetUserInfo()
{
return await _vanillaJiraApi.GetUserInfo();
}

public Task<WorkLogType[]> GetWorklogTypes()
{
throw new NotImplementedException();
}

public Task<WorkLog[]> GetIssueWorklogs(DateOnly from, DateOnly to, IEnumerable<string>? issueKeys)
{
throw new NotImplementedException();
}

public Task AddWorklog(string issueKey, DateOnly day, int timeSpentSeconds, string? worklogType, string? comment)
{
throw new NotImplementedException();
}

public Task AddWorklogPeriod(string issueKey, DateOnly dayFrom, DateOnly dayTo, int timeSpentSeconds, string? tempoWorklogType, string? comment, bool includeNonWorkingDays = false)
{
throw new NotImplementedException();
}

public Task DeleteWorklog(long issueId, long worklogId, bool notifyUsers = false)
{
throw new NotImplementedException();
}

public Task UpdateWorklog(string issueKey, long worklogId, DateOnly day, int timeSpentSeconds, string? worklogType, string? comment)
{
throw new NotImplementedException();
}
}

0 comments on commit 0d0a357

Please sign in to comment.