Add new ctor to PublicRepositoryRequest taking "since" parameter as a long, and obsolete the old ctor that uses an int

Update tests to pass long datatype
This commit is contained in:
Ryan Gribble
2016-10-03 20:45:43 +10:00
parent 8dcb1db0da
commit 3409ae11ff
5 changed files with 17 additions and 6 deletions

View File

@@ -1,4 +1,5 @@
using System.Diagnostics;
using System;
using System.Diagnostics;
using System.Globalization;
namespace Octokit
@@ -13,6 +14,7 @@ namespace Octokit
/// Initializes a new instance of the <see cref="PublicRepositoryRequest"/> class.
/// </summary>
/// <param name="since">The integer Id of the last Repository that youve seen.</param>
[Obsolete("Please use the alternative constructor taking a long, rather than int, typed parameter. This constructor will be removed in a future release.")]
public PublicRepositoryRequest(int since)
{
Ensure.ArgumentNotNull(since, "since");
@@ -20,6 +22,15 @@ namespace Octokit
Since = since;
}
/// <summary>
/// Initializes a new instance of the <see cref="PublicRepositoryRequest"/> class.
/// </summary>
/// <param name="since">The Id of the last Repository that youve seen.</param>
public PublicRepositoryRequest(long since)
{
Since = since;
}
/// <summary>
/// Gets or sets the integer Id of the last Repository that youve seen.
/// </summary>