mirror of
https://github.com/zoriya/octokit.net.git
synced 2026-06-11 21:56:31 +00:00
31 lines
792 B
C#
31 lines
792 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Diagnostics;
|
|
using System.Globalization;
|
|
using System.Linq;
|
|
|
|
namespace Octokit
|
|
{
|
|
[DebuggerDisplay("{DebuggerDisplay,nq}")]
|
|
public class CommitActivity
|
|
{
|
|
public CommitActivity(IEnumerable<WeeklyCommitActivity> activity)
|
|
{
|
|
Activity = activity;
|
|
}
|
|
|
|
/// <summary>
|
|
/// Returns the last year of commit activity grouped by week.
|
|
/// </summary>
|
|
public IEnumerable<WeeklyCommitActivity> Activity { get; private set; }
|
|
|
|
internal string DebuggerDisplay
|
|
{
|
|
get
|
|
{
|
|
return String.Format(CultureInfo.InvariantCulture,
|
|
"Weeks of activity: {0}",Activity.Count());
|
|
}
|
|
}
|
|
}
|
|
} |