Chnage LastApiInfo to GetLastApiInfo with cloned version

This commit is contained in:
Mark Taylor
2015-08-16 21:27:26 +01:00
parent 5bd1f1d6c5
commit b2c7e1c2a7
13 changed files with 224 additions and 33 deletions
+14
View File
@@ -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;
}
}
}