mirror of
https://github.com/zoriya/octokit.net.git
synced 2026-06-05 03:30:34 +00:00
💄 Lets talk about code frequencies
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
|
||||
namespace Octokit
|
||||
{
|
||||
public class CodeFrequency
|
||||
{
|
||||
public CodeFrequency(IEnumerable<IList<int>> rawFrequencies)
|
||||
{
|
||||
Ensure.ArgumentNotNull(rawFrequencies, "rawFrequencies");
|
||||
AdditionsAndDeletionsByWeek = rawFrequencies.Select(point => new AdditionsAndDeletions(point)).ToList();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// A weekly aggregate of the number of additions and deletions pushed to a repository.
|
||||
/// </summary>
|
||||
public IEnumerable<AdditionsAndDeletions> AdditionsAndDeletionsByWeek { get; private set; }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user