mirror of
https://github.com/zoriya/octokit.net.git
synced 2026-06-04 03:16:11 +00:00
Chnage LastApiInfo to GetLastApiInfo with cloned version
This commit is contained in:
@@ -99,5 +99,19 @@ namespace Octokit
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Allows you to clone RateLimit
|
||||
/// </summary>
|
||||
/// <returns>A clone of <seealso cref="RateLimit"/></returns>
|
||||
public RateLimit Clone()
|
||||
{
|
||||
var clone = new RateLimit();
|
||||
clone.Limit = this.Limit;
|
||||
clone.Remaining = this.Remaining;
|
||||
clone.ResetAsUtcEpochSeconds = this.ResetAsUtcEpochSeconds;
|
||||
|
||||
return clone;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user