mirror of
https://github.com/zoriya/octokit.net.git
synced 2025-12-23 15:45:28 +00:00
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:
@@ -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 you’ve 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 you’ve seen.</param>
|
||||
public PublicRepositoryRequest(long since)
|
||||
{
|
||||
Since = since;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the integer Id of the last Repository that you’ve seen.
|
||||
/// </summary>
|
||||
|
||||
Reference in New Issue
Block a user