34 lines
989 B
C#
34 lines
989 B
C#
namespace PerfReviewSummarizer.Api.Models;
|
|
|
|
public class SummaryResponse
|
|
{
|
|
public PeriodInfo Period { get; set; } = new();
|
|
public Statistics Stats { get; set; } = new();
|
|
public List<CategorySummary> Categories { get; set; } = new();
|
|
public List<CommitInfo> TopCommits { get; set; } = new();
|
|
}
|
|
|
|
public class PeriodInfo
|
|
{
|
|
public DateTime StartDate { get; set; }
|
|
public DateTime EndDate { get; set; }
|
|
public string Description { get; set; } = string.Empty;
|
|
}
|
|
|
|
public class Statistics
|
|
{
|
|
public int TotalCommits { get; set; }
|
|
public int TotalFilesChanged { get; set; }
|
|
public int TotalAdditions { get; set; }
|
|
public int TotalDeletions { get; set; }
|
|
public int UniqueContributors { get; set; }
|
|
}
|
|
|
|
public class CategorySummary
|
|
{
|
|
public string Category { get; set; } = string.Empty;
|
|
public string Description { get; set; } = string.Empty;
|
|
public int CommitsCount { get; set; }
|
|
public List<string> KeyChanges { get; set; } = new();
|
|
}
|