mirror of
https://github.com/zoriya/octokit.net.git
synced 2026-05-28 17:05:57 +00:00
4e804f61a6
* updated XML docs and added some missing bits. * prefer nameof(x) over literal "x"
39 lines
1.0 KiB
C#
39 lines
1.0 KiB
C#
using System.Diagnostics;
|
|
using System.Globalization;
|
|
|
|
namespace Octokit
|
|
{
|
|
[DebuggerDisplay("{DebuggerDisplay,nq}")]
|
|
public class ResourceRateLimit
|
|
{
|
|
public ResourceRateLimit() { }
|
|
|
|
public ResourceRateLimit(RateLimit core, RateLimit search)
|
|
{
|
|
Ensure.ArgumentNotNull(core, nameof(core));
|
|
Ensure.ArgumentNotNull(search, nameof(search));
|
|
|
|
Core = core;
|
|
Search = search;
|
|
}
|
|
|
|
/// <summary>
|
|
/// Rate limits for core API (rate limit for everything except Search API)
|
|
/// </summary>
|
|
public RateLimit Core { get; private set; }
|
|
|
|
/// <summary>
|
|
/// Rate Limits for Search API
|
|
/// </summary>
|
|
public RateLimit Search { get; private set; }
|
|
|
|
internal string DebuggerDisplay
|
|
{
|
|
get
|
|
{
|
|
return string.Format(CultureInfo.InvariantCulture, "Core: {0}; Search: {1} ", Core.DebuggerDisplay, Search.DebuggerDisplay);
|
|
}
|
|
}
|
|
}
|
|
}
|