initial commit
This commit is contained in:
16
BlueMine/Redmine/IRedmineManager.cs
Normal file
16
BlueMine/Redmine/IRedmineManager.cs
Normal file
@@ -0,0 +1,16 @@
|
||||
using static BlueMine.Redmine.RedmineDto;
|
||||
|
||||
namespace BlueMine.Redmine
|
||||
{
|
||||
public interface IRedmineManager
|
||||
{
|
||||
Task<bool> IsRedmineAvailable();
|
||||
Task LogTimeAsync(int issueId, double hours, string comments, DateTime date, int? activityId = null);
|
||||
Task CloseIssueAsync(int issueId);
|
||||
Task<int> CreateIssueAsync(string projectId, int trackerId, string subject, string? description = null, double? estimatedHours = null, int? priorityId = 9, int? parentIssueId = null);
|
||||
Task<List<SimpleProject>> GetProjectsAsync(int limit = 100, IProgress<(int, int)>? progress = null);
|
||||
Task<List<SimpleTracker>> GetTrackersAsync(string projectId, CancellationToken? token = null);
|
||||
Task<List<IssueItem>> GetCurrentIssuesAsync(IProgress<(int, int)>? progress = null);
|
||||
Task<double> GetLoggedHoursAsync(DateTime? startDate = null, DateTime? endDate = null);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user