mirror of
https://github.com/zoriya/octokit.net.git
synced 2025-12-20 06:05:12 +00:00
[WIP] Add repository traffic preview (#1457)
* Add response models * Supress message * correct spelling Timestamp * implement traffic client * add reactive client * [WIP] unit tests * add argument check * finish unit tests * add integration tests * Change repositoryId from int to long Remove GetAll naming of endpoints and add to PaginationTest exclusions Rename View and Clone classes to be more specific Add handling of TimeStamp fields being UtcUnix time Add integration tests for repositoryId methods
This commit is contained in:
committed by
Ryan Gribble
parent
693cc29dd5
commit
a57fb1278d
23
Octokit/Models/Request/RepositoryTrafficRequest.cs
Normal file
23
Octokit/Models/Request/RepositoryTrafficRequest.cs
Normal file
@@ -0,0 +1,23 @@
|
||||
using System.Diagnostics;
|
||||
using System.Globalization;
|
||||
|
||||
namespace Octokit
|
||||
{
|
||||
[DebuggerDisplay("{DebuggerDisplay,nq}")]
|
||||
public class RepositoryTrafficRequest : RequestParameters
|
||||
{
|
||||
public RepositoryTrafficRequest() { }
|
||||
|
||||
public RepositoryTrafficRequest(TrafficDayOrWeek per)
|
||||
{
|
||||
Per = per;
|
||||
}
|
||||
|
||||
public TrafficDayOrWeek Per { get; private set; }
|
||||
|
||||
internal string DebuggerDisplay
|
||||
{
|
||||
get { return string.Format(CultureInfo.InvariantCulture, "Per: {0}", Per); }
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user