From 41caabcad7b11a396a342a38d0a29dd8b4c022dd Mon Sep 17 00:00:00 2001 From: Tom Longhurst <30480171+thomhurst@users.noreply.github.com> Date: Sun, 14 Apr 2024 18:49:54 +0100 Subject: [PATCH] Long IDs --- .../Extensions.cs | 14 ++--- .../IObservableAuthorizationsClient.cs | 8 +-- .../Clients/IObservableIssueCommentsClient.cs | 12 ++--- .../Clients/IObservableMigrationsClient.cs | 8 +-- .../Clients/IObservableNotificationsClient.cs | 10 ++-- .../Clients/IObservableProjectCardsClient.cs | 8 +-- .../IObservableProjectColumnsClient.cs | 8 +-- .../Clients/IObservableProjectsClient.cs | 6 +-- .../Clients/IObservableReleasesClient.cs | 24 ++++----- .../Clients/IObservableTeamsClient.cs | 40 +++++++------- .../Clients/IObservableUserGpgKeysClient.cs | 4 +- .../Clients/IObservableUserKeysClient.cs | 4 +- .../Clients/ObservableAuthorizationsClient.cs | 8 +-- .../Clients/ObservableIssueCommentsClient.cs | 12 ++--- .../Clients/ObservableMigrationsClient.cs | 8 +-- .../Clients/ObservableNotificationsClient.cs | 10 ++-- .../Clients/ObservableProjectCardsClient.cs | 8 +-- .../Clients/ObservableProjectColumnsClient.cs | 8 +-- .../Clients/ObservableProjectsClient.cs | 6 +-- .../Clients/ObservableReleasesClient.cs | 24 ++++----- .../Clients/ObservableTeamsClient.cs | 40 +++++++------- .../Clients/ObservableUserGpgKeysClient.cs | 4 +- .../Clients/ObservableUserKeysClient.cs | 4 +- .../Clients/IssueCommentsClientTests.cs | 2 +- .../Clients/OrganizationHooksClientTests.cs | 2 +- .../Clients/RepositoryHooksClientTests.cs | 2 +- Octokit.Tests/SimpleJsonSerializerTests.cs | 2 +- Octokit/Clients/AuthorizationsClient.cs | 8 +-- Octokit/Clients/Codespace.cs | 4 +- Octokit/Clients/IAuthorizationsClient.cs | 8 +-- Octokit/Clients/IIssueCommentsClient.cs | 12 ++--- Octokit/Clients/IMigrationsClient.cs | 8 +-- Octokit/Clients/INotificationsClient.cs | 10 ++-- Octokit/Clients/IProjectCardsClient.cs | 8 +-- Octokit/Clients/IProjectColumnsClient.cs | 8 +-- Octokit/Clients/IProjectsClient.cs | 6 +-- Octokit/Clients/IReleasesClient.cs | 24 ++++----- Octokit/Clients/ITeamsClient.cs | 40 +++++++------- Octokit/Clients/IUserGpgKeysClient.cs | 4 +- Octokit/Clients/IUserKeysClient.cs | 4 +- Octokit/Clients/IssueCommentsClient.cs | 12 ++--- Octokit/Clients/MigrationsClient.cs | 8 +-- Octokit/Clients/NotificationsClient.cs | 10 ++-- Octokit/Clients/ProjectCardsClient.cs | 8 +-- Octokit/Clients/ProjectColumnsClient.cs | 8 +-- Octokit/Clients/ProjectsClient.cs | 6 +-- Octokit/Clients/ReleasesClient.cs | 24 ++++----- Octokit/Clients/TeamsClient.cs | 40 +++++++------- Octokit/Clients/UserGpgKeysClient.cs | 4 +- Octokit/Clients/UserKeysClient.cs | 4 +- Octokit/Helpers/ApiUrls.Authorizations.cs | 2 +- Octokit/Helpers/ApiUrls.cs | 54 +++++++++---------- Octokit/Models/Response/Account.cs | 4 +- .../Response/ApplicationAuthorization.cs | 2 +- Octokit/Models/Response/Author.cs | 4 +- Octokit/Models/Response/Authorization.cs | 4 +- Octokit/Models/Response/Autolink.cs | 4 +- Octokit/Models/Response/Collaborator.cs | 4 +- Octokit/Models/Response/CommitComment.cs | 4 +- Octokit/Models/Response/DeployKey.cs | 4 +- Octokit/Models/Response/Deployment.cs | 4 +- .../Models/Response/DeploymentEnvironment.cs | 4 +- .../Response/Enterprise/PreReceiveHook.cs | 4 +- Octokit/Models/Response/GistComment.cs | 4 +- Octokit/Models/Response/GpgKey.cs | 4 +- Octokit/Models/Response/IssueComment.cs | 4 +- Octokit/Models/Response/Migration.cs | 4 +- Octokit/Models/Response/Organization.cs | 2 +- Octokit/Models/Response/OrganizationHook.cs | 4 +- .../OrganizationMembershipInvitation.cs | 4 +- Octokit/Models/Response/Project.cs | 4 +- Octokit/Models/Response/ProjectCard.cs | 4 +- Octokit/Models/Response/ProjectColumn.cs | 4 +- Octokit/Models/Response/PublicKey.cs | 4 +- .../Response/PullRequestReviewComment.cs | 6 +-- Octokit/Models/Response/Reaction.cs | 4 +- Octokit/Models/Response/Release.cs | 4 +- Octokit/Models/Response/ReleaseAsset.cs | 4 +- .../Models/Response/RepositoryContributor.cs | 2 +- Octokit/Models/Response/RepositoryHook.cs | 4 +- .../Models/Response/RepositoryInvitation.cs | 4 +- Octokit/Models/Response/SourceInfo.cs | 4 +- Octokit/Models/Response/Team.cs | 4 +- Octokit/Models/Response/TeamRepository.cs | 4 +- Octokit/Models/Response/User.cs | 2 +- 85 files changed, 368 insertions(+), 368 deletions(-) diff --git a/Octokit.AsyncPaginationExtension/Extensions.cs b/Octokit.AsyncPaginationExtension/Extensions.cs index cd131c8da3..90ea07402e 100644 --- a/Octokit.AsyncPaginationExtension/Extensions.cs +++ b/Octokit.AsyncPaginationExtension/Extensions.cs @@ -539,11 +539,11 @@ public static IPaginatedList GetAllAsync(this IReleasesClient t, long r => pageSize > 0 ? new PaginatedList(options => t.GetAll(repositoryId, options), pageSize) : throw new ArgumentOutOfRangeException(nameof(pageSize), pageSize, "The page size must be positive."); /// - public static IPaginatedList GetAllAssetsAsync(this IReleasesClient t, string owner, string name, int id, int pageSize = DEFAULT_PAGE_SIZE) + public static IPaginatedList GetAllAssetsAsync(this IReleasesClient t, string owner, string name, long id, int pageSize = DEFAULT_PAGE_SIZE) => pageSize > 0 ? new PaginatedList(options => t.GetAllAssets(owner, name, id, options), pageSize) : throw new ArgumentOutOfRangeException(nameof(pageSize), pageSize, "The page size must be positive."); /// - public static IPaginatedList GetAllAssetsAsync(this IReleasesClient t, long repositoryId, int id, int pageSize = DEFAULT_PAGE_SIZE) + public static IPaginatedList GetAllAssetsAsync(this IReleasesClient t, long repositoryId, long id, int pageSize = DEFAULT_PAGE_SIZE) => pageSize > 0 ? new PaginatedList(options => t.GetAllAssets(repositoryId, id, options), pageSize) : throw new ArgumentOutOfRangeException(nameof(pageSize), pageSize, "The page size must be positive."); /// @@ -755,23 +755,23 @@ public static IPaginatedList GetAllForCurrentAsync(this ITeamsClient t, in => pageSize > 0 ? new PaginatedList(t.GetAllForCurrent, pageSize) : throw new ArgumentOutOfRangeException(nameof(pageSize), pageSize, "The page size must be positive."); /// - public static IPaginatedList GetAllChildTeamsAsync(this ITeamsClient t, int id, int pageSize = DEFAULT_PAGE_SIZE) + public static IPaginatedList GetAllChildTeamsAsync(this ITeamsClient t, long id, int pageSize = DEFAULT_PAGE_SIZE) => pageSize > 0 ? new PaginatedList(options => t.GetAllChildTeams(id, options), pageSize) : throw new ArgumentOutOfRangeException(nameof(pageSize), pageSize, "The page size must be positive."); /// - public static IPaginatedList GetAllMembersAsync(this ITeamsClient t, int id, int pageSize = DEFAULT_PAGE_SIZE) + public static IPaginatedList GetAllMembersAsync(this ITeamsClient t, long id, int pageSize = DEFAULT_PAGE_SIZE) => pageSize > 0 ? new PaginatedList(options => t.GetAllMembers(id, options), pageSize) : throw new ArgumentOutOfRangeException(nameof(pageSize), pageSize, "The page size must be positive."); /// - public static IPaginatedList GetAllMembersAsync(this ITeamsClient t, int id, TeamMembersRequest request, int pageSize = DEFAULT_PAGE_SIZE) + public static IPaginatedList GetAllMembersAsync(this ITeamsClient t, long id, TeamMembersRequest request, int pageSize = DEFAULT_PAGE_SIZE) => pageSize > 0 ? new PaginatedList(options => t.GetAllMembers(id, request, options), pageSize) : throw new ArgumentOutOfRangeException(nameof(pageSize), pageSize, "The page size must be positive."); /// - public static IPaginatedList GetAllRepositoriesAsync(this ITeamsClient t, int id, int pageSize = DEFAULT_PAGE_SIZE) + public static IPaginatedList GetAllRepositoriesAsync(this ITeamsClient t, long id, int pageSize = DEFAULT_PAGE_SIZE) => pageSize > 0 ? new PaginatedList(options => t.GetAllRepositories(id, options), pageSize) : throw new ArgumentOutOfRangeException(nameof(pageSize), pageSize, "The page size must be positive."); /// - public static IPaginatedList GetAllPendingInvitationsAsync(this ITeamsClient t, int id, int pageSize = DEFAULT_PAGE_SIZE) + public static IPaginatedList GetAllPendingInvitationsAsync(this ITeamsClient t, long id, int pageSize = DEFAULT_PAGE_SIZE) => pageSize > 0 ? new PaginatedList(options => t.GetAllPendingInvitations(id, options), pageSize) : throw new ArgumentOutOfRangeException(nameof(pageSize), pageSize, "The page size must be positive."); /// diff --git a/Octokit.Reactive/Clients/IObservableAuthorizationsClient.cs b/Octokit.Reactive/Clients/IObservableAuthorizationsClient.cs index 74183fb475..5ee7812bce 100644 --- a/Octokit.Reactive/Clients/IObservableAuthorizationsClient.cs +++ b/Octokit.Reactive/Clients/IObservableAuthorizationsClient.cs @@ -42,7 +42,7 @@ public interface IObservableAuthorizationsClient /// An [SuppressMessage("Microsoft.Naming", "CA1716:IdentifiersShouldNotMatchKeywords", MessageId = "Get", Justification = "It's fiiiine. It's fine. Trust us.")] - IObservable Get(int id); + IObservable Get(long id); /// /// Creates a new personal token for the authenticated user. @@ -219,7 +219,7 @@ IObservable GetOrCreateApplicationAuthentication( /// The id of the /// The changes to make to the authorization /// - IObservable Update(int id, AuthorizationUpdate authorizationUpdate); + IObservable Update(long id, AuthorizationUpdate authorizationUpdate); /// /// Deletes the specified . @@ -234,7 +234,7 @@ IObservable GetOrCreateApplicationAuthentication( /// Thrown when the current user does not have permission to make the request. /// /// Thrown when a general API error occurs. - IObservable Delete(int id); + IObservable Delete(long id); /// /// Deletes the specified . @@ -250,6 +250,6 @@ IObservable GetOrCreateApplicationAuthentication( /// Thrown when the current user does not have permission to make the request. /// /// Thrown when a general API error occurs. - IObservable Delete(int id, string twoFactorAuthenticationCode); + IObservable Delete(long id, string twoFactorAuthenticationCode); } } diff --git a/Octokit.Reactive/Clients/IObservableIssueCommentsClient.cs b/Octokit.Reactive/Clients/IObservableIssueCommentsClient.cs index 0744d57a17..d9b41314c1 100644 --- a/Octokit.Reactive/Clients/IObservableIssueCommentsClient.cs +++ b/Octokit.Reactive/Clients/IObservableIssueCommentsClient.cs @@ -21,7 +21,7 @@ public interface IObservableIssueCommentsClient /// The issue comment id [SuppressMessage("Microsoft.Naming", "CA1716:IdentifiersShouldNotMatchKeywords", MessageId = "Get", Justification = "Method makes a network request")] - IObservable Get(string owner, string name, int id); + IObservable Get(string owner, string name, long id); /// /// Gets a single Issue Comment by id. @@ -31,7 +31,7 @@ public interface IObservableIssueCommentsClient /// The issue comment id [SuppressMessage("Microsoft.Naming", "CA1716:IdentifiersShouldNotMatchKeywords", MessageId = "Get", Justification = "Method makes a network request")] - IObservable Get(long repositoryId, int id); + IObservable Get(long repositoryId, long id); /// /// Gets Issue Comments for a repository. @@ -204,7 +204,7 @@ public interface IObservableIssueCommentsClient /// The name of the repository /// The comment id /// The modified comment - IObservable Update(string owner, string name, int id, string commentUpdate); + IObservable Update(string owner, string name, long id, string commentUpdate); /// /// Updates a specified Issue Comment. @@ -213,7 +213,7 @@ public interface IObservableIssueCommentsClient /// The Id of the repository /// The comment id /// The modified comment - IObservable Update(long repositoryId, int id, string commentUpdate); + IObservable Update(long repositoryId, long id, string commentUpdate); /// /// Deletes the specified Issue Comment @@ -222,7 +222,7 @@ public interface IObservableIssueCommentsClient /// The owner of the repository /// The name of the repository /// The comment id - IObservable Delete(string owner, string name, int id); + IObservable Delete(string owner, string name, long id); /// /// Deletes the specified Issue Comment @@ -230,6 +230,6 @@ public interface IObservableIssueCommentsClient /// http://developer.github.com/v3/issues/comments/#delete-a-comment /// The Id of the repository /// The comment id - IObservable Delete(long repositoryId, int id); + IObservable Delete(long repositoryId, long id); } } diff --git a/Octokit.Reactive/Clients/IObservableMigrationsClient.cs b/Octokit.Reactive/Clients/IObservableMigrationsClient.cs index ad44792252..125bcabf9b 100644 --- a/Octokit.Reactive/Clients/IObservableMigrationsClient.cs +++ b/Octokit.Reactive/Clients/IObservableMigrationsClient.cs @@ -64,7 +64,7 @@ IObservable GetAll( [SuppressMessage("Microsoft.Naming", "CA1716:IdentifiersShouldNotMatchKeywords", MessageId = "Get")] IObservable Get( string org, - int id); + long id); /// /// Get the migration archive. @@ -77,7 +77,7 @@ IObservable Get( /// The binary contents of the archive as a byte array. IObservable GetArchive( string org, - int id); + long id); /// /// Deletes a previous migration archive. @@ -90,7 +90,7 @@ IObservable GetArchive( /// IObservable DeleteArchive( string org, - int id); + long id); /// /// Unlocks a repository that was locked for migration. @@ -104,7 +104,7 @@ IObservable DeleteArchive( /// IObservable UnlockRepository( string org, - int id, + long id, string repo); } } diff --git a/Octokit.Reactive/Clients/IObservableNotificationsClient.cs b/Octokit.Reactive/Clients/IObservableNotificationsClient.cs index 350a0b32bf..4ba0d62796 100644 --- a/Octokit.Reactive/Clients/IObservableNotificationsClient.cs +++ b/Octokit.Reactive/Clients/IObservableNotificationsClient.cs @@ -163,21 +163,21 @@ public interface IObservableNotificationsClient /// The Id of the notification to retrieve. /// http://developer.github.com/v3/activity/notifications/#view-a-single-thread [SuppressMessage("Microsoft.Naming", "CA1716:IdentifiersShouldNotMatchKeywords", MessageId = "Get")] - IObservable Get(int id); + IObservable Get(long id); /// /// Marks a single notification as read. /// /// The id of the notification. /// http://developer.github.com/v3/activity/notifications/#mark-a-thread-as-read - IObservable MarkAsRead(int id); + IObservable MarkAsRead(long id); /// /// Retrives a for the provided thread id. /// /// The Id of the thread to retrieve subscription status. /// http://developer.github.com/v3/activity/notifications/#get-a-thread-subscription - IObservable GetThreadSubscription(int id); + IObservable GetThreadSubscription(long id); /// /// Sets the authenticated user's subscription settings for a given thread. @@ -185,13 +185,13 @@ public interface IObservableNotificationsClient /// The Id of the thread to update. /// The subscription parameters to set. /// http://developer.github.com/v3/activity/notifications/#set-a-thread-subscription - IObservable SetThreadSubscription(int id, NewThreadSubscription threadSubscription); + IObservable SetThreadSubscription(long id, NewThreadSubscription threadSubscription); /// /// Deletes the authenticated user's subscription to a given thread. /// /// The Id of the thread to delete subscription from. /// http://developer.github.com/v3/activity/notifications/#delete-a-thread-subscription - IObservable DeleteThreadSubscription(int id); + IObservable DeleteThreadSubscription(long id); } } diff --git a/Octokit.Reactive/Clients/IObservableProjectCardsClient.cs b/Octokit.Reactive/Clients/IObservableProjectCardsClient.cs index ff6209b0aa..69c55eb2ef 100644 --- a/Octokit.Reactive/Clients/IObservableProjectCardsClient.cs +++ b/Octokit.Reactive/Clients/IObservableProjectCardsClient.cs @@ -59,7 +59,7 @@ public interface IObservableProjectCardsClient /// /// The id of the card [SuppressMessage("Microsoft.Naming", "CA1716:IdentifiersShouldNotMatchKeywords", MessageId = "Get")] - IObservable Get(int id); + IObservable Get(long id); /// /// Creates a card. @@ -79,7 +79,7 @@ public interface IObservableProjectCardsClient /// /// The id of the card /// New values to update the card with - IObservable Update(int id, ProjectCardUpdate projectCardUpdate); + IObservable Update(long id, ProjectCardUpdate projectCardUpdate); /// /// Deletes a card. @@ -88,7 +88,7 @@ public interface IObservableProjectCardsClient /// See the API documentation for more information. /// /// The id of the card - IObservable Delete(int id); + IObservable Delete(long id); /// /// Moves a card. @@ -98,6 +98,6 @@ public interface IObservableProjectCardsClient /// /// The id of the card /// The position to move the card - IObservable Move(int id, ProjectCardMove position); + IObservable Move(long id, ProjectCardMove position); } } diff --git a/Octokit.Reactive/Clients/IObservableProjectColumnsClient.cs b/Octokit.Reactive/Clients/IObservableProjectColumnsClient.cs index b1eb1f500a..f1ea04c963 100644 --- a/Octokit.Reactive/Clients/IObservableProjectColumnsClient.cs +++ b/Octokit.Reactive/Clients/IObservableProjectColumnsClient.cs @@ -38,7 +38,7 @@ public interface IObservableProjectColumnsClient /// /// The id of the column [SuppressMessage("Microsoft.Naming", "CA1716:IdentifiersShouldNotMatchKeywords", MessageId = "Get")] - IObservable Get(int id); + IObservable Get(long id); /// /// Creates a column. @@ -58,7 +58,7 @@ public interface IObservableProjectColumnsClient /// /// The id of the column /// New values to update the column with - IObservable Update(int id, ProjectColumnUpdate projectColumnUpdate); + IObservable Update(long id, ProjectColumnUpdate projectColumnUpdate); /// /// Deletes a column. @@ -67,7 +67,7 @@ public interface IObservableProjectColumnsClient /// See the API documentation for more information. /// /// The id of the column - IObservable Delete(int id); + IObservable Delete(long id); /// /// Moves a column. @@ -77,6 +77,6 @@ public interface IObservableProjectColumnsClient /// /// The id of the column /// The position to move the column - IObservable Move(int id, ProjectColumnMove position); + IObservable Move(long id, ProjectColumnMove position); } } diff --git a/Octokit.Reactive/Clients/IObservableProjectsClient.cs b/Octokit.Reactive/Clients/IObservableProjectsClient.cs index 19669b426d..3c294fd822 100644 --- a/Octokit.Reactive/Clients/IObservableProjectsClient.cs +++ b/Octokit.Reactive/Clients/IObservableProjectsClient.cs @@ -143,7 +143,7 @@ public interface IObservableProjectsClient /// /// The Id of the project [SuppressMessage("Microsoft.Naming", "CA1716:IdentifiersShouldNotMatchKeywords", MessageId = "Get")] - IObservable Get(int id); + IObservable Get(long id); /// /// Creates a project for the specified repository. @@ -173,7 +173,7 @@ public interface IObservableProjectsClient /// /// The Id of the project /// The modified project - IObservable Update(int id, ProjectUpdate projectUpdate); + IObservable Update(long id, ProjectUpdate projectUpdate); /// /// Deletes a project. @@ -182,7 +182,7 @@ public interface IObservableProjectsClient /// See the API documentation for more information. /// /// The Id of the project - IObservable Delete(int id); + IObservable Delete(long id); /// /// A client for GitHub's Project Cards API. diff --git a/Octokit.Reactive/Clients/IObservableReleasesClient.cs b/Octokit.Reactive/Clients/IObservableReleasesClient.cs index 5a8773b3a1..21558b8618 100644 --- a/Octokit.Reactive/Clients/IObservableReleasesClient.cs +++ b/Octokit.Reactive/Clients/IObservableReleasesClient.cs @@ -90,7 +90,7 @@ public interface IObservableReleasesClient /// The repository's name /// The id of the release /// Thrown when a general API error occurs. - IObservable Get(string owner, string name, int id); + IObservable Get(string owner, string name, long id); /// /// Gets a single for the specified repository. @@ -113,7 +113,7 @@ public interface IObservableReleasesClient /// The Id of the repository /// The id of the release /// Thrown when a general API error occurs. - IObservable Get(long repositoryId, int id); + IObservable Get(long repositoryId, long id); /// /// Gets a single for the specified repository. @@ -181,7 +181,7 @@ public interface IObservableReleasesClient /// The id of the release /// A description of the release to edit /// Thrown when a general API error occurs. - IObservable Edit(string owner, string name, int id, ReleaseUpdate data); + IObservable Edit(string owner, string name, long id, ReleaseUpdate data); /// /// Edits an existing for the specified repository. @@ -193,7 +193,7 @@ public interface IObservableReleasesClient /// The id of the release /// A description of the release to edit /// Thrown when a general API error occurs. - IObservable Edit(long repositoryId, int id, ReleaseUpdate data); + IObservable Edit(long repositoryId, long id, ReleaseUpdate data); /// /// Deletes an existing for the specified repository. @@ -205,7 +205,7 @@ public interface IObservableReleasesClient /// The repository's name /// The id of the release to delete /// Thrown when a general API error occurs. - IObservable Delete(string owner, string name, int id); + IObservable Delete(string owner, string name, long id); /// /// Deletes an existing for the specified repository. @@ -216,7 +216,7 @@ public interface IObservableReleasesClient /// The Id of the repository /// The id of the release to delete /// Thrown when a general API error occurs. - IObservable Delete(long repositoryId, int id); + IObservable Delete(long repositoryId, long id); /// /// Gets all for the specified release of the specified repository. @@ -228,7 +228,7 @@ public interface IObservableReleasesClient /// The repository's name /// The id of the . /// Thrown when a general API error occurs. - IObservable GetAllAssets(string owner, string name, int id); + IObservable GetAllAssets(string owner, string name, long id); /// /// Gets all for the specified release of the specified repository. @@ -239,7 +239,7 @@ public interface IObservableReleasesClient /// The Id of the repository /// The id of the . /// Thrown when a general API error occurs. - IObservable GetAllAssets(long repositoryId, int id); + IObservable GetAllAssets(long repositoryId, long id); /// /// Gets all for the specified release of the specified repository. @@ -252,7 +252,7 @@ public interface IObservableReleasesClient /// The id of the . /// Options for changing the API response /// Thrown when a general API error occurs. - IObservable GetAllAssets(string owner, string name, int id, ApiOptions options); + IObservable GetAllAssets(string owner, string name, long id, ApiOptions options); /// /// Gets all for the specified release of the specified repository. @@ -264,7 +264,7 @@ public interface IObservableReleasesClient /// The id of the . /// Options for changing the API response /// Thrown when a general API error occurs. - IObservable GetAllAssets(long repositoryId, int id, ApiOptions options); + IObservable GetAllAssets(long repositoryId, long id, ApiOptions options); /// /// Uploads a for the specified release. @@ -331,7 +331,7 @@ public interface IObservableReleasesClient /// The repository's owner /// The repository's name /// The id of the . - IObservable DeleteAsset(string owner, string name, int id); + IObservable DeleteAsset(string owner, string name, long id); /// /// Deletes the specified from the specified repository @@ -341,6 +341,6 @@ public interface IObservableReleasesClient /// /// The Id of the repository /// The id of the . - IObservable DeleteAsset(long repositoryId, int id); + IObservable DeleteAsset(long repositoryId, long id); } } diff --git a/Octokit.Reactive/Clients/IObservableTeamsClient.cs b/Octokit.Reactive/Clients/IObservableTeamsClient.cs index 1a9f40619b..a1e9883afc 100644 --- a/Octokit.Reactive/Clients/IObservableTeamsClient.cs +++ b/Octokit.Reactive/Clients/IObservableTeamsClient.cs @@ -22,7 +22,7 @@ public interface IObservableTeamsClient /// The with the given identifier. [SuppressMessage("Microsoft.Naming", "CA1716:IdentifiersShouldNotMatchKeywords", MessageId = "Get", Justification = "Method makes a network request")] - IObservable Get(int id); + IObservable Get(long id); /// /// Returns all s for the current org. @@ -65,7 +65,7 @@ public interface IObservableTeamsClient /// https://developer.github.com/v3/orgs/teams/#list-child-teams /// /// The team identifier - IObservable GetAllChildTeams(int id); + IObservable GetAllChildTeams(long id); /// /// Returns all child teams of the given team. @@ -75,7 +75,7 @@ public interface IObservableTeamsClient /// /// The team identifier /// Options for changing the API response - IObservable GetAllChildTeams(int id, ApiOptions options); + IObservable GetAllChildTeams(long id, ApiOptions options); /// /// Returns all members of the given team. @@ -84,7 +84,7 @@ public interface IObservableTeamsClient /// https://developer.github.com/v3/orgs/teams/#list-team-members /// /// The team identifier - IObservable GetAllMembers(int id); + IObservable GetAllMembers(long id); /// /// Returns all members of the given team. @@ -94,7 +94,7 @@ public interface IObservableTeamsClient /// /// The team identifier /// Options to change API behaviour. - IObservable GetAllMembers(int id, ApiOptions options); + IObservable GetAllMembers(long id, ApiOptions options); /// /// Returns all members with the specified role in the given team of the given role. @@ -104,7 +104,7 @@ public interface IObservableTeamsClient /// /// The team identifier /// The request filter - IObservable GetAllMembers(int id, TeamMembersRequest request); + IObservable GetAllMembers(long id, TeamMembersRequest request); /// /// Returns all members with the specified role in the given team of the given role. @@ -115,7 +115,7 @@ public interface IObservableTeamsClient /// The team identifier /// The request filter /// Options to change API behaviour. - IObservable GetAllMembers(int id, TeamMembersRequest request, ApiOptions options); + IObservable GetAllMembers(long id, TeamMembersRequest request, ApiOptions options); /// /// Returns newly created for the current org. @@ -147,7 +147,7 @@ public interface IObservableTeamsClient /// /// Thrown when a general API error occurs. /// Updated - IObservable Update(int id, UpdateTeam team); + IObservable Update(long id, UpdateTeam team); /// /// To delete a team, the authenticated user must be an organization owner or team maintainer. @@ -174,7 +174,7 @@ public interface IObservableTeamsClient /// The unique identifier of the team. /// Thrown when a general API error occurs. /// - IObservable Delete(int id); + IObservable Delete(long id); /// /// Adds a to a . @@ -185,7 +185,7 @@ public interface IObservableTeamsClient /// The team identifier. /// The user to add to the team. /// Additional parameters for the request - IObservable AddOrEditMembership(int id, string login, UpdateTeamMembership request); + IObservable AddOrEditMembership(long id, string login, UpdateTeamMembership request); /// /// Removes a from a . @@ -196,7 +196,7 @@ public interface IObservableTeamsClient /// The team identifier. /// The user to remove from the team. /// if the user was removed from the team; otherwise. - IObservable RemoveMembership(int id, string login); + IObservable RemoveMembership(long id, string login); /// /// Gets whether the user with the given @@ -208,7 +208,7 @@ public interface IObservableTeamsClient /// /// The team to check. /// The user to check. - IObservable GetMembershipDetails(int id, string login); + IObservable GetMembershipDetails(long id, string login); /// /// Returns all team's repositories. @@ -216,7 +216,7 @@ public interface IObservableTeamsClient /// Team Id. /// Thrown when a general API error occurs. /// The team's repositories - IObservable GetAllRepositories(int id); + IObservable GetAllRepositories(long id); /// /// Returns all team's repositories. @@ -225,14 +225,14 @@ public interface IObservableTeamsClient /// Options to change API behaviour. /// Thrown when a general API error occurs. /// The team's repositories - IObservable GetAllRepositories(int id, ApiOptions options); + IObservable GetAllRepositories(long id, ApiOptions options); /// /// Remove a repository from the team /// /// Thrown when a general API error occurs. /// - IObservable RemoveRepository(int id, string organization, string repoName); + IObservable RemoveRepository(long id, string organization, string repoName); /// /// Adds a to a . @@ -245,7 +245,7 @@ public interface IObservableTeamsClient /// See the API documentation for more information. /// /// if the repository was added to the team; otherwise. - IObservable AddRepository(int id, string organization, string repoName); + IObservable AddRepository(long id, string organization, string repoName); /// /// Adds a to a . @@ -259,7 +259,7 @@ public interface IObservableTeamsClient /// See the API documentation for more information. /// /// if the repository was added to the team; otherwise. - IObservable AddRepository(int id, string organization, string repoName, RepositoryPermissionRequest permission); + IObservable AddRepository(long id, string organization, string repoName, RepositoryPermissionRequest permission); /// /// Gets whether or not the given repository is managed by the given team. @@ -271,7 +271,7 @@ public interface IObservableTeamsClient /// See the API documentation for more information. /// /// if the repository is managed by the given team; otherwise. - IObservable IsRepositoryManagedByTeam(int id, string owner, string repo); + IObservable IsRepositoryManagedByTeam(long id, string owner, string repo); /// /// List all pending invitations for the given team. @@ -282,7 +282,7 @@ public interface IObservableTeamsClient /// /// The team identifier /// - IObservable GetAllPendingInvitations(int id); + IObservable GetAllPendingInvitations(long id); /// /// List all pending invitations for the given team. @@ -294,7 +294,7 @@ public interface IObservableTeamsClient /// The team identifier /// Options to change API behaviour. /// - IObservable GetAllPendingInvitations(int id, ApiOptions options); + IObservable GetAllPendingInvitations(long id, ApiOptions options); /// /// Checks whether a team has admin, push, maintain, triage, or pull permission for a repository. diff --git a/Octokit.Reactive/Clients/IObservableUserGpgKeysClient.cs b/Octokit.Reactive/Clients/IObservableUserGpgKeysClient.cs index 89894c2de0..e66ff78bda 100644 --- a/Octokit.Reactive/Clients/IObservableUserGpgKeysClient.cs +++ b/Octokit.Reactive/Clients/IObservableUserGpgKeysClient.cs @@ -45,7 +45,7 @@ public interface IObservableUserGpgKeysClient /// /// The for the specified Id. [SuppressMessage("Microsoft.Naming", "CA1716:IdentifiersShouldNotMatchKeywords", MessageId = "Get")] - IObservable Get(int id); + IObservable Get(long id); /// /// Creates a new for the authenticated user. @@ -66,6 +66,6 @@ public interface IObservableUserGpgKeysClient /// See the API documentation for more information. /// /// - IObservable Delete(int id); + IObservable Delete(long id); } } diff --git a/Octokit.Reactive/Clients/IObservableUserKeysClient.cs b/Octokit.Reactive/Clients/IObservableUserKeysClient.cs index 0da3112734..1b06b06079 100644 --- a/Octokit.Reactive/Clients/IObservableUserKeysClient.cs +++ b/Octokit.Reactive/Clients/IObservableUserKeysClient.cs @@ -63,7 +63,7 @@ public interface IObservableUserKeysClient /// The Id of the SSH key /// View extended details for a single public key. [SuppressMessage("Microsoft.Naming", "CA1716:IdentifiersShouldNotMatchKeywords", MessageId = "Get")] - IObservable Get(int id); + IObservable Get(long id); /// /// Create a public key . @@ -83,6 +83,6 @@ public interface IObservableUserKeysClient /// /// The id of the key to delete /// Removes a public key. - IObservable Delete(int id); + IObservable Delete(long id); } } diff --git a/Octokit.Reactive/Clients/ObservableAuthorizationsClient.cs b/Octokit.Reactive/Clients/ObservableAuthorizationsClient.cs index 7da86509db..1458c6fd1d 100644 --- a/Octokit.Reactive/Clients/ObservableAuthorizationsClient.cs +++ b/Octokit.Reactive/Clients/ObservableAuthorizationsClient.cs @@ -56,7 +56,7 @@ public IObservable GetAll(ApiOptions options) /// /// The id of the /// An - public IObservable Get(int id) + public IObservable Get(long id) { return _client.Get(id).ToObservable(); } @@ -307,7 +307,7 @@ public IObservable RevokeApplicationAuthentication(string clientId, string /// The id of the /// The changes to make to the authorization /// - public IObservable Update(int id, AuthorizationUpdate authorizationUpdate) + public IObservable Update(long id, AuthorizationUpdate authorizationUpdate) { Ensure.ArgumentNotNull(authorizationUpdate, nameof(authorizationUpdate)); @@ -327,7 +327,7 @@ public IObservable Update(int id, AuthorizationUpdate authorizati /// Thrown when the current user does not have permission to make the request. /// /// Thrown when a general API error occurs. - public IObservable Delete(int id) + public IObservable Delete(long id) { return _client.Delete(id).ToObservable(); } @@ -346,7 +346,7 @@ public IObservable Delete(int id) /// Thrown when the current user does not have permission to make the request. /// /// Thrown when a general API error occurs. - public IObservable Delete(int id, string twoFactorAuthenticationCode) + public IObservable Delete(long id, string twoFactorAuthenticationCode) { return _client.Delete(id, twoFactorAuthenticationCode).ToObservable(); } diff --git a/Octokit.Reactive/Clients/ObservableIssueCommentsClient.cs b/Octokit.Reactive/Clients/ObservableIssueCommentsClient.cs index fde616445a..a138a7da44 100644 --- a/Octokit.Reactive/Clients/ObservableIssueCommentsClient.cs +++ b/Octokit.Reactive/Clients/ObservableIssueCommentsClient.cs @@ -31,7 +31,7 @@ public ObservableIssueCommentsClient(IGitHubClient client) /// The owner of the repository /// The name of the repository /// The issue comment id - public IObservable Get(string owner, string name, int id) + public IObservable Get(string owner, string name, long id) { Ensure.ArgumentNotNullOrEmptyString(owner, nameof(owner)); Ensure.ArgumentNotNullOrEmptyString(name, nameof(name)); @@ -45,7 +45,7 @@ public IObservable Get(string owner, string name, int id) /// http://developer.github.com/v3/issues/comments/#get-a-single-comment /// The Id of the repository /// The issue comment id - public IObservable Get(long repositoryId, int id) + public IObservable Get(long repositoryId, long id) { return _client.Get(repositoryId, id).ToObservable(); } @@ -328,7 +328,7 @@ public IObservable Create(long repositoryId, int number, string ne /// The name of the repository /// The comment id /// The modified comment - public IObservable Update(string owner, string name, int id, string commentUpdate) + public IObservable Update(string owner, string name, long id, string commentUpdate) { Ensure.ArgumentNotNullOrEmptyString(owner, nameof(owner)); Ensure.ArgumentNotNullOrEmptyString(name, nameof(name)); @@ -344,7 +344,7 @@ public IObservable Update(string owner, string name, int id, strin /// The Id of the repository /// The comment id /// The modified comment - public IObservable Update(long repositoryId, int id, string commentUpdate) + public IObservable Update(long repositoryId, long id, string commentUpdate) { Ensure.ArgumentNotNull(commentUpdate, nameof(commentUpdate)); @@ -358,7 +358,7 @@ public IObservable Update(long repositoryId, int id, string commen /// The owner of the repository /// The name of the repository /// The comment id - public IObservable Delete(string owner, string name, int id) + public IObservable Delete(string owner, string name, long id) { Ensure.ArgumentNotNullOrEmptyString(owner, nameof(owner)); Ensure.ArgumentNotNullOrEmptyString(name, nameof(name)); @@ -372,7 +372,7 @@ public IObservable Delete(string owner, string name, int id) /// http://developer.github.com/v3/issues/comments/#delete-a-comment /// The Id of the repository /// The comment id - public IObservable Delete(long repositoryId, int id) + public IObservable Delete(long repositoryId, long id) { return _client.Delete(repositoryId, id).ToObservable(); } diff --git a/Octokit.Reactive/Clients/ObservableMigrationsClient.cs b/Octokit.Reactive/Clients/ObservableMigrationsClient.cs index 41e7021ed6..ea9ddb219e 100644 --- a/Octokit.Reactive/Clients/ObservableMigrationsClient.cs +++ b/Octokit.Reactive/Clients/ObservableMigrationsClient.cs @@ -74,7 +74,7 @@ public IObservable GetAll(string org, ApiOptions options) /// The organization which is migrating. /// Migrations Id of the organization. /// A object representing the state of migration. - public IObservable Get(string org, int id) + public IObservable Get(string org, long id) { return _client.Get(org, id).ToObservable(); } @@ -88,7 +88,7 @@ public IObservable Get(string org, int id) /// The organization of which the migration was. /// The Id of the migration. /// The binary contents of the archive as a byte array. - public IObservable GetArchive(string org, int id) + public IObservable GetArchive(string org, long id) { return _client.GetArchive(org, id).ToObservable(); } @@ -102,7 +102,7 @@ public IObservable GetArchive(string org, int id) /// The organization of which the migration was. /// The Id of the migration. /// - public IObservable DeleteArchive(string org, int id) + public IObservable DeleteArchive(string org, long id) { return _client.DeleteArchive(org, id).ToObservable(); } @@ -117,7 +117,7 @@ public IObservable DeleteArchive(string org, int id) /// The Id of the migration. /// The repo to unlock. /// - public IObservable UnlockRepository(string org, int id, string repo) + public IObservable UnlockRepository(string org, long id, string repo) { return _client.UnlockRepository(org, id, repo).ToObservable(); } diff --git a/Octokit.Reactive/Clients/ObservableNotificationsClient.cs b/Octokit.Reactive/Clients/ObservableNotificationsClient.cs index 20d4fe887a..a604d92e19 100644 --- a/Octokit.Reactive/Clients/ObservableNotificationsClient.cs +++ b/Octokit.Reactive/Clients/ObservableNotificationsClient.cs @@ -265,7 +265,7 @@ public IObservable MarkAsReadForRepository(long repositoryId, MarkAsReadRe /// /// The Id of the notification to retrieve. /// http://developer.github.com/v3/activity/notifications/#view-a-single-thread - public IObservable Get(int id) + public IObservable Get(long id) { return _notificationsClient.Get(id).ToObservable(); } @@ -275,7 +275,7 @@ public IObservable Get(int id) /// /// The id of the notification. /// http://developer.github.com/v3/activity/notifications/#mark-a-thread-as-read - public IObservable MarkAsRead(int id) + public IObservable MarkAsRead(long id) { return _notificationsClient.MarkAsRead(id).ToObservable(); } @@ -285,7 +285,7 @@ public IObservable MarkAsRead(int id) /// /// The Id of the thread to retrieve subscription status. /// http://developer.github.com/v3/activity/notifications/#get-a-thread-subscription - public IObservable GetThreadSubscription(int id) + public IObservable GetThreadSubscription(long id) { return _notificationsClient.GetThreadSubscription(id).ToObservable(); } @@ -296,7 +296,7 @@ public IObservable GetThreadSubscription(int id) /// The Id of the thread to update. /// The subscription parameters to set. /// http://developer.github.com/v3/activity/notifications/#set-a-thread-subscription - public IObservable SetThreadSubscription(int id, NewThreadSubscription threadSubscription) + public IObservable SetThreadSubscription(long id, NewThreadSubscription threadSubscription) { Ensure.ArgumentNotNull(threadSubscription, nameof(threadSubscription)); @@ -308,7 +308,7 @@ public IObservable SetThreadSubscription(int id, NewThreadSu /// /// The Id of the thread to delete subscription from. /// http://developer.github.com/v3/activity/notifications/#delete-a-thread-subscription - public IObservable DeleteThreadSubscription(int id) + public IObservable DeleteThreadSubscription(long id) { return _notificationsClient.DeleteThreadSubscription(id).ToObservable(); } diff --git a/Octokit.Reactive/Clients/ObservableProjectCardsClient.cs b/Octokit.Reactive/Clients/ObservableProjectCardsClient.cs index 23a3441354..4a393289be 100644 --- a/Octokit.Reactive/Clients/ObservableProjectCardsClient.cs +++ b/Octokit.Reactive/Clients/ObservableProjectCardsClient.cs @@ -91,7 +91,7 @@ public IObservable GetAll(int columnId, ProjectCardRequest request, /// See the API documentation for more information. /// /// The id of the card - public IObservable Get(int id) + public IObservable Get(long id) { return _client.Get(id).ToObservable(); } @@ -119,7 +119,7 @@ public IObservable Create(int columnId, NewProjectCard newProjectCa /// /// The id of the card /// New values to update the card with - public IObservable Update(int id, ProjectCardUpdate projectCardUpdate) + public IObservable Update(long id, ProjectCardUpdate projectCardUpdate) { Ensure.ArgumentNotNull(projectCardUpdate, nameof(projectCardUpdate)); @@ -133,7 +133,7 @@ public IObservable Update(int id, ProjectCardUpdate projectCardUpda /// See the API documentation for more information. /// /// The id of the card - public IObservable Delete(int id) + public IObservable Delete(long id) { return _client.Delete(id).ToObservable(); } @@ -146,7 +146,7 @@ public IObservable Delete(int id) /// /// The id of the card /// The position to move the card - public IObservable Move(int id, ProjectCardMove position) + public IObservable Move(long id, ProjectCardMove position) { Ensure.ArgumentNotNull(position, nameof(position)); diff --git a/Octokit.Reactive/Clients/ObservableProjectColumnsClient.cs b/Octokit.Reactive/Clients/ObservableProjectColumnsClient.cs index 36afe03909..58bed4d183 100644 --- a/Octokit.Reactive/Clients/ObservableProjectColumnsClient.cs +++ b/Octokit.Reactive/Clients/ObservableProjectColumnsClient.cs @@ -54,7 +54,7 @@ public IObservable GetAll(int projectId, ApiOptions options) /// See the API documentation for more information. /// /// The id of the column - public IObservable Get(int id) + public IObservable Get(long id) { return _client.Get(id).ToObservable(); } @@ -82,7 +82,7 @@ public IObservable Create(int projectId, NewProjectColumn newProj /// /// The id of the column /// New values to update the column with - public IObservable Update(int id, ProjectColumnUpdate projectColumnUpdate) + public IObservable Update(long id, ProjectColumnUpdate projectColumnUpdate) { Ensure.ArgumentNotNull(projectColumnUpdate, nameof(projectColumnUpdate)); @@ -96,7 +96,7 @@ public IObservable Update(int id, ProjectColumnUpdate projectColu /// See the API documentation for more information. /// /// The id of the column - public IObservable Delete(int id) + public IObservable Delete(long id) { return _client.Delete(id).ToObservable(); } @@ -109,7 +109,7 @@ public IObservable Delete(int id) /// /// The id of the column /// The position to move the column - public IObservable Move(int id, ProjectColumnMove position) + public IObservable Move(long id, ProjectColumnMove position) { Ensure.ArgumentNotNull(position, nameof(position)); diff --git a/Octokit.Reactive/Clients/ObservableProjectsClient.cs b/Octokit.Reactive/Clients/ObservableProjectsClient.cs index 3694f90c90..cacf26fdc7 100644 --- a/Octokit.Reactive/Clients/ObservableProjectsClient.cs +++ b/Octokit.Reactive/Clients/ObservableProjectsClient.cs @@ -228,7 +228,7 @@ public IObservable GetAllForOrganization(string organization, ProjectRe /// /// The Id of the project [SuppressMessage("Microsoft.Naming", "CA1716:IdentifiersShouldNotMatchKeywords", MessageId = "Get")] - public IObservable Get(int id) + public IObservable Get(long id) { return _client.Get(id).ToObservable(); } @@ -272,7 +272,7 @@ public IObservable CreateForOrganization(string organization, NewProjec /// /// The Id of the project /// The modified project - public IObservable Update(int id, ProjectUpdate projectUpdate) + public IObservable Update(long id, ProjectUpdate projectUpdate) { Ensure.ArgumentNotNull(projectUpdate, nameof(projectUpdate)); @@ -286,7 +286,7 @@ public IObservable Update(int id, ProjectUpdate projectUpdate) /// See the API documentation for more information. /// /// The Id of the project - public IObservable Delete(int id) + public IObservable Delete(long id) { return _client.Delete(id).ToObservable(); } diff --git a/Octokit.Reactive/Clients/ObservableReleasesClient.cs b/Octokit.Reactive/Clients/ObservableReleasesClient.cs index 3c1679d440..02bdfb4051 100644 --- a/Octokit.Reactive/Clients/ObservableReleasesClient.cs +++ b/Octokit.Reactive/Clients/ObservableReleasesClient.cs @@ -135,7 +135,7 @@ public IObservable GetAll(long repositoryId, ApiOptions options) /// The repository's name /// The id of the release /// Thrown when a general API error occurs. - public IObservable Get(string owner, string name, int id) + public IObservable Get(string owner, string name, long id) { Ensure.ArgumentNotNullOrEmptyString(owner, nameof(owner)); Ensure.ArgumentNotNullOrEmptyString(name, nameof(name)); @@ -171,7 +171,7 @@ public IObservable Get(string owner, string name, string tag) /// The Id of the repository /// The id of the release /// Thrown when a general API error occurs. - public IObservable Get(long repositoryId, int id) + public IObservable Get(long repositoryId, long id) { return _client.Get(repositoryId, id).ToObservable(); } @@ -268,7 +268,7 @@ public IObservable Create(long repositoryId, NewRelease data) /// The id of the release /// A description of the release to edit /// Thrown when a general API error occurs. - public IObservable Edit(string owner, string name, int id, ReleaseUpdate data) + public IObservable Edit(string owner, string name, long id, ReleaseUpdate data) { Ensure.ArgumentNotNullOrEmptyString(owner, nameof(owner)); Ensure.ArgumentNotNullOrEmptyString(name, nameof(name)); @@ -287,7 +287,7 @@ public IObservable Edit(string owner, string name, int id, ReleaseUpdat /// The id of the release /// A description of the release to edit /// Thrown when a general API error occurs. - public IObservable Edit(long repositoryId, int id, ReleaseUpdate data) + public IObservable Edit(long repositoryId, long id, ReleaseUpdate data) { Ensure.ArgumentNotNull(data, nameof(data)); @@ -304,7 +304,7 @@ public IObservable Edit(long repositoryId, int id, ReleaseUpdate data) /// The repository's name /// The id of the release to delete /// Thrown when a general API error occurs. - public IObservable Delete(string owner, string name, int id) + public IObservable Delete(string owner, string name, long id) { Ensure.ArgumentNotNullOrEmptyString(owner, nameof(owner)); Ensure.ArgumentNotNullOrEmptyString(name, nameof(name)); @@ -321,7 +321,7 @@ public IObservable Delete(string owner, string name, int id) /// The Id of the repository /// The id of the release to delete /// Thrown when a general API error occurs. - public IObservable Delete(long repositoryId, int id) + public IObservable Delete(long repositoryId, long id) { return _client.Delete(repositoryId, id).ToObservable(); } @@ -336,7 +336,7 @@ public IObservable Delete(long repositoryId, int id) /// The repository's name /// The id of the . /// Thrown when a general API error occurs. - public IObservable GetAllAssets(string owner, string name, int id) + public IObservable GetAllAssets(string owner, string name, long id) { Ensure.ArgumentNotNullOrEmptyString(owner, nameof(owner)); Ensure.ArgumentNotNullOrEmptyString(name, nameof(name)); @@ -353,7 +353,7 @@ public IObservable GetAllAssets(string owner, string name, int id) /// The Id of the repository /// The id of the . /// Thrown when a general API error occurs. - public IObservable GetAllAssets(long repositoryId, int id) + public IObservable GetAllAssets(long repositoryId, long id) { return GetAllAssets(repositoryId, id, ApiOptions.None); } @@ -369,7 +369,7 @@ public IObservable GetAllAssets(long repositoryId, int id) /// The id of the . /// Options for changing the API response /// Thrown when a general API error occurs. - public IObservable GetAllAssets(string owner, string name, int id, ApiOptions options) + public IObservable GetAllAssets(string owner, string name, long id, ApiOptions options) { Ensure.ArgumentNotNullOrEmptyString(owner, nameof(owner)); Ensure.ArgumentNotNullOrEmptyString(name, nameof(name)); @@ -388,7 +388,7 @@ public IObservable GetAllAssets(string owner, string name, int id, /// The id of the . /// Options for changing the API response /// Thrown when a general API error occurs. - public IObservable GetAllAssets(long repositoryId, int id, ApiOptions options) + public IObservable GetAllAssets(long repositoryId, long id, ApiOptions options) { Ensure.ArgumentNotNull(options, nameof(options)); @@ -490,7 +490,7 @@ public IObservable EditAsset(long repositoryId, int assetId, Relea /// The repository's owner /// The repository's name /// The id of the . - public IObservable DeleteAsset(string owner, string name, int id) + public IObservable DeleteAsset(string owner, string name, long id) { Ensure.ArgumentNotNullOrEmptyString(owner, nameof(owner)); Ensure.ArgumentNotNullOrEmptyString(name, nameof(name)); @@ -506,7 +506,7 @@ public IObservable DeleteAsset(string owner, string name, int id) /// /// The Id of the repository /// The id of the . - public IObservable DeleteAsset(long repositoryId, int id) + public IObservable DeleteAsset(long repositoryId, long id) { return _client.DeleteAsset(repositoryId, id).ToObservable(); } diff --git a/Octokit.Reactive/Clients/ObservableTeamsClient.cs b/Octokit.Reactive/Clients/ObservableTeamsClient.cs index 00c2b07616..22978c54bd 100644 --- a/Octokit.Reactive/Clients/ObservableTeamsClient.cs +++ b/Octokit.Reactive/Clients/ObservableTeamsClient.cs @@ -35,7 +35,7 @@ public ObservableTeamsClient(IGitHubClient client) /// /// The team identifier. /// The with the given identifier. - public IObservable Get(int id) + public IObservable Get(long id) { return _client.Get(id).ToObservable(); } @@ -97,7 +97,7 @@ public IObservable GetAllForCurrent(ApiOptions options) /// /// https://developer.github.com/v3/orgs/teams/#list-child-teams /// - public IObservable GetAllChildTeams(int id) + public IObservable GetAllChildTeams(long id) { return GetAllChildTeams(id, ApiOptions.None); } @@ -110,7 +110,7 @@ public IObservable GetAllChildTeams(int id) /// /// The team identifier /// Options to change API behaviour. - public IObservable GetAllChildTeams(int id, ApiOptions options) + public IObservable GetAllChildTeams(long id, ApiOptions options) { Ensure.ArgumentNotNull(options, nameof(options)); @@ -126,7 +126,7 @@ public IObservable GetAllChildTeams(int id, ApiOptions options) /// /// Thrown when a general API error occurs. /// A list of the team's member s. - public IObservable GetAllMembers(int id) + public IObservable GetAllMembers(long id) { return GetAllMembers(id, ApiOptions.None); } @@ -141,7 +141,7 @@ public IObservable GetAllMembers(int id) /// Options to change API behaviour. /// Thrown when a general API error occurs. /// A list of the team's member s. - public IObservable GetAllMembers(int id, ApiOptions options) + public IObservable GetAllMembers(long id, ApiOptions options) { Ensure.ArgumentNotNull(options, nameof(options)); @@ -156,7 +156,7 @@ public IObservable GetAllMembers(int id, ApiOptions options) /// /// The team identifier /// The request filter - public IObservable GetAllMembers(int id, TeamMembersRequest request) + public IObservable GetAllMembers(long id, TeamMembersRequest request) { Ensure.ArgumentNotNull(request, nameof(request)); @@ -172,7 +172,7 @@ public IObservable GetAllMembers(int id, TeamMembersRequest request) /// The team identifier /// The request filter /// Options to change API behaviour. - public IObservable GetAllMembers(int id, TeamMembersRequest request, ApiOptions options) + public IObservable GetAllMembers(long id, TeamMembersRequest request, ApiOptions options) { Ensure.ArgumentNotNull(request, nameof(request)); Ensure.ArgumentNotNull(options, nameof(options)); @@ -223,7 +223,7 @@ public IObservable Update(string org, string teamSlug, UpdateTeam team) /// /// Thrown when a general API error occurs. /// Updated - public IObservable Update(int id, UpdateTeam team) + public IObservable Update(long id, UpdateTeam team) { Ensure.ArgumentNotNull(team, nameof(team)); @@ -261,7 +261,7 @@ public IObservable Delete(string org, string teamSlug) /// The unique identifier of the team. /// Thrown when a general API error occurs. /// - public IObservable Delete(int id) + public IObservable Delete(long id) { return _client.Delete(id).ToObservable(); } @@ -275,7 +275,7 @@ public IObservable Delete(int id) /// The team identifier. /// The user to add to the team. /// Additional parameters for the request - public IObservable AddOrEditMembership(int id, string login, UpdateTeamMembership request) + public IObservable AddOrEditMembership(long id, string login, UpdateTeamMembership request) { Ensure.ArgumentNotNullOrEmptyString(login, nameof(login)); Ensure.ArgumentNotNull(request, nameof(request)); @@ -292,7 +292,7 @@ public IObservable AddOrEditMembership(int id, string log /// The team identifier. /// The user to remove from the team. /// if the user was removed from the team; otherwise. - public IObservable RemoveMembership(int id, string login) + public IObservable RemoveMembership(long id, string login) { Ensure.ArgumentNotNullOrEmptyString(login, nameof(login)); @@ -309,7 +309,7 @@ public IObservable RemoveMembership(int id, string login) /// /// The team to check. /// The user to check. - public IObservable GetMembershipDetails(int id, string login) + public IObservable GetMembershipDetails(long id, string login) { Ensure.ArgumentNotNullOrEmptyString(login, nameof(login)); @@ -321,7 +321,7 @@ public IObservable GetMembershipDetails(int id, string lo /// /// Thrown when a general API error occurs. /// The team's repositories - public IObservable GetAllRepositories(int id) + public IObservable GetAllRepositories(long id) { return GetAllRepositories(id, ApiOptions.None); } @@ -333,7 +333,7 @@ public IObservable GetAllRepositories(int id) /// Options to change API behaviour. /// Thrown when a general API error occurs. /// The team's repositories - public IObservable GetAllRepositories(int id, ApiOptions options) + public IObservable GetAllRepositories(long id, ApiOptions options) { Ensure.ArgumentNotNull(options, nameof(options)); @@ -351,7 +351,7 @@ public IObservable GetAllRepositories(int id, ApiOptions options) /// See the API documentation for more information. /// /// if the repository was added to the team; otherwise. - public IObservable AddRepository(int id, string organization, string repoName) + public IObservable AddRepository(long id, string organization, string repoName) { Ensure.ArgumentNotNullOrEmptyString(organization, nameof(organization)); Ensure.ArgumentNotNullOrEmptyString(repoName, nameof(repoName)); @@ -371,7 +371,7 @@ public IObservable AddRepository(int id, string organization, string repoN /// See the API documentation for more information. /// /// if the repository was added to the team; otherwise. - public IObservable AddRepository(int id, string organization, string repoName, RepositoryPermissionRequest permission) + public IObservable AddRepository(long id, string organization, string repoName, RepositoryPermissionRequest permission) { Ensure.ArgumentNotNullOrEmptyString(organization, nameof(organization)); Ensure.ArgumentNotNullOrEmptyString(repoName, nameof(repoName)); @@ -384,7 +384,7 @@ public IObservable AddRepository(int id, string organization, string repoN /// /// Thrown when a general API error occurs. /// - public IObservable RemoveRepository(int id, string organization, string repoName) + public IObservable RemoveRepository(long id, string organization, string repoName) { Ensure.ArgumentNotNullOrEmptyString(organization, nameof(organization)); Ensure.ArgumentNotNullOrEmptyString(repoName, nameof(repoName)); @@ -402,7 +402,7 @@ public IObservable RemoveRepository(int id, string organization, string re /// See the API documentation for more information. /// /// if the repository is managed by the given team; otherwise. - public IObservable IsRepositoryManagedByTeam(int id, string owner, string repo) + public IObservable IsRepositoryManagedByTeam(long id, string owner, string repo) { Ensure.ArgumentNotNullOrEmptyString(owner, nameof(owner)); Ensure.ArgumentNotNullOrEmptyString(repo, nameof(repo)); @@ -418,7 +418,7 @@ public IObservable IsRepositoryManagedByTeam(int id, string owner, string /// /// The team identifier /// - public IObservable GetAllPendingInvitations(int id) + public IObservable GetAllPendingInvitations(long id) { Ensure.ArgumentNotNull(id, nameof(id)); @@ -435,7 +435,7 @@ public IObservable GetAllPendingInvitations(in /// The team identifier /// Options to change API behaviour /// - public IObservable GetAllPendingInvitations(int id, ApiOptions options) + public IObservable GetAllPendingInvitations(long id, ApiOptions options) { Ensure.ArgumentNotNull(id, nameof(id)); Ensure.ArgumentNotNull(options, nameof(options)); diff --git a/Octokit.Reactive/Clients/ObservableUserGpgKeysClient.cs b/Octokit.Reactive/Clients/ObservableUserGpgKeysClient.cs index 55daed8657..f69f53850f 100644 --- a/Octokit.Reactive/Clients/ObservableUserGpgKeysClient.cs +++ b/Octokit.Reactive/Clients/ObservableUserGpgKeysClient.cs @@ -63,7 +63,7 @@ public IObservable GetAllForCurrent(ApiOptions options) /// See the API documentation for more information. /// /// The for the specified Id. - public IObservable Get(int id) + public IObservable Get(long id) { return _client.Get(id).ToObservable(); } @@ -91,7 +91,7 @@ public IObservable Create(NewGpgKey newGpgKey) /// See the API documentation for more information. /// /// - public IObservable Delete(int id) + public IObservable Delete(long id) { return _client.Delete(id).ToObservable(); } diff --git a/Octokit.Reactive/Clients/ObservableUserKeysClient.cs b/Octokit.Reactive/Clients/ObservableUserKeysClient.cs index 8192984291..578e9e0da3 100644 --- a/Octokit.Reactive/Clients/ObservableUserKeysClient.cs +++ b/Octokit.Reactive/Clients/ObservableUserKeysClient.cs @@ -89,7 +89,7 @@ public IObservable GetAllForCurrent(ApiOptions options) /// /// The Id of the SSH key /// View extended details for a single public key. - public IObservable Get(int id) + public IObservable Get(long id) { return _client.Get(id).ToObservable(); } @@ -117,7 +117,7 @@ public IObservable Create(NewPublicKey newKey) /// /// The id of the key to delete /// Removes a public key. - public IObservable Delete(int id) + public IObservable Delete(long id) { return _client.Delete(id).ToObservable(); } diff --git a/Octokit.Tests.Integration/Clients/IssueCommentsClientTests.cs b/Octokit.Tests.Integration/Clients/IssueCommentsClientTests.cs index b9343e46c6..36ebb358d6 100644 --- a/Octokit.Tests.Integration/Clients/IssueCommentsClientTests.cs +++ b/Octokit.Tests.Integration/Clients/IssueCommentsClientTests.cs @@ -16,7 +16,7 @@ public class TheGetMethod const string owner = "octokit"; const string name = "octokit.net"; - const int id = 12067722; + const long id = 12067722; const long repositoryId = 7528679; public TheGetMethod() diff --git a/Octokit.Tests.Integration/Clients/OrganizationHooksClientTests.cs b/Octokit.Tests.Integration/Clients/OrganizationHooksClientTests.cs index 26a6bd6cfe..f6a540f5d7 100644 --- a/Octokit.Tests.Integration/Clients/OrganizationHooksClientTests.cs +++ b/Octokit.Tests.Integration/Clients/OrganizationHooksClientTests.cs @@ -162,7 +162,7 @@ Dictionary CreateExpectedConfigDictionary(Dictionary k.Key, v => v.Value); } - string CreateExpectedBaseHookUrl(string org, int id) + string CreateExpectedBaseHookUrl(string org, long id) { return "https://api.github.com/orgs/" + org + "/hooks/" + id; } diff --git a/Octokit.Tests.Integration/Clients/RepositoryHooksClientTests.cs b/Octokit.Tests.Integration/Clients/RepositoryHooksClientTests.cs index 838d959a92..8db13dd864 100644 --- a/Octokit.Tests.Integration/Clients/RepositoryHooksClientTests.cs +++ b/Octokit.Tests.Integration/Clients/RepositoryHooksClientTests.cs @@ -295,7 +295,7 @@ Dictionary CreateExpectedConfigDictionary(Dictionary k.Key, v => v.Value); } - string CreateExpectedBaseHookUrl(string url, int id) + string CreateExpectedBaseHookUrl(string url, long id) { return url + "/hooks/" + id; } diff --git a/Octokit.Tests/SimpleJsonSerializerTests.cs b/Octokit.Tests/SimpleJsonSerializerTests.cs index 040b7c107a..22c560adfe 100644 --- a/Octokit.Tests/SimpleJsonSerializerTests.cs +++ b/Octokit.Tests/SimpleJsonSerializerTests.cs @@ -481,7 +481,7 @@ public void ShouldDeserializeParentTeamWithNullPermission() public class Sample { - public int Id { get; set; } + public long Id { get; set; } public string FirstName { get; set; } public bool IsSomething { get; set; } public bool Private { get; set; } diff --git a/Octokit/Clients/AuthorizationsClient.cs b/Octokit/Clients/AuthorizationsClient.cs index 03dedf3d1e..2fb9f1a8be 100644 --- a/Octokit/Clients/AuthorizationsClient.cs +++ b/Octokit/Clients/AuthorizationsClient.cs @@ -73,7 +73,7 @@ public Task> GetAll(ApiOptions options) /// Thrown when a general API error occurs. /// The specified . [ManualRoute("GET", "/authorizations/{id}")] - public Task Get(int id) + public Task Get(long id) { return ApiConnection.Get(ApiUrls.Authorizations(id), null); } @@ -426,7 +426,7 @@ public Task RevokeApplicationAuthentication(string clientId, string accessToken) /// Thrown when a general API error occurs. /// The updated . [ManualRoute("PATCH", "/authorizations/{id}")] - public Task Update(int id, AuthorizationUpdate authorizationUpdate) + public Task Update(long id, AuthorizationUpdate authorizationUpdate) { Ensure.ArgumentNotNull(authorizationUpdate, nameof(authorizationUpdate)); @@ -450,7 +450,7 @@ public Task Update(int id, AuthorizationUpdate authorizationUpdat /// Thrown when a general API error occurs. /// A for the request's execution. [ManualRoute("DELETE", "/authorizations/{id}")] - public Task Delete(int id) + public Task Delete(long id) { return ApiConnection.Delete(ApiUrls.Authorizations(id)); } @@ -471,7 +471,7 @@ public Task Delete(int id) /// Thrown when a general API error occurs. /// A for the request's execution. [ManualRoute("DELETE", "/authorizations/{id}")] - public Task Delete(int id, string twoFactorAuthenticationCode) + public Task Delete(long id, string twoFactorAuthenticationCode) { return ApiConnection.Delete(ApiUrls.Authorizations(id), twoFactorAuthenticationCode); } diff --git a/Octokit/Clients/Codespace.cs b/Octokit/Clients/Codespace.cs index e0a3da4ce0..4e78be53ed 100644 --- a/Octokit/Clients/Codespace.cs +++ b/Octokit/Clients/Codespace.cs @@ -8,7 +8,7 @@ namespace Octokit [DebuggerDisplay("{DebuggerDisplay,nq}")] public class Codespace { - public int Id { get; private set; } + public long Id { get; private set; } public string Name { get; private set; } public User Owner { get; private set; } public User BillableOwner { get; private set; } @@ -24,7 +24,7 @@ public class Codespace public string StartUrl { get; private set; } public string StopUrl { get; private set; } - public Codespace(int id, string name, User owner, User billableOwner, Repository repository, Machine machine, DateTime createdAt, DateTime updatedAt, DateTime lastUsedAt, StringEnum state, string url, string machinesUrl, string webUrl, string startUrl, string stopUrl) + public Codespace(long id, string name, User owner, User billableOwner, Repository repository, Machine machine, DateTime createdAt, DateTime updatedAt, DateTime lastUsedAt, StringEnum state, string url, string machinesUrl, string webUrl, string startUrl, string stopUrl) { Id = id; Name = name; diff --git a/Octokit/Clients/IAuthorizationsClient.cs b/Octokit/Clients/IAuthorizationsClient.cs index e3f08b47ca..7c18a1e5a7 100644 --- a/Octokit/Clients/IAuthorizationsClient.cs +++ b/Octokit/Clients/IAuthorizationsClient.cs @@ -61,7 +61,7 @@ public interface IAuthorizationsClient /// The specified . [SuppressMessage("Microsoft.Naming", "CA1716:IdentifiersShouldNotMatchKeywords", MessageId = "Get", Justification = "It's fiiiine. It's fine. Trust us.")] - Task Get(int id); + Task Get(long id); /// /// Creates a new personal token for the authenticated user. @@ -251,7 +251,7 @@ Task GetOrCreateApplicationAuthentication( /// /// Thrown when a general API error occurs. /// The updated . - Task Update(int id, AuthorizationUpdate authorizationUpdate); + Task Update(long id, AuthorizationUpdate authorizationUpdate); /// /// Deletes the specified . @@ -267,7 +267,7 @@ Task GetOrCreateApplicationAuthentication( /// /// Thrown when a general API error occurs. /// A for the request's execution. - Task Delete(int id); + Task Delete(long id); /// /// Deletes the specified . @@ -284,6 +284,6 @@ Task GetOrCreateApplicationAuthentication( /// /// Thrown when a general API error occurs. /// A for the request's execution. - Task Delete(int id, string twoFactorAuthenticationCode); + Task Delete(long id, string twoFactorAuthenticationCode); } } diff --git a/Octokit/Clients/IIssueCommentsClient.cs b/Octokit/Clients/IIssueCommentsClient.cs index bd1a05e93d..68dca5ef32 100644 --- a/Octokit/Clients/IIssueCommentsClient.cs +++ b/Octokit/Clients/IIssueCommentsClient.cs @@ -21,7 +21,7 @@ public interface IIssueCommentsClient /// The issue comment id [SuppressMessage("Microsoft.Naming", "CA1716:IdentifiersShouldNotMatchKeywords", MessageId = "Get", Justification = "Method makes a network request")] - Task Get(string owner, string name, int id); + Task Get(string owner, string name, long id); /// /// Gets a single Issue Comment by id. @@ -31,7 +31,7 @@ public interface IIssueCommentsClient /// The issue comment id [SuppressMessage("Microsoft.Naming", "CA1716:IdentifiersShouldNotMatchKeywords", MessageId = "Get", Justification = "Method makes a network request")] - Task Get(long repositoryId, int id); + Task Get(long repositoryId, long id); /// /// Gets Issue Comments for a repository. @@ -204,7 +204,7 @@ public interface IIssueCommentsClient /// The name of the repository /// The comment id /// The modified comment - Task Update(string owner, string name, int id, string commentUpdate); + Task Update(string owner, string name, long id, string commentUpdate); /// /// Updates a specified Issue Comment. @@ -213,7 +213,7 @@ public interface IIssueCommentsClient /// The Id of the repository /// The comment id /// The modified comment - Task Update(long repositoryId, int id, string commentUpdate); + Task Update(long repositoryId, long id, string commentUpdate); /// /// Deletes the specified Issue Comment @@ -222,7 +222,7 @@ public interface IIssueCommentsClient /// The owner of the repository /// The name of the repository /// The comment id - Task Delete(string owner, string name, int id); + Task Delete(string owner, string name, long id); /// /// Deletes the specified Issue Comment @@ -230,6 +230,6 @@ public interface IIssueCommentsClient /// http://developer.github.com/v3/issues/comments/#delete-a-comment /// The Id of the repository /// The comment id - Task Delete(long repositoryId, int id); + Task Delete(long repositoryId, long id); } } diff --git a/Octokit/Clients/IMigrationsClient.cs b/Octokit/Clients/IMigrationsClient.cs index cbc6de80f7..96a3b7957b 100644 --- a/Octokit/Clients/IMigrationsClient.cs +++ b/Octokit/Clients/IMigrationsClient.cs @@ -63,7 +63,7 @@ Task> GetAll( [SuppressMessage("Microsoft.Naming", "CA1716:IdentifiersShouldNotMatchKeywords", MessageId = "Get")] Task Get( string org, - int id); + long id); /// /// Get the migration archive. @@ -76,7 +76,7 @@ Task Get( /// The binary contents of the archive as a byte array. Task GetArchive( string org, - int id); + long id); /// /// Deletes a previous migration archive. @@ -89,7 +89,7 @@ Task GetArchive( /// Task DeleteArchive( string org, - int id); + long id); /// /// Unlocks a repository that was locked for migration. @@ -103,7 +103,7 @@ Task DeleteArchive( /// Task UnlockRepository( string org, - int id, + long id, string repo); } } diff --git a/Octokit/Clients/INotificationsClient.cs b/Octokit/Clients/INotificationsClient.cs index 7d1c410b77..a27be7ef11 100644 --- a/Octokit/Clients/INotificationsClient.cs +++ b/Octokit/Clients/INotificationsClient.cs @@ -163,21 +163,21 @@ public interface INotificationsClient /// The Id of the notification to retrieve. /// http://developer.github.com/v3/activity/notifications/#view-a-single-thread [SuppressMessage("Microsoft.Naming", "CA1716:IdentifiersShouldNotMatchKeywords", MessageId = "Get")] - Task Get(int id); + Task Get(long id); /// /// Marks a single notification as read. /// /// The id of the notification. /// http://developer.github.com/v3/activity/notifications/#mark-a-thread-as-read - Task MarkAsRead(int id); + Task MarkAsRead(long id); /// /// Retrives a for the provided thread id. /// /// The Id of the thread to retrieve subscription status. /// http://developer.github.com/v3/activity/notifications/#get-a-thread-subscription - Task GetThreadSubscription(int id); + Task GetThreadSubscription(long id); /// /// Sets the authenticated user's subscription settings for a given thread. @@ -185,13 +185,13 @@ public interface INotificationsClient /// The Id of the thread to update. /// The subscription parameters to set. /// http://developer.github.com/v3/activity/notifications/#set-a-thread-subscription - Task SetThreadSubscription(int id, NewThreadSubscription threadSubscription); + Task SetThreadSubscription(long id, NewThreadSubscription threadSubscription); /// /// Deletes the authenticated user's subscription to a given thread. /// /// The Id of the thread to delete subscription from. /// http://developer.github.com/v3/activity/notifications/#delete-a-thread-subscription - Task DeleteThreadSubscription(int id); + Task DeleteThreadSubscription(long id); } } diff --git a/Octokit/Clients/IProjectCardsClient.cs b/Octokit/Clients/IProjectCardsClient.cs index f119de634d..c135fb5f91 100644 --- a/Octokit/Clients/IProjectCardsClient.cs +++ b/Octokit/Clients/IProjectCardsClient.cs @@ -60,7 +60,7 @@ public interface IProjectCardsClient /// /// The id of the card [SuppressMessage("Microsoft.Naming", "CA1716:IdentifiersShouldNotMatchKeywords", MessageId = "Get")] - Task Get(int id); + Task Get(long id); /// /// Creates a card. @@ -80,7 +80,7 @@ public interface IProjectCardsClient /// /// The id of the card /// New values to update the card with - Task Update(int id, ProjectCardUpdate projectCardUpdate); + Task Update(long id, ProjectCardUpdate projectCardUpdate); /// /// Deletes a card. @@ -89,7 +89,7 @@ public interface IProjectCardsClient /// See the API documentation for more information. /// /// The id of the card - Task Delete(int id); + Task Delete(long id); /// /// Moves a card. @@ -99,6 +99,6 @@ public interface IProjectCardsClient /// /// The id of the card /// The position to move the card - Task Move(int id, ProjectCardMove position); + Task Move(long id, ProjectCardMove position); } } diff --git a/Octokit/Clients/IProjectColumnsClient.cs b/Octokit/Clients/IProjectColumnsClient.cs index bd9ca8bcfc..e7aae3f14a 100644 --- a/Octokit/Clients/IProjectColumnsClient.cs +++ b/Octokit/Clients/IProjectColumnsClient.cs @@ -39,7 +39,7 @@ public interface IProjectColumnsClient /// /// The id of the column [SuppressMessage("Microsoft.Naming", "CA1716:IdentifiersShouldNotMatchKeywords", MessageId = "Get")] - Task Get(int id); + Task Get(long id); /// /// Creates a column. @@ -59,7 +59,7 @@ public interface IProjectColumnsClient /// /// The id of the column /// New values to update the column with - Task Update(int id, ProjectColumnUpdate projectColumnUpdate); + Task Update(long id, ProjectColumnUpdate projectColumnUpdate); /// /// Deletes a column. @@ -68,7 +68,7 @@ public interface IProjectColumnsClient /// See the API documentation for more information. /// /// The id of the column - Task Delete(int id); + Task Delete(long id); /// /// Moves a column. @@ -78,6 +78,6 @@ public interface IProjectColumnsClient /// /// The id of the column /// The position to move the column - Task Move(int id, ProjectColumnMove position); + Task Move(long id, ProjectColumnMove position); } } diff --git a/Octokit/Clients/IProjectsClient.cs b/Octokit/Clients/IProjectsClient.cs index 5a56a406d6..f75dad9a3d 100644 --- a/Octokit/Clients/IProjectsClient.cs +++ b/Octokit/Clients/IProjectsClient.cs @@ -144,7 +144,7 @@ public interface IProjectsClient /// /// The Id of the project [SuppressMessage("Microsoft.Naming", "CA1716:IdentifiersShouldNotMatchKeywords", MessageId = "Get")] - Task Get(int id); + Task Get(long id); /// /// Creates a project for this repository. @@ -174,7 +174,7 @@ public interface IProjectsClient /// /// The Id of the project /// The modified project - Task Update(int id, ProjectUpdate projectUpdate); + Task Update(long id, ProjectUpdate projectUpdate); /// /// Deletes a project. @@ -183,7 +183,7 @@ public interface IProjectsClient /// See the API documentation for more information. /// /// The Id of the project - Task Delete(int id); + Task Delete(long id); /// /// A client for GitHub's Project Cards API. diff --git a/Octokit/Clients/IReleasesClient.cs b/Octokit/Clients/IReleasesClient.cs index 874fa77935..1e56dc3618 100644 --- a/Octokit/Clients/IReleasesClient.cs +++ b/Octokit/Clients/IReleasesClient.cs @@ -90,7 +90,7 @@ public interface IReleasesClient /// The repository's name /// The id of the release /// Thrown when a general API error occurs. - Task Get(string owner, string name, int id); + Task Get(string owner, string name, long id); /// /// Gets a single for the specified repository. @@ -113,7 +113,7 @@ public interface IReleasesClient /// The Id of the repository /// The id of the release /// Thrown when a general API error occurs. - Task Get(long repositoryId, int id); + Task Get(long repositoryId, long id); /// /// Gets a single for the specified repository. @@ -181,7 +181,7 @@ public interface IReleasesClient /// The id of the release /// A description of the release to edit /// Thrown when a general API error occurs. - Task Edit(string owner, string name, int id, ReleaseUpdate data); + Task Edit(string owner, string name, long id, ReleaseUpdate data); /// /// Edits an existing for the specified repository. @@ -193,7 +193,7 @@ public interface IReleasesClient /// The id of the release /// A description of the release to edit /// Thrown when a general API error occurs. - Task Edit(long repositoryId, int id, ReleaseUpdate data); + Task Edit(long repositoryId, long id, ReleaseUpdate data); /// /// Deletes an existing for the specified repository. @@ -205,7 +205,7 @@ public interface IReleasesClient /// The repository's name /// The id of the release to delete /// Thrown when a general API error occurs. - Task Delete(string owner, string name, int id); + Task Delete(string owner, string name, long id); /// /// Deletes an existing for the specified repository. @@ -216,7 +216,7 @@ public interface IReleasesClient /// The Id of the repository /// The id of the release to delete /// Thrown when a general API error occurs. - Task Delete(long repositoryId, int id); + Task Delete(long repositoryId, long id); /// /// Gets all for the specified release of the specified repository. @@ -228,7 +228,7 @@ public interface IReleasesClient /// The repository's name /// The id of the . /// Thrown when a general API error occurs. - Task> GetAllAssets(string owner, string name, int id); + Task> GetAllAssets(string owner, string name, long id); /// /// Gets all for the specified release of the specified repository. @@ -239,7 +239,7 @@ public interface IReleasesClient /// The Id of the repository /// The id of the . /// Thrown when a general API error occurs. - Task> GetAllAssets(long repositoryId, int id); + Task> GetAllAssets(long repositoryId, long id); /// /// Gets all for the specified release of the specified repository. @@ -252,7 +252,7 @@ public interface IReleasesClient /// The id of the . /// Options for changing the API response /// Thrown when a general API error occurs. - Task> GetAllAssets(string owner, string name, int id, ApiOptions options); + Task> GetAllAssets(string owner, string name, long id, ApiOptions options); /// /// Gets all for the specified release of the specified repository. @@ -264,7 +264,7 @@ public interface IReleasesClient /// The id of the . /// Options for changing the API response /// Thrown when a general API error occurs. - Task> GetAllAssets(long repositoryId, int id, ApiOptions options); + Task> GetAllAssets(long repositoryId, long id, ApiOptions options); /// /// Uploads a for the specified release. @@ -331,7 +331,7 @@ public interface IReleasesClient /// The repository's owner /// The repository's name /// The id of the . - Task DeleteAsset(string owner, string name, int id); + Task DeleteAsset(string owner, string name, long id); /// /// Deletes the specified from the specified repository @@ -341,6 +341,6 @@ public interface IReleasesClient /// /// The Id of the repository /// The id of the . - Task DeleteAsset(long repositoryId, int id); + Task DeleteAsset(long repositoryId, long id); } } diff --git a/Octokit/Clients/ITeamsClient.cs b/Octokit/Clients/ITeamsClient.cs index 790d53cb04..f3173fb230 100644 --- a/Octokit/Clients/ITeamsClient.cs +++ b/Octokit/Clients/ITeamsClient.cs @@ -23,7 +23,7 @@ public interface ITeamsClient /// The with the given identifier. [SuppressMessage("Microsoft.Naming", "CA1716:IdentifiersShouldNotMatchKeywords", MessageId = "Get", Justification = "Method makes a network request")] - Task Get(int id); + Task Get(long id); /// /// Returns all s for the current org. @@ -66,7 +66,7 @@ public interface ITeamsClient /// https://developer.github.com/v3/orgs/teams/#list-child-teams /// /// The team identifier - Task> GetAllChildTeams(int id); + Task> GetAllChildTeams(long id); /// /// Returns all child teams of the given team. @@ -76,7 +76,7 @@ public interface ITeamsClient /// /// The team identifier /// Options to change API behaviour. - Task> GetAllChildTeams(int id, ApiOptions options); + Task> GetAllChildTeams(long id, ApiOptions options); /// /// Returns all members of the given team. @@ -85,7 +85,7 @@ public interface ITeamsClient /// https://developer.github.com/v3/orgs/teams/#list-team-members /// /// The team identifier - Task> GetAllMembers(int id); + Task> GetAllMembers(long id); /// /// Returns all members of the given team. @@ -95,7 +95,7 @@ public interface ITeamsClient /// /// The team identifier /// Options to change API behaviour. - Task> GetAllMembers(int id, ApiOptions options); + Task> GetAllMembers(long id, ApiOptions options); /// /// Returns all members with the specified role in the given team of the given role. @@ -105,7 +105,7 @@ public interface ITeamsClient /// /// The team identifier /// The request filter - Task> GetAllMembers(int id, TeamMembersRequest request); + Task> GetAllMembers(long id, TeamMembersRequest request); /// /// Returns all members with the specified role in the given team of the given role. @@ -116,7 +116,7 @@ public interface ITeamsClient /// The team identifier /// The request filter /// Options to change API behaviour. - Task> GetAllMembers(int id, TeamMembersRequest request, ApiOptions options); + Task> GetAllMembers(long id, TeamMembersRequest request, ApiOptions options); /// /// Returns newly created for the current org. @@ -148,7 +148,7 @@ public interface ITeamsClient /// /// Thrown when a general API error occurs. /// Updated - Task Update(int id, UpdateTeam team); + Task Update(long id, UpdateTeam team); /// /// To delete a team, the authenticated user must be an organization owner or team maintainer. @@ -175,7 +175,7 @@ public interface ITeamsClient /// The unique identifier of the team. /// Thrown when a general API error occurs. /// - Task Delete(int id); + Task Delete(long id); /// /// Adds a to a . @@ -186,7 +186,7 @@ public interface ITeamsClient /// The team identifier. /// The user to add to the team. /// Additional parameters for the request - Task AddOrEditMembership(int id, string login, UpdateTeamMembership request); + Task AddOrEditMembership(long id, string login, UpdateTeamMembership request); /// /// Removes a from a . @@ -197,7 +197,7 @@ public interface ITeamsClient /// The team identifier. /// The user to remove from the team. /// if the user was removed from the team; otherwise. - Task RemoveMembership(int id, string login); + Task RemoveMembership(long id, string login); /// /// Gets whether the user with the given @@ -209,7 +209,7 @@ public interface ITeamsClient /// /// The team to check. /// The user to check. - Task GetMembershipDetails(int id, string login); + Task GetMembershipDetails(long id, string login); /// /// Returns all team's repositories. @@ -217,7 +217,7 @@ public interface ITeamsClient /// Team Id to list repos. /// Thrown when a general API error occurs. /// The team's repositories - Task> GetAllRepositories(int id); + Task> GetAllRepositories(long id); /// /// Returns all team's repositories. @@ -226,14 +226,14 @@ public interface ITeamsClient /// Options to change API behaviour. /// Thrown when a general API error occurs. /// The team's repositories - Task> GetAllRepositories(int id, ApiOptions options); + Task> GetAllRepositories(long id, ApiOptions options); /// /// Add a repository to the team /// /// Thrown when a general API error occurs. /// - Task AddRepository(int id, string organization, string repoName); + Task AddRepository(long id, string organization, string repoName); /// /// Add a repository to the team @@ -244,14 +244,14 @@ public interface ITeamsClient /// The permission to grant the team on this repository. /// Thrown when a general API error occurs. /// - Task AddRepository(int id, string organization, string repoName, RepositoryPermissionRequest permission); + Task AddRepository(long id, string organization, string repoName, RepositoryPermissionRequest permission); /// /// Remove a repository from the team /// /// Thrown when a general API error occurs. /// - Task RemoveRepository(int id, string organization, string repoName); + Task RemoveRepository(long id, string organization, string repoName); /// /// Gets whether or not the given repository is managed by the given team. @@ -263,7 +263,7 @@ public interface ITeamsClient /// See the API documentation for more information. /// /// if the repository is managed by the given team; otherwise. - Task IsRepositoryManagedByTeam(int id, string owner, string repo); + Task IsRepositoryManagedByTeam(long id, string owner, string repo); /// /// List all pending invitations for the given team. @@ -274,7 +274,7 @@ public interface ITeamsClient /// /// The team identifier /// - Task> GetAllPendingInvitations(int id); + Task> GetAllPendingInvitations(long id); /// /// List all pending invitations for the given team. @@ -286,7 +286,7 @@ public interface ITeamsClient /// The team identifier /// Options to change API behaviour. /// - Task> GetAllPendingInvitations(int id, ApiOptions options); + Task> GetAllPendingInvitations(long id, ApiOptions options); /// /// Checks whether a team has admin, push, maintain, triage, or pull permission for a repository. diff --git a/Octokit/Clients/IUserGpgKeysClient.cs b/Octokit/Clients/IUserGpgKeysClient.cs index 07adc6f93e..33d92dea74 100644 --- a/Octokit/Clients/IUserGpgKeysClient.cs +++ b/Octokit/Clients/IUserGpgKeysClient.cs @@ -45,7 +45,7 @@ public interface IUserGpgKeysClient /// The for the specified Id. [SuppressMessage("Microsoft.Naming", "CA1716:IdentifiersShouldNotMatchKeywords", MessageId = "Get", Justification = "Method makes a network request")] - Task Get(int id); + Task Get(long id); /// /// Creates a new for the authenticated user. @@ -66,6 +66,6 @@ public interface IUserGpgKeysClient /// See the API documentation for more information. /// /// - Task Delete(int id); + Task Delete(long id); } } diff --git a/Octokit/Clients/IUserKeysClient.cs b/Octokit/Clients/IUserKeysClient.cs index 65ba7fcb91..164bc46663 100644 --- a/Octokit/Clients/IUserKeysClient.cs +++ b/Octokit/Clients/IUserKeysClient.cs @@ -63,7 +63,7 @@ public interface IUserKeysClient /// The Id of the SSH key /// View extended details for a single public key. [SuppressMessage("Microsoft.Naming", "CA1716:IdentifiersShouldNotMatchKeywords", MessageId = "Get")] - Task Get(int id); + Task Get(long id); /// /// Create a public key . @@ -83,6 +83,6 @@ public interface IUserKeysClient /// /// The id of the key to delete /// Removes a public key. - Task Delete(int id); + Task Delete(long id); } } diff --git a/Octokit/Clients/IssueCommentsClient.cs b/Octokit/Clients/IssueCommentsClient.cs index 39bfa0d963..78e339cbe0 100644 --- a/Octokit/Clients/IssueCommentsClient.cs +++ b/Octokit/Clients/IssueCommentsClient.cs @@ -27,7 +27,7 @@ public IssueCommentsClient(IApiConnection apiConnection) : base(apiConnection) /// The name of the repository /// The issue comment id [ManualRoute("GET", "/repos/{owner}/{repo}/issues/comments/{comment_id}")] - public Task Get(string owner, string name, int id) + public Task Get(string owner, string name, long id) { Ensure.ArgumentNotNullOrEmptyString(owner, nameof(owner)); Ensure.ArgumentNotNullOrEmptyString(name, nameof(name)); @@ -42,7 +42,7 @@ public Task Get(string owner, string name, int id) /// The Id of the repository /// The issue comment id [ManualRoute("GET", "/repositories/{id}/issues/comments/{comment_id}")] - public Task Get(long repositoryId, int id) + public Task Get(long repositoryId, long id) { return ApiConnection.Get(ApiUrls.IssueComment(repositoryId, id), null); } @@ -343,7 +343,7 @@ public Task Create(long repositoryId, int number, string newCommen /// The comment id /// The modified comment [ManualRoute("PATCH", "/repos/{owner}/{repo}/issues/comments/{id}")] - public Task Update(string owner, string name, int id, string commentUpdate) + public Task Update(string owner, string name, long id, string commentUpdate) { Ensure.ArgumentNotNullOrEmptyString(owner, nameof(owner)); Ensure.ArgumentNotNullOrEmptyString(name, nameof(name)); @@ -360,7 +360,7 @@ public Task Update(string owner, string name, int id, string comme /// The comment id /// The modified comment [ManualRoute("PATCH", "/repositories/{id}/issues/comments/{number}")] - public Task Update(long repositoryId, int id, string commentUpdate) + public Task Update(long repositoryId, long id, string commentUpdate) { Ensure.ArgumentNotNull(commentUpdate, nameof(commentUpdate)); @@ -375,7 +375,7 @@ public Task Update(long repositoryId, int id, string commentUpdate /// The name of the repository /// The comment id [ManualRoute("DELETE", "/repos/{owner}/{repo}/issues/comments/{id}")] - public Task Delete(string owner, string name, int id) + public Task Delete(string owner, string name, long id) { Ensure.ArgumentNotNullOrEmptyString(owner, nameof(owner)); Ensure.ArgumentNotNullOrEmptyString(name, nameof(name)); @@ -390,7 +390,7 @@ public Task Delete(string owner, string name, int id) /// The Id of the repository /// The comment id [ManualRoute("DELETE", "/repositories/{id}/issues/comments/{number}")] - public Task Delete(long repositoryId, int id) + public Task Delete(long repositoryId, long id) { return ApiConnection.Delete(ApiUrls.IssueComment(repositoryId, id)); } diff --git a/Octokit/Clients/MigrationsClient.cs b/Octokit/Clients/MigrationsClient.cs index 6fa99bcd1b..bcce3959fb 100644 --- a/Octokit/Clients/MigrationsClient.cs +++ b/Octokit/Clients/MigrationsClient.cs @@ -85,7 +85,7 @@ public async Task> GetAll(string org, ApiOptions option /// Migration Id of the organization. /// A object representing the state of migration. [ManualRoute("GET", "/orgs/{org}/migrations/{id}")] - public async Task Get(string org, int id) + public async Task Get(string org, long id) { Ensure.ArgumentNotNullOrEmptyString(org, nameof(org)); @@ -104,7 +104,7 @@ public async Task Get(string org, int id) /// The Id of the migration. /// The binary contents of the archive as a byte array. [ManualRoute("GET", "/orgs/{org}/migrations/{id}/archive")] - public async Task GetArchive(string org, int id) + public async Task GetArchive(string org, long id) { Ensure.ArgumentNotNullOrEmptyString(org, nameof(org)); @@ -124,7 +124,7 @@ public async Task GetArchive(string org, int id) /// The Id of the migration. /// [ManualRoute("DELETE", "/orgs/{org}/migrations/{id}/archive")] - public Task DeleteArchive(string org, int id) + public Task DeleteArchive(string org, long id) { Ensure.ArgumentNotNullOrEmptyString(org, nameof(org)); @@ -144,7 +144,7 @@ public Task DeleteArchive(string org, int id) /// The repo to unlock. /// [ManualRoute("GET", "/orgs/{org}/migrations/{id}/repos/{name}/lock")] - public Task UnlockRepository(string org, int id, string repo) + public Task UnlockRepository(string org, long id, string repo) { Ensure.ArgumentNotNullOrEmptyString(org, nameof(org)); Ensure.ArgumentNotNullOrEmptyString(repo, nameof(repo)); diff --git a/Octokit/Clients/NotificationsClient.cs b/Octokit/Clients/NotificationsClient.cs index d2816b8662..01816b4915 100644 --- a/Octokit/Clients/NotificationsClient.cs +++ b/Octokit/Clients/NotificationsClient.cs @@ -279,7 +279,7 @@ public Task MarkAsReadForRepository(long repositoryId, MarkAsReadRequest markAsR /// The Id of the notification to retrieve. /// http://developer.github.com/v3/activity/notifications/#view-a-single-thread [ManualRoute("GET", "/notifications/threads/{thread_id}")] - public Task Get(int id) + public Task Get(long id) { return ApiConnection.Get(ApiUrls.Notification(id)); } @@ -290,7 +290,7 @@ public Task Get(int id) /// The id of the notification. /// http://developer.github.com/v3/activity/notifications/#mark-a-thread-as-read [ManualRoute("PATCH", "/notifications/threads/{thread_id}")] - public Task MarkAsRead(int id) + public Task MarkAsRead(long id) { return ApiConnection.Patch(ApiUrls.Notification(id)); } @@ -301,7 +301,7 @@ public Task MarkAsRead(int id) /// The Id of the thread to retrieve subscription status. /// http://developer.github.com/v3/activity/notifications/#get-a-thread-subscription [ManualRoute("GET", "/notifications/threads/{thread_id}/subscription")] - public Task GetThreadSubscription(int id) + public Task GetThreadSubscription(long id) { return ApiConnection.Get(ApiUrls.NotificationSubscription(id)); } @@ -313,7 +313,7 @@ public Task GetThreadSubscription(int id) /// The subscription parameters to set. /// http://developer.github.com/v3/activity/notifications/#set-a-thread-subscription [ManualRoute("PUT", "/notifications/threads/{thread_id}/subscription")] - public Task SetThreadSubscription(int id, NewThreadSubscription threadSubscription) + public Task SetThreadSubscription(long id, NewThreadSubscription threadSubscription) { Ensure.ArgumentNotNull(threadSubscription, nameof(threadSubscription)); @@ -326,7 +326,7 @@ public Task SetThreadSubscription(int id, NewThreadSubscript /// The Id of the thread to delete subscription from. /// http://developer.github.com/v3/activity/notifications/#delete-a-thread-subscription [ManualRoute("DELETE", "/notifications/threads/{thread_id}/subscription")] - public Task DeleteThreadSubscription(int id) + public Task DeleteThreadSubscription(long id) { return ApiConnection.Delete(ApiUrls.NotificationSubscription(id)); } diff --git a/Octokit/Clients/ProjectCardsClient.cs b/Octokit/Clients/ProjectCardsClient.cs index 0b3cb81f37..0931021fa1 100644 --- a/Octokit/Clients/ProjectCardsClient.cs +++ b/Octokit/Clients/ProjectCardsClient.cs @@ -88,7 +88,7 @@ public Task> GetAll(int columnId, ProjectCardRequest /// /// The id of the card [ManualRoute("GET", "/projects/columns/cards/{card_id}")] - public Task Get(int id) + public Task Get(long id) { return ApiConnection.Get(ApiUrls.ProjectCard(id), null); } @@ -118,7 +118,7 @@ public Task Create(int columnId, NewProjectCard newProjectCard) /// The id of the card /// New values to update the card with [ManualRoute("GET", "/projects/columns/cards/{card_id}")] - public Task Update(int id, ProjectCardUpdate projectCardUpdate) + public Task Update(long id, ProjectCardUpdate projectCardUpdate) { Ensure.ArgumentNotNull(projectCardUpdate, nameof(projectCardUpdate)); @@ -133,7 +133,7 @@ public Task Update(int id, ProjectCardUpdate projectCardUpdate) /// /// The id of the card [ManualRoute("DELETE", "/projects/columns/cards/{card_id}")] - public async Task Delete(int id) + public async Task Delete(long id) { var endpoint = ApiUrls.ProjectCard(id); @@ -157,7 +157,7 @@ public async Task Delete(int id) /// The id of the card /// The position to move the card [ManualRoute("POST", "/projects/columns/cards/{card_id}/moves")] - public async Task Move(int id, ProjectCardMove position) + public async Task Move(long id, ProjectCardMove position) { Ensure.ArgumentNotNull(position, nameof(position)); diff --git a/Octokit/Clients/ProjectColumnsClient.cs b/Octokit/Clients/ProjectColumnsClient.cs index 5dce16f23f..2fc63b054a 100644 --- a/Octokit/Clients/ProjectColumnsClient.cs +++ b/Octokit/Clients/ProjectColumnsClient.cs @@ -54,7 +54,7 @@ public Task> GetAll(int projectId, ApiOptions optio /// /// The id of the column [ManualRoute("GET", "/projects/columns/{column_id}")] - public Task Get(int id) + public Task Get(long id) { return ApiConnection.Get(ApiUrls.ProjectColumn(id), null); } @@ -84,7 +84,7 @@ public Task Create(int projectId, NewProjectColumn newProjectColu /// The id of the column /// New values to update the column with [ManualRoute("PATCH", "/projects/columns/{column_id}")] - public Task Update(int id, ProjectColumnUpdate projectColumnUpdate) + public Task Update(long id, ProjectColumnUpdate projectColumnUpdate) { Ensure.ArgumentNotNull(projectColumnUpdate, nameof(projectColumnUpdate)); @@ -99,7 +99,7 @@ public Task Update(int id, ProjectColumnUpdate projectColumnUpdat /// /// The id of the column [ManualRoute("DELETE", "/projects/columns/{column_id}")] - public async Task Delete(int id) + public async Task Delete(long id) { var endpoint = ApiUrls.ProjectColumn(id); try @@ -122,7 +122,7 @@ public async Task Delete(int id) /// The id of the column /// The position to move the column [ManualRoute("POST", "/projects/columns/{column_id}/moves")] - public async Task Move(int id, ProjectColumnMove position) + public async Task Move(long id, ProjectColumnMove position) { Ensure.ArgumentNotNull(position, nameof(position)); diff --git a/Octokit/Clients/ProjectsClient.cs b/Octokit/Clients/ProjectsClient.cs index c7b30ec3ca..11c951f21c 100644 --- a/Octokit/Clients/ProjectsClient.cs +++ b/Octokit/Clients/ProjectsClient.cs @@ -225,7 +225,7 @@ public Task> GetAllForOrganization(string organization, P /// /// The Id of the project [ManualRoute("GET", "/projects/{project_id}")] - public Task Get(int id) + public Task Get(long id) { return ApiConnection.Get(ApiUrls.Project(id), null); } @@ -275,7 +275,7 @@ public Task CreateForOrganization(string organization, NewProject newPr /// The Id of the project /// The modified project [ManualRoute("PATCH", "/project/{project_id}")] - public Task Update(int id, ProjectUpdate projectUpdate) + public Task Update(long id, ProjectUpdate projectUpdate) { Ensure.ArgumentNotNull(projectUpdate, nameof(projectUpdate)); @@ -290,7 +290,7 @@ public Task Update(int id, ProjectUpdate projectUpdate) /// /// The Id of the project [ManualRoute("DELETE", "/project/{project_id}")] - public async Task Delete(int id) + public async Task Delete(long id) { var endpoint = ApiUrls.Project(id); diff --git a/Octokit/Clients/ReleasesClient.cs b/Octokit/Clients/ReleasesClient.cs index 0ab33084ec..7cdb5f5608 100644 --- a/Octokit/Clients/ReleasesClient.cs +++ b/Octokit/Clients/ReleasesClient.cs @@ -141,7 +141,7 @@ public Task> GetAll(long repositoryId, ApiOptions options /// The id of the release /// Thrown when a general API error occurs. [ManualRoute("GET", "/repos/{owner}/{repo}/releases/{release_id}")] - public Task Get(string owner, string name, int id) + public Task Get(string owner, string name, long id) { Ensure.ArgumentNotNullOrEmptyString(owner, nameof(owner)); Ensure.ArgumentNotNullOrEmptyString(name, nameof(name)); @@ -181,7 +181,7 @@ public Task Get(string owner, string name, string tag) /// The id of the release /// Thrown when a general API error occurs. [ManualRoute("GET", "/repositories/{id}/releases/{id}")] - public Task Get(long repositoryId, int id) + public Task Get(long repositoryId, long id) { var endpoint = ApiUrls.Releases(repositoryId, id); return ApiConnection.Get(endpoint); @@ -290,7 +290,7 @@ public Task Create(long repositoryId, NewRelease data) /// A description of the release to edit /// Thrown when a general API error occurs. [ManualRoute("PATCH", "/repos/{owner}/{repo}/releases/{release_id}")] - public Task Edit(string owner, string name, int id, ReleaseUpdate data) + public Task Edit(string owner, string name, long id, ReleaseUpdate data) { Ensure.ArgumentNotNullOrEmptyString(owner, nameof(owner)); Ensure.ArgumentNotNullOrEmptyString(name, nameof(name)); @@ -311,7 +311,7 @@ public Task Edit(string owner, string name, int id, ReleaseUpdate data) /// A description of the release to edit /// Thrown when a general API error occurs. [ManualRoute("PATCH", "/repositories/{id}/releases/{id}")] - public Task Edit(long repositoryId, int id, ReleaseUpdate data) + public Task Edit(long repositoryId, long id, ReleaseUpdate data) { Ensure.ArgumentNotNull(data, nameof(data)); @@ -330,7 +330,7 @@ public Task Edit(long repositoryId, int id, ReleaseUpdate data) /// The id of the release to delete /// Thrown when a general API error occurs. [ManualRoute("DELETE", "/repos/{owner}/{repo}/releases/{release_id}")] - public Task Delete(string owner, string name, int id) + public Task Delete(string owner, string name, long id) { Ensure.ArgumentNotNullOrEmptyString(owner, nameof(owner)); Ensure.ArgumentNotNullOrEmptyString(name, nameof(name)); @@ -349,7 +349,7 @@ public Task Delete(string owner, string name, int id) /// The id of the release to delete /// Thrown when a general API error occurs. [ManualRoute("DELETE", "/repositories/{id}/releases/{id}")] - public Task Delete(long repositoryId, int id) + public Task Delete(long repositoryId, long id) { var endpoint = ApiUrls.Releases(repositoryId, id); return ApiConnection.Delete(endpoint); @@ -366,7 +366,7 @@ public Task Delete(long repositoryId, int id) /// The id of the . /// Thrown when a general API error occurs. [ManualRoute("GET", "/repos/{owner}/{repo}/releases/{release_id}/assets")] - public Task> GetAllAssets(string owner, string name, int id) + public Task> GetAllAssets(string owner, string name, long id) { Ensure.ArgumentNotNullOrEmptyString(owner, nameof(owner)); Ensure.ArgumentNotNullOrEmptyString(name, nameof(name)); @@ -384,7 +384,7 @@ public Task> GetAllAssets(string owner, string name, /// The id of the . /// Thrown when a general API error occurs. [ManualRoute("GET", "/repositories/{id}/releases/{id}/assets")] - public Task> GetAllAssets(long repositoryId, int id) + public Task> GetAllAssets(long repositoryId, long id) { return GetAllAssets(repositoryId, id, ApiOptions.None); } @@ -401,7 +401,7 @@ public Task> GetAllAssets(long repositoryId, int id) /// Options for changing the API response /// Thrown when a general API error occurs. [ManualRoute("GET", "/repos/{owner}/{repo}/releases/{release_id}/assets")] - public Task> GetAllAssets(string owner, string name, int id, ApiOptions options) + public Task> GetAllAssets(string owner, string name, long id, ApiOptions options) { Ensure.ArgumentNotNullOrEmptyString(owner, nameof(owner)); Ensure.ArgumentNotNullOrEmptyString(name, nameof(name)); @@ -422,7 +422,7 @@ public Task> GetAllAssets(string owner, string name, /// Options for changing the API response /// Thrown when a general API error occurs. [ManualRoute("GET", "/repositories/{id}/releases/{id}/assets")] - public Task> GetAllAssets(long repositoryId, int id, ApiOptions options) + public Task> GetAllAssets(long repositoryId, long id, ApiOptions options) { Ensure.ArgumentNotNull(options, nameof(options)); @@ -550,7 +550,7 @@ public Task EditAsset(long repositoryId, int assetId, ReleaseAsset /// The repository's name /// The id of the . [ManualRoute("DELETE", "/repos/{owner}/{repo}/releases/assets/{asset_id}")] - public Task DeleteAsset(string owner, string name, int id) + public Task DeleteAsset(string owner, string name, long id) { Ensure.ArgumentNotNullOrEmptyString(owner, nameof(owner)); Ensure.ArgumentNotNullOrEmptyString(name, nameof(name)); @@ -568,7 +568,7 @@ public Task DeleteAsset(string owner, string name, int id) /// The Id of the repository /// The id of the . [ManualRoute("DELETE", "/repositories/{id}/releases/assets/{asset_id}")] - public Task DeleteAsset(long repositoryId, int id) + public Task DeleteAsset(long repositoryId, long id) { var endpoint = ApiUrls.Asset(repositoryId, id); return ApiConnection.Delete(endpoint); diff --git a/Octokit/Clients/TeamsClient.cs b/Octokit/Clients/TeamsClient.cs index 1c36920d59..1b44b9abc0 100644 --- a/Octokit/Clients/TeamsClient.cs +++ b/Octokit/Clients/TeamsClient.cs @@ -31,7 +31,7 @@ public TeamsClient(IApiConnection apiConnection) /// The team identifier. /// The with the given identifier. [ManualRoute("GET", "/teams/{team_id}")] - public Task Get(int id) + public Task Get(long id) { var endpoint = ApiUrls.Teams(id); @@ -102,7 +102,7 @@ public Task> GetAllForCurrent(ApiOptions options) /// https://developer.github.com/v3/orgs/teams/#list-child-teams /// [ManualRoute("GET", "/teams{id}/teams")] - public Task> GetAllChildTeams(int id) + public Task> GetAllChildTeams(long id) { return GetAllChildTeams(id, ApiOptions.None); } @@ -116,7 +116,7 @@ public Task> GetAllChildTeams(int id) /// The team identifier /// Options to change API behaviour. [ManualRoute("GET", "/teams{id}/teams")] - public Task> GetAllChildTeams(int id, ApiOptions options) + public Task> GetAllChildTeams(long id, ApiOptions options) { Ensure.ArgumentNotNull(options, nameof(options)); @@ -133,7 +133,7 @@ public Task> GetAllChildTeams(int id, ApiOptions options) /// /// The team identifier [ManualRoute("GET", "/teams{id}/members")] - public Task> GetAllMembers(int id) + public Task> GetAllMembers(long id) { return GetAllMembers(id, ApiOptions.None); } @@ -147,7 +147,7 @@ public Task> GetAllMembers(int id) /// The team identifier /// Options to change API behaviour. [ManualRoute("GET", "/teams{id}/members")] - public Task> GetAllMembers(int id, ApiOptions options) + public Task> GetAllMembers(long id, ApiOptions options) { Ensure.ArgumentNotNull(options, nameof(options)); @@ -165,7 +165,7 @@ public Task> GetAllMembers(int id, ApiOptions options) /// The team identifier /// The request filter [ManualRoute("GET", "/teams{id}/members")] - public Task> GetAllMembers(int id, TeamMembersRequest request) + public Task> GetAllMembers(long id, TeamMembersRequest request) { Ensure.ArgumentNotNull(request, nameof(request)); @@ -182,7 +182,7 @@ public Task> GetAllMembers(int id, TeamMembersRequest reques /// The request filter /// Options to change API behaviour. [ManualRoute("GET", "/teams{id}/members")] - public Task> GetAllMembers(int id, TeamMembersRequest request, ApiOptions options) + public Task> GetAllMembers(long id, TeamMembersRequest request, ApiOptions options) { Ensure.ArgumentNotNull(request, nameof(request)); Ensure.ArgumentNotNull(options, nameof(options)); @@ -203,7 +203,7 @@ public Task> GetAllMembers(int id, TeamMembersRequest reques /// The team to check. /// The user to check. [ManualRoute("GET", "/teams/{team_id}/memberships/{username}")] - public Task GetMembershipDetails(int id, string login) + public Task GetMembershipDetails(long id, string login) { Ensure.ArgumentNotNullOrEmptyString(login, nameof(login)); @@ -260,7 +260,7 @@ public Task Update(string org, string teamSlug, UpdateTeam team) /// Thrown when a general API error occurs. /// Updated [ManualRoute("PATCH", "/teams/{team_id}")] - public Task Update(int id, UpdateTeam team) + public Task Update(long id, UpdateTeam team) { Ensure.ArgumentNotNull(team, nameof(team)); @@ -303,7 +303,7 @@ public Task Delete(string org, string teamSlug) /// Thrown when a general API error occurs. /// [ManualRoute("DELETE", "/teams/{team_id}")] - public Task Delete(int id) + public Task Delete(long id) { var endpoint = ApiUrls.Teams(id); @@ -320,7 +320,7 @@ public Task Delete(int id) /// The user to add to the team. /// Additional parameters for the request [ManualRoute("PUT", "/teams/{team_id}/memberships/{username}")] - public Task AddOrEditMembership(int id, string login, UpdateTeamMembership request) + public Task AddOrEditMembership(long id, string login, UpdateTeamMembership request) { Ensure.ArgumentNotNullOrEmptyString(login, nameof(login)); Ensure.ArgumentNotNull(request, nameof(request)); @@ -340,7 +340,7 @@ public Task AddOrEditMembership(int id, string login, Upd /// The user to remove from the team. /// if the user was removed from the team; otherwise. [ManualRoute("DELETE", "/teams/{team_id}/memberships/{username}")] - public async Task RemoveMembership(int id, string login) + public async Task RemoveMembership(long id, string login) { Ensure.ArgumentNotNullOrEmptyString(login, nameof(login)); @@ -365,7 +365,7 @@ public async Task RemoveMembership(int id, string login) /// Thrown when a general API error occurs. /// The team's repositories [ManualRoute("GET", "/teams/{team_id}/repos")] - public Task> GetAllRepositories(int id) + public Task> GetAllRepositories(long id) { return GetAllRepositories(id, ApiOptions.None); } @@ -378,7 +378,7 @@ public Task> GetAllRepositories(int id) /// Thrown when a general API error occurs. /// The team's repositories [ManualRoute("GET", "/teams/{team_id}/repos")] - public Task> GetAllRepositories(int id, ApiOptions options) + public Task> GetAllRepositories(long id, ApiOptions options) { Ensure.ArgumentNotNull(options, nameof(options)); @@ -395,7 +395,7 @@ public Task> GetAllRepositories(int id, ApiOptions opt /// Thrown when a general API error occurs. /// [ManualRoute("PUT", "/teams/{team_id}/repos/{owner}/{repo}")] - public async Task AddRepository(int id, string organization, string repoName) + public async Task AddRepository(long id, string organization, string repoName) { Ensure.ArgumentNotNullOrEmptyString(organization, nameof(organization)); Ensure.ArgumentNotNullOrEmptyString(repoName, nameof(repoName)); @@ -437,7 +437,7 @@ public async Task AddRepository(int id, string organization, string repoNa /// Thrown when a general API error occurs. /// [ManualRoute("PUT", "/teams/{team_id}/repos/{owner}/{repo}")] - public async Task AddRepository(int id, string organization, string repoName, RepositoryPermissionRequest permission) + public async Task AddRepository(long id, string organization, string repoName, RepositoryPermissionRequest permission) { Ensure.ArgumentNotNullOrEmptyString(organization, nameof(organization)); Ensure.ArgumentNotNullOrEmptyString(repoName, nameof(repoName)); @@ -475,7 +475,7 @@ public async Task AddRepository(int id, string organization, string repoNa /// Thrown when a general API error occurs. /// [ManualRoute("DELETE", "/teams/{team_id}/repos/{owner}/{repo}")] - public async Task RemoveRepository(int id, string organization, string repoName) + public async Task RemoveRepository(long id, string organization, string repoName) { Ensure.ArgumentNotNullOrEmptyString(organization, nameof(organization)); Ensure.ArgumentNotNullOrEmptyString(repoName, nameof(repoName)); @@ -517,7 +517,7 @@ public async Task RemoveRepository(int id, string organization, string rep /// /// if the repository is managed by the given team; otherwise. [ManualRoute("GET", "/teams/{team_id}/repos/{owner}/{name}")] - public async Task IsRepositoryManagedByTeam(int id, string owner, string repo) + public async Task IsRepositoryManagedByTeam(long id, string owner, string repo) { Ensure.ArgumentNotNullOrEmptyString(owner, nameof(owner)); Ensure.ArgumentNotNullOrEmptyString(repo, nameof(repo)); @@ -545,7 +545,7 @@ public async Task IsRepositoryManagedByTeam(int id, string owner, string r /// The team identifier /// [ManualRoute("GET", "/teams/{team_id}/invitations")] - public Task> GetAllPendingInvitations(int id) + public Task> GetAllPendingInvitations(long id) { Ensure.ArgumentNotNull(id, nameof(id)); @@ -563,7 +563,7 @@ public Task> GetAllPendingInvita /// Options to change API behaviour /// [ManualRoute("GET", "/teams/{team_id}/invitations")] - public Task> GetAllPendingInvitations(int id, ApiOptions options) + public Task> GetAllPendingInvitations(long id, ApiOptions options) { return ApiConnection.GetAll(ApiUrls.TeamPendingInvitations(id), null, options); } diff --git a/Octokit/Clients/UserGpgKeysClient.cs b/Octokit/Clients/UserGpgKeysClient.cs index f2d859e6bf..e26de1a6ad 100644 --- a/Octokit/Clients/UserGpgKeysClient.cs +++ b/Octokit/Clients/UserGpgKeysClient.cs @@ -59,7 +59,7 @@ public Task> GetAllForCurrent(ApiOptions options) /// /// The for the specified Id. [ManualRoute("GET", "/user/gpg_keys/{gpg_key_id}")] - public Task Get(int id) + public Task Get(long id) { return ApiConnection.Get(ApiUrls.GpgKeys(id)); } @@ -89,7 +89,7 @@ public Task Create(NewGpgKey newGpgKey) /// /// [ManualRoute("DELETE", "/user/gpg_keys/{gpg_key_id}")] - public Task Delete(int id) + public Task Delete(long id) { return ApiConnection.Delete(ApiUrls.GpgKeys(id)); } diff --git a/Octokit/Clients/UserKeysClient.cs b/Octokit/Clients/UserKeysClient.cs index d9e9b30f8e..1e8614ae3e 100644 --- a/Octokit/Clients/UserKeysClient.cs +++ b/Octokit/Clients/UserKeysClient.cs @@ -88,7 +88,7 @@ public Task> GetAllForCurrent(ApiOptions options) /// The Id of the SSH key /// [ManualRoute("GET", "/user/keys/{key_id}")] - public Task Get(int id) + public Task Get(long id) { return ApiConnection.Get(ApiUrls.Keys(id)); } @@ -118,7 +118,7 @@ public Task Create(NewPublicKey newKey) /// The id of the key to delete /// [ManualRoute("DELETE", "/user/keys/{key_id}")] - public Task Delete(int id) + public Task Delete(long id) { return ApiConnection.Delete(ApiUrls.Keys(id)); } diff --git a/Octokit/Helpers/ApiUrls.Authorizations.cs b/Octokit/Helpers/ApiUrls.Authorizations.cs index 66112e2c5d..5211d6c457 100644 --- a/Octokit/Helpers/ApiUrls.Authorizations.cs +++ b/Octokit/Helpers/ApiUrls.Authorizations.cs @@ -18,7 +18,7 @@ public static Uri Authorizations() /// Returns the that returns all authorizations for a given user /// /// The user Id to search for - public static Uri Authorizations(int id) + public static Uri Authorizations(long id) { return "authorizations/{0}".FormatUri(id); } diff --git a/Octokit/Helpers/ApiUrls.cs b/Octokit/Helpers/ApiUrls.cs index 7c8ecc27ed..b9c0ddb908 100644 --- a/Octokit/Helpers/ApiUrls.cs +++ b/Octokit/Helpers/ApiUrls.cs @@ -233,7 +233,7 @@ public static Uri Keys(string userName) /// Returns the to retrieve a given key. /// /// The Key Id to retrieve - public static Uri Keys(int id) + public static Uri Keys(long id) { return "user/keys/{0}".FormatUri(id); } @@ -276,7 +276,7 @@ public static Uri ReleasesGenerateNotes(string owner, string name) /// The name of the repository /// The id of the release /// - public static Uri Releases(string owner, string name, int id) + public static Uri Releases(string owner, string name, long id) { return "repos/{0}/{1}/releases/{2}".FormatUri(owner, name, id); } @@ -311,7 +311,7 @@ public static Uri LatestRelease(string owner, string name) /// The name of the repository /// The id of the release /// - public static Uri ReleaseAssets(string owner, string name, int id) + public static Uri ReleaseAssets(string owner, string name, long id) { return "repos/{0}/{1}/releases/{2}/assets".FormatUri(owner, name, id); } @@ -323,7 +323,7 @@ public static Uri ReleaseAssets(string owner, string name, int id) /// The name of the repository /// The id of the release asset /// - public static Uri Asset(string owner, string name, int id) + public static Uri Asset(string owner, string name, long id) { return "repos/{0}/{1}/releases/assets/{2}".FormatUri(owner, name, id); } @@ -354,7 +354,7 @@ public static Uri Notifications(string owner, string name) /// /// The Id of the notification. /// - public static Uri Notification(int id) + public static Uri Notification(long id) { return "notifications/threads/{0}".FormatUri(id); } @@ -363,7 +363,7 @@ public static Uri Notification(int id) /// Returns the for the specified notification's subscription status. /// /// The Id of the notification. - public static Uri NotificationSubscription(int id) + public static Uri NotificationSubscription(long id) { return "notifications/threads/{0}/subscription".FormatUri(id); } @@ -635,7 +635,7 @@ public static Uri IssueComments(string owner, string name, int number) /// The name of the repository /// The comment id /// - public static Uri IssueComment(string owner, string name, int id) + public static Uri IssueComment(string owner, string name, long id) { return "repos/{0}/{1}/issues/comments/{2}".FormatUri(owner, name, id); } @@ -1937,7 +1937,7 @@ public static Uri UserTeams() /// /// /// - public static Uri TeamChildTeams(int id) + public static Uri TeamChildTeams(long id) { return "teams/{0}/teams".FormatUri(id); } @@ -1948,7 +1948,7 @@ public static Uri TeamChildTeams(int id) /// /// The id of the . /// - public static Uri Teams(int id) + public static Uri Teams(long id) { return "teams/{0}".FormatUri(id); } @@ -1970,7 +1970,7 @@ public static Uri TeamsByOrganizationAndSlug(string org, string teamSlug) /// /// The team id /// The user login. - public static Uri TeamMember(int id, string login) + public static Uri TeamMember(long id, string login) { return "teams/{0}/memberships/{1}".FormatUri(id, login); } @@ -1979,7 +1979,7 @@ public static Uri TeamMember(int id, string login) /// returns the for team members list /// /// The team id - public static Uri TeamMembers(int id) + public static Uri TeamMembers(long id) { return "teams/{0}/members".FormatUri(id); } @@ -1988,7 +1988,7 @@ public static Uri TeamMembers(int id) /// returns the for the repositories /// /// The team id - public static Uri TeamRepositories(int id) + public static Uri TeamRepositories(long id) { return "teams/{0}/repos".FormatUri(id); } @@ -1999,7 +1999,7 @@ public static Uri TeamRepositories(int id) /// The team id /// The organization id /// The repository name - public static Uri TeamRepository(int id, string organization, string repoName) + public static Uri TeamRepository(long id, string organization, string repoName) { return "teams/{0}/repos/{1}/{2}".FormatUri(id, organization, repoName); } @@ -2021,7 +2021,7 @@ public static Uri TeamPermissionsForARepository(string org, string teamSlug, str /// /// The team id /// - public static Uri TeamPendingInvitations(int id) + public static Uri TeamPendingInvitations(long id) { return "teams/{0}/invitations".FormatUri(id); } @@ -2939,7 +2939,7 @@ public static Uri EnterpriseLicense() return "enterprise/settings/license".FormatUri(); } - public static Uri EnterpriseMigrationById(string org, int id) + public static Uri EnterpriseMigrationById(string org, long id) { return "orgs/{0}/migrations/{1}".FormatUri(org, id); } @@ -2949,12 +2949,12 @@ public static Uri EnterpriseMigrations(string org) return "orgs/{0}/migrations".FormatUri(org); } - public static Uri EnterpriseMigrationArchive(string org, int id) + public static Uri EnterpriseMigrationArchive(string org, long id) { return "orgs/{0}/migrations/{1}/archive".FormatUri(org, id); } - public static Uri EnterpriseMigrationUnlockRepository(string org, int id, string repo) + public static Uri EnterpriseMigrationUnlockRepository(string org, long id, string repo) { return "orgs/{0}/migrations/{1}/repos/{2}/lock".FormatUri(org, id, repo); } @@ -3086,7 +3086,7 @@ public static Uri UserAdministrationSuspension(string login) /// The Id of the repository /// The id of the release asset /// The that returns the assets specified by the asset id. - public static Uri Asset(long repositoryId, int id) + public static Uri Asset(long repositoryId, long id) { return "repositories/{0}/releases/assets/{1}".FormatUri(repositoryId, id); } @@ -3301,7 +3301,7 @@ public static Uri GpgKeys() /// The that returns the GPG Key for the authenticated user for the specified Id. /// [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", MessageId = "Gpg")] - public static Uri GpgKeys(int id) + public static Uri GpgKeys(long id) { return "user/gpg_keys/{0}".FormatUri(id); } @@ -3323,7 +3323,7 @@ public static Uri Issue(long repositoryId, int number) /// The Id of the repository /// The comment id /// The for the specified comment. - public static Uri IssueComment(long repositoryId, int id) + public static Uri IssueComment(long repositoryId, long id) { return "repositories/{0}/issues/comments/{1}".FormatUri(repositoryId, id); } @@ -3622,7 +3622,7 @@ public static Uri Reference(long repositoryId, string referenceName) /// The Id of the repository /// The id of the release /// The that returns all the assets for the specified release for the specified repository. - public static Uri ReleaseAssets(long repositoryId, int id) + public static Uri ReleaseAssets(long repositoryId, long id) { return "repositories/{0}/releases/{1}/assets".FormatUri(repositoryId, id); } @@ -3653,7 +3653,7 @@ public static Uri ReleasesGenerateNotes(long repositoryId) /// The Id of the repository /// The id of the release /// The that returns a single release for the specified repository - public static Uri Releases(long repositoryId, int id) + public static Uri Releases(long repositoryId, long id) { return "repositories/{0}/releases/{1}".FormatUri(repositoryId, id); } @@ -4262,7 +4262,7 @@ public static Uri OrganizationProjects(string organization) /// /// The id of the project /// The for repository projects. - public static Uri Project(int id) + public static Uri Project(long id) { return "projects/{0}".FormatUri(id); } @@ -4272,7 +4272,7 @@ public static Uri Project(int id) /// /// The id of the columns /// The for project columns. - public static Uri ProjectColumn(int id) + public static Uri ProjectColumn(long id) { return "projects/columns/{0}".FormatUri(id); } @@ -4292,7 +4292,7 @@ public static Uri ProjectColumns(int projectId) /// /// The id of the column to move /// The to move a project column. - public static Uri ProjectColumnMove(int id) + public static Uri ProjectColumnMove(long id) { return "projects/columns/{0}/moves".FormatUri(id); } @@ -4302,7 +4302,7 @@ public static Uri ProjectColumnMove(int id) /// /// The id of the card /// The for project cards. - public static Uri ProjectCard(int id) + public static Uri ProjectCard(long id) { return "projects/columns/cards/{0}".FormatUri(id); } @@ -4322,7 +4322,7 @@ public static Uri ProjectCards(int columnId) /// /// The id of the card to move /// The to move a project card. - public static Uri ProjectCardMove(int id) + public static Uri ProjectCardMove(long id) { return "projects/columns/cards/{0}/moves".FormatUri(id); } diff --git a/Octokit/Models/Response/Account.cs b/Octokit/Models/Response/Account.cs index 0f18fac7ab..1e99e50482 100644 --- a/Octokit/Models/Response/Account.cs +++ b/Octokit/Models/Response/Account.cs @@ -9,7 +9,7 @@ public abstract class Account { protected Account() { } - protected Account(string avatarUrl, string bio, string blog, int collaborators, string company, DateTimeOffset createdAt, int diskUsage, string email, int followers, int following, bool? hireable, string htmlUrl, int totalPrivateRepos, int id, string location, string login, string name, string nodeId, int ownedPrivateRepos, Plan plan, int privateGists, int publicGists, int publicRepos, AccountType type, string url) + protected Account(string avatarUrl, string bio, string blog, int collaborators, string company, DateTimeOffset createdAt, int diskUsage, string email, int followers, int following, bool? hireable, string htmlUrl, int totalPrivateRepos, long id, string location, string login, string name, string nodeId, int ownedPrivateRepos, Plan plan, int privateGists, int publicGists, int publicRepos, AccountType type, string url) { AvatarUrl = avatarUrl; Bio = bio; @@ -102,7 +102,7 @@ protected Account(string avatarUrl, string bio, string blog, int collaborators, /// /// The account's system-wide unique Id. /// - public int Id { get; protected set; } + public long Id { get; protected set; } /// /// GraphQL Node Id diff --git a/Octokit/Models/Response/ApplicationAuthorization.cs b/Octokit/Models/Response/ApplicationAuthorization.cs index 04c8ab2a31..bc091d70d8 100644 --- a/Octokit/Models/Response/ApplicationAuthorization.cs +++ b/Octokit/Models/Response/ApplicationAuthorization.cs @@ -14,7 +14,7 @@ public ApplicationAuthorization() { } - public ApplicationAuthorization(int id, string url, Application application, string tokenLastEight, string hashedToken, string fingerprint, string note, string noteUrl, DateTimeOffset createdAt, DateTimeOffset updateAt, string[] scopes, string token) + public ApplicationAuthorization(long id, string url, Application application, string tokenLastEight, string hashedToken, string fingerprint, string note, string noteUrl, DateTimeOffset createdAt, DateTimeOffset updateAt, string[] scopes, string token) : base(id, url, application, tokenLastEight, hashedToken, fingerprint, note, noteUrl, createdAt, updateAt, scopes) { Token = token; diff --git a/Octokit/Models/Response/Author.cs b/Octokit/Models/Response/Author.cs index 95e1e93000..e88d55b9bf 100644 --- a/Octokit/Models/Response/Author.cs +++ b/Octokit/Models/Response/Author.cs @@ -9,7 +9,7 @@ public class Author { public Author() { } - public Author(string login, int id, string nodeId, string avatarUrl, string url, string htmlUrl, string followersUrl, string followingUrl, string gistsUrl, string type, string starredUrl, string subscriptionsUrl, string organizationsUrl, string reposUrl, string eventsUrl, string receivedEventsUrl, bool siteAdmin) + public Author(string login, long id, string nodeId, string avatarUrl, string url, string htmlUrl, string followersUrl, string followingUrl, string gistsUrl, string type, string starredUrl, string subscriptionsUrl, string organizationsUrl, string reposUrl, string eventsUrl, string receivedEventsUrl, bool siteAdmin) { Login = login; Id = id; @@ -32,7 +32,7 @@ public Author(string login, int id, string nodeId, string avatarUrl, string url, public string Login { get; protected set; } - public int Id { get; protected set; } + public long Id { get; protected set; } /// /// GraphQL Node Id diff --git a/Octokit/Models/Response/Authorization.cs b/Octokit/Models/Response/Authorization.cs index ea930e08e1..04c590a971 100644 --- a/Octokit/Models/Response/Authorization.cs +++ b/Octokit/Models/Response/Authorization.cs @@ -14,7 +14,7 @@ public class Authorization // TODO: I'd love to not need this public Authorization() { } - public Authorization(int id, string url, Application application, string tokenLastEight, string hashedToken, string fingerprint, string note, string noteUrl, DateTimeOffset createdAt, DateTimeOffset updateAt, string[] scopes) + public Authorization(long id, string url, Application application, string tokenLastEight, string hashedToken, string fingerprint, string note, string noteUrl, DateTimeOffset createdAt, DateTimeOffset updateAt, string[] scopes) { Id = id; Url = url; @@ -36,7 +36,7 @@ public Authorization(int id, string url, Application application, string tokenLa /// /// The Id of this . /// - public int Id { get; protected set; } + public long Id { get; protected set; } /// /// The API URL for this . diff --git a/Octokit/Models/Response/Autolink.cs b/Octokit/Models/Response/Autolink.cs index f1e89d8537..1fbc7be40a 100644 --- a/Octokit/Models/Response/Autolink.cs +++ b/Octokit/Models/Response/Autolink.cs @@ -13,7 +13,7 @@ public class Autolink public Autolink() { } - public Autolink(int id, string keyPrefix, string urlTemplate, bool isAlphanumeric) + public Autolink(long id, string keyPrefix, string urlTemplate, bool isAlphanumeric) { this.Id = id; this.KeyPrefix = keyPrefix; @@ -25,7 +25,7 @@ public Autolink(int id, string keyPrefix, string urlTemplate, bool isAlphanumeri /// /// The unique identifier of the autolink. /// - public int Id { get; protected set; } + public long Id { get; protected set; } /// /// This prefix appended by certain characters will generate a link any time it is found in an issue, pull request, or commit. diff --git a/Octokit/Models/Response/Collaborator.cs b/Octokit/Models/Response/Collaborator.cs index 269fcc2d53..be09e96ffb 100644 --- a/Octokit/Models/Response/Collaborator.cs +++ b/Octokit/Models/Response/Collaborator.cs @@ -8,7 +8,7 @@ public class Collaborator { public Collaborator() { } - public Collaborator(string login, int id, string email, string name, string nodeId, string avatarUrl, string gravatarUrl, string url, string htmlUrl, string followersUrl, string followingUrl, string gistsUrl, string type, string starredUrl, string subscriptionsUrl, string organizationsUrl, string reposUrl, string eventsUrl, string receivedEventsUrl, bool siteAdmin, CollaboratorPermissions permissions, string roleName) + public Collaborator(string login, long id, string email, string name, string nodeId, string avatarUrl, string gravatarUrl, string url, string htmlUrl, string followersUrl, string followingUrl, string gistsUrl, string type, string starredUrl, string subscriptionsUrl, string organizationsUrl, string reposUrl, string eventsUrl, string receivedEventsUrl, bool siteAdmin, CollaboratorPermissions permissions, string roleName) { Login = login; Id = id; @@ -36,7 +36,7 @@ public Collaborator(string login, int id, string email, string name, string node public string Login { get; protected set; } - public int Id { get; protected set; } + public long Id { get; protected set; } public string Email { get; protected set; } diff --git a/Octokit/Models/Response/CommitComment.cs b/Octokit/Models/Response/CommitComment.cs index 07b0d4bc1c..45507b6be4 100644 --- a/Octokit/Models/Response/CommitComment.cs +++ b/Octokit/Models/Response/CommitComment.cs @@ -9,7 +9,7 @@ public class CommitComment { public CommitComment() { } - public CommitComment(int id, string nodeId, string url, string htmlUrl, string body, string path, int position, int? line, string commitId, User user, DateTimeOffset createdAt, DateTimeOffset? updatedAt, ReactionSummary reactions) + public CommitComment(long id, string nodeId, string url, string htmlUrl, string body, string path, int position, int? line, string commitId, User user, DateTimeOffset createdAt, DateTimeOffset? updatedAt, ReactionSummary reactions) { Id = id; NodeId = nodeId; @@ -29,7 +29,7 @@ public CommitComment(int id, string nodeId, string url, string htmlUrl, string b /// /// The issue comment Id. /// - public int Id { get; private set; } + public long Id { get; private set; } /// /// GraphQL Node Id diff --git a/Octokit/Models/Response/DeployKey.cs b/Octokit/Models/Response/DeployKey.cs index 0f9771158c..c5c131b7cb 100644 --- a/Octokit/Models/Response/DeployKey.cs +++ b/Octokit/Models/Response/DeployKey.cs @@ -8,7 +8,7 @@ public class DeployKey { public DeployKey() { } - public DeployKey(int id, string key, string url, string title) + public DeployKey(long id, string key, string url, string title) { Id = id; Key = key; @@ -16,7 +16,7 @@ public DeployKey(int id, string key, string url, string title) Title = title; } - public int Id { get; private set; } + public long Id { get; private set; } public string Key { get; private set; } public string Url { get; private set; } public string Title { get; private set; } diff --git a/Octokit/Models/Response/Deployment.cs b/Octokit/Models/Response/Deployment.cs index 00774d4abe..335b43042f 100644 --- a/Octokit/Models/Response/Deployment.cs +++ b/Octokit/Models/Response/Deployment.cs @@ -13,7 +13,7 @@ public class Deployment { public Deployment() { } - public Deployment(int id, string nodeId, string sha, string @ref, string url, User creator, IReadOnlyDictionary payload, DateTimeOffset createdAt, DateTimeOffset updatedAt, string description, string statusesUrl, string repositoryUrl, string environment, string originalEnvironment, bool transientEnvironment, bool productionEnvironment, string task) + public Deployment(long id, string nodeId, string sha, string @ref, string url, User creator, IReadOnlyDictionary payload, DateTimeOffset createdAt, DateTimeOffset updatedAt, string description, string statusesUrl, string repositoryUrl, string environment, string originalEnvironment, bool transientEnvironment, bool productionEnvironment, string task) { Id = id; NodeId = nodeId; @@ -37,7 +37,7 @@ public Deployment(int id, string nodeId, string sha, string @ref, string url, Us /// /// Id of this deployment. /// - public int Id { get; private set; } + public long Id { get; private set; } /// /// GraphQL Node Id diff --git a/Octokit/Models/Response/DeploymentEnvironment.cs b/Octokit/Models/Response/DeploymentEnvironment.cs index 88fe5c97d7..1caa3793f7 100644 --- a/Octokit/Models/Response/DeploymentEnvironment.cs +++ b/Octokit/Models/Response/DeploymentEnvironment.cs @@ -14,7 +14,7 @@ public class DeploymentEnvironment { public DeploymentEnvironment() { } - public DeploymentEnvironment(int id, string nodeID, string name, string url, string htmlUrl, DateTimeOffset createdAt, DateTimeOffset updatedAt) + public DeploymentEnvironment(long id, string nodeID, string name, string url, string htmlUrl, DateTimeOffset createdAt, DateTimeOffset updatedAt) { Id = id; NodeId = nodeID; @@ -28,7 +28,7 @@ public DeploymentEnvironment(int id, string nodeID, string name, string url, str /// /// Id of this deployment environment /// - public int Id { get; private set; } + public long Id { get; private set; } /// /// GraphQL Node Id diff --git a/Octokit/Models/Response/Enterprise/PreReceiveHook.cs b/Octokit/Models/Response/Enterprise/PreReceiveHook.cs index a63bdde68c..aeacc475c7 100644 --- a/Octokit/Models/Response/Enterprise/PreReceiveHook.cs +++ b/Octokit/Models/Response/Enterprise/PreReceiveHook.cs @@ -12,7 +12,7 @@ public class PreReceiveHook public PreReceiveHook() { } - public PreReceiveHook(int id, string name, StringEnum enforcement, string script, Repository scriptRepository, PreReceiveEnvironment environment, bool allowDownstreamConfiguration) + public PreReceiveHook(long id, string name, StringEnum enforcement, string script, Repository scriptRepository, PreReceiveEnvironment environment, bool allowDownstreamConfiguration) { Id = id; Name = name; @@ -26,7 +26,7 @@ public PreReceiveHook(int id, string name, StringEnum /// /// The identifier for the pre-receive hook. /// - public int Id { get; private set; } + public long Id { get; private set; } /// /// The name of the hook. diff --git a/Octokit/Models/Response/GistComment.cs b/Octokit/Models/Response/GistComment.cs index f432398de2..f6fa39b865 100644 --- a/Octokit/Models/Response/GistComment.cs +++ b/Octokit/Models/Response/GistComment.cs @@ -9,7 +9,7 @@ public class GistComment { public GistComment() { } - public GistComment(int id, string nodeId, string url, string body, User user, DateTimeOffset createdAt, DateTimeOffset? updatedAt) + public GistComment(long id, string nodeId, string url, string body, User user, DateTimeOffset createdAt, DateTimeOffset? updatedAt) { Id = id; NodeId = nodeId; @@ -23,7 +23,7 @@ public GistComment(int id, string nodeId, string url, string body, User user, Da /// /// The gist comment id. /// - public int Id { get; private set; } + public long Id { get; private set; } /// /// GraphQL Node Id diff --git a/Octokit/Models/Response/GpgKey.cs b/Octokit/Models/Response/GpgKey.cs index 48296bc8d6..9d9f064ff2 100644 --- a/Octokit/Models/Response/GpgKey.cs +++ b/Octokit/Models/Response/GpgKey.cs @@ -12,7 +12,7 @@ public class GpgKey { public GpgKey() { } - public GpgKey(int id, int? primaryKeyId, string keyId, string publicKey, IReadOnlyList emails, IReadOnlyList subkeys, bool canSign, bool canEncryptCommunications, bool canEncryptStorage, bool canCertify, DateTimeOffset createdAt, DateTimeOffset? expiresAt) + public GpgKey(long id, int? primaryKeyId, string keyId, string publicKey, IReadOnlyList emails, IReadOnlyList subkeys, bool canSign, bool canEncryptCommunications, bool canEncryptStorage, bool canCertify, DateTimeOffset createdAt, DateTimeOffset? expiresAt) { Id = id; PrimaryKeyId = primaryKeyId; @@ -28,7 +28,7 @@ public GpgKey(int id, int? primaryKeyId, string keyId, string publicKey, IReadOn ExpiresAt = expiresAt; } - public int Id { get; private set; } + public long Id { get; private set; } public int? PrimaryKeyId { get; private set; } public string KeyId { get; private set; } public string PublicKey { get; private set; } diff --git a/Octokit/Models/Response/IssueComment.cs b/Octokit/Models/Response/IssueComment.cs index 0d7d3da7b7..6ef6e3f8fa 100644 --- a/Octokit/Models/Response/IssueComment.cs +++ b/Octokit/Models/Response/IssueComment.cs @@ -10,7 +10,7 @@ public class IssueComment { public IssueComment() { } - public IssueComment(int id, string nodeId, string url, string htmlUrl, string body, DateTimeOffset createdAt, DateTimeOffset? updatedAt, User user, ReactionSummary reactions, AuthorAssociation authorAssociation) + public IssueComment(long id, string nodeId, string url, string htmlUrl, string body, DateTimeOffset createdAt, DateTimeOffset? updatedAt, User user, ReactionSummary reactions, AuthorAssociation authorAssociation) { Id = id; NodeId = nodeId; @@ -27,7 +27,7 @@ public IssueComment(int id, string nodeId, string url, string htmlUrl, string bo /// /// The issue comment Id. /// - public int Id { get; private set; } + public long Id { get; private set; } /// /// GraphQL Node Id diff --git a/Octokit/Models/Response/Migration.cs b/Octokit/Models/Response/Migration.cs index 92fd527c17..9e3ea16beb 100644 --- a/Octokit/Models/Response/Migration.cs +++ b/Octokit/Models/Response/Migration.cs @@ -22,7 +22,7 @@ public Migration() { } public Migration( - int id, + long id, string nodeId, string guid, MigrationState state, @@ -48,7 +48,7 @@ public Migration( /// /// Id of migration. /// - public int Id { get; private set; } + public long Id { get; private set; } /// /// GraphQL Node Id diff --git a/Octokit/Models/Response/Organization.cs b/Octokit/Models/Response/Organization.cs index c56242ea9c..28f275bdd8 100644 --- a/Octokit/Models/Response/Organization.cs +++ b/Octokit/Models/Response/Organization.cs @@ -10,7 +10,7 @@ public class Organization : Account { public Organization() { } - public Organization(string avatarUrl, string bio, string blog, int collaborators, string company, DateTimeOffset createdAt, int diskUsage, string email, int followers, int following, bool? hireable, string htmlUrl, int totalPrivateRepos, int id, string nodeId, string location, string login, string name, int ownedPrivateRepos, Plan plan, int privateGists, int publicGists, int publicRepos, string url, string billingAddress, string reposUrl, string eventsUrl, string hooksUrl, string issuesUrl, string membersUrl, string publicMembersUrl, string description, bool isVerified, bool hasOrganizationProjects, bool hasRepositoryProjects, DateTimeOffset updatedAt) + public Organization(string avatarUrl, string bio, string blog, int collaborators, string company, DateTimeOffset createdAt, int diskUsage, string email, int followers, int following, bool? hireable, string htmlUrl, int totalPrivateRepos, long id, string nodeId, string location, string login, string name, int ownedPrivateRepos, Plan plan, int privateGists, int publicGists, int publicRepos, string url, string billingAddress, string reposUrl, string eventsUrl, string hooksUrl, string issuesUrl, string membersUrl, string publicMembersUrl, string description, bool isVerified, bool hasOrganizationProjects, bool hasRepositoryProjects, DateTimeOffset updatedAt) : base(avatarUrl, bio, blog, collaborators, company, createdAt, diskUsage, email, followers, following, hireable, htmlUrl, totalPrivateRepos, id, location, login, name, nodeId, ownedPrivateRepos, plan, privateGists, publicGists, publicRepos, AccountType.Organization, url) { BillingAddress = billingAddress; diff --git a/Octokit/Models/Response/OrganizationHook.cs b/Octokit/Models/Response/OrganizationHook.cs index bc8224d2f5..0a6e9c87de 100644 --- a/Octokit/Models/Response/OrganizationHook.cs +++ b/Octokit/Models/Response/OrganizationHook.cs @@ -11,7 +11,7 @@ public class OrganizationHook { public OrganizationHook() { } - public OrganizationHook(int id, string url, string testUrl, string pingUrl, DateTimeOffset createdAt, DateTimeOffset updatedAt, string name, IReadOnlyList events, bool active, IReadOnlyDictionary config) + public OrganizationHook(long id, string url, string testUrl, string pingUrl, DateTimeOffset createdAt, DateTimeOffset updatedAt, string name, IReadOnlyList events, bool active, IReadOnlyDictionary config) { Url = url; TestUrl = testUrl; @@ -25,7 +25,7 @@ public OrganizationHook(int id, string url, string testUrl, string pingUrl, Date Id = id; } - public int Id { get; private set; } + public long Id { get; private set; } public string Url { get; private set; } diff --git a/Octokit/Models/Response/OrganizationMembershipInvitation.cs b/Octokit/Models/Response/OrganizationMembershipInvitation.cs index da2ebc35a3..472ac506ca 100644 --- a/Octokit/Models/Response/OrganizationMembershipInvitation.cs +++ b/Octokit/Models/Response/OrganizationMembershipInvitation.cs @@ -12,7 +12,7 @@ public OrganizationMembershipInvitation() { } - public OrganizationMembershipInvitation(int id, string nodeId, string login, string email, OrganizationMembershipRole role, DateTimeOffset createdAt, User inviter, int teamCount) + public OrganizationMembershipInvitation(long id, string nodeId, string login, string email, OrganizationMembershipRole role, DateTimeOffset createdAt, User inviter, int teamCount) { Id = id; NodeId = nodeId; @@ -24,7 +24,7 @@ public OrganizationMembershipInvitation(int id, string nodeId, string login, str TeamCount = teamCount; } - public int Id { get; private set; } + public long Id { get; private set; } /// /// GraphQL Node Id diff --git a/Octokit/Models/Response/Project.cs b/Octokit/Models/Response/Project.cs index baf763d12e..ba23192300 100644 --- a/Octokit/Models/Response/Project.cs +++ b/Octokit/Models/Response/Project.cs @@ -9,7 +9,7 @@ public class Project { public Project() { } - public Project(string ownerUrl, string url, string htmlUrl, int id, string nodeId, string name, string body, int number, ItemState state, User creator, DateTimeOffset createdAt, DateTimeOffset updatedAt) + public Project(string ownerUrl, string url, string htmlUrl, long id, string nodeId, string name, string body, int number, ItemState state, User creator, DateTimeOffset createdAt, DateTimeOffset updatedAt) { OwnerUrl = ownerUrl; Url = url; @@ -43,7 +43,7 @@ public Project(string ownerUrl, string url, string htmlUrl, int id, string nodeI /// /// The Id for this project. /// - public int Id { get; private set; } + public long Id { get; private set; } /// /// GraphQL Node Id diff --git a/Octokit/Models/Response/ProjectCard.cs b/Octokit/Models/Response/ProjectCard.cs index 471903a6af..d468ff6b2f 100644 --- a/Octokit/Models/Response/ProjectCard.cs +++ b/Octokit/Models/Response/ProjectCard.cs @@ -9,7 +9,7 @@ public class ProjectCard { public ProjectCard() { } - public ProjectCard(string columnUrl, string contentUrl, int id, string nodeId, string note, User creator, DateTimeOffset createdAt, DateTimeOffset updatedAt, bool archived) + public ProjectCard(string columnUrl, string contentUrl, long id, string nodeId, string note, User creator, DateTimeOffset createdAt, DateTimeOffset updatedAt, bool archived) { ColumnUrl = columnUrl; ContentUrl = contentUrl; @@ -35,7 +35,7 @@ public ProjectCard(string columnUrl, string contentUrl, int id, string nodeId, s /// /// The Id for this card. /// - public int Id { get; private set; } + public long Id { get; private set; } /// /// GraphQL Node Id diff --git a/Octokit/Models/Response/ProjectColumn.cs b/Octokit/Models/Response/ProjectColumn.cs index 6ab1c3078d..823e23b9cd 100644 --- a/Octokit/Models/Response/ProjectColumn.cs +++ b/Octokit/Models/Response/ProjectColumn.cs @@ -9,7 +9,7 @@ public class ProjectColumn { public ProjectColumn() { } - public ProjectColumn(int id, string nodeId, string name, string projectUrl, DateTimeOffset createdAt, DateTimeOffset updatedAt) + public ProjectColumn(long id, string nodeId, string name, string projectUrl, DateTimeOffset createdAt, DateTimeOffset updatedAt) { Id = id; NodeId = nodeId; @@ -22,7 +22,7 @@ public ProjectColumn(int id, string nodeId, string name, string projectUrl, Date /// /// The Id for this column. /// - public int Id { get; private set; } + public long Id { get; private set; } /// /// GraphQL Node Id diff --git a/Octokit/Models/Response/PublicKey.cs b/Octokit/Models/Response/PublicKey.cs index cc91194df3..89d43fa330 100644 --- a/Octokit/Models/Response/PublicKey.cs +++ b/Octokit/Models/Response/PublicKey.cs @@ -8,7 +8,7 @@ public class PublicKey { public PublicKey() { } - public PublicKey(int id, string key, string url, string title) + public PublicKey(long id, string key, string url, string title) { Id = id; Key = key; @@ -16,7 +16,7 @@ public PublicKey(int id, string key, string url, string title) Title = title; } - public int Id { get; private set; } + public long Id { get; private set; } public string Key { get; private set; } diff --git a/Octokit/Models/Response/PullRequestReviewComment.cs b/Octokit/Models/Response/PullRequestReviewComment.cs index a39b917a34..ffdb12dd35 100644 --- a/Octokit/Models/Response/PullRequestReviewComment.cs +++ b/Octokit/Models/Response/PullRequestReviewComment.cs @@ -10,12 +10,12 @@ public class PullRequestReviewComment { public PullRequestReviewComment() { } - public PullRequestReviewComment(int id) + public PullRequestReviewComment(long id) { Id = id; } - public PullRequestReviewComment(string url, int id, string nodeId, string diffHunk, string path, int? position, int? originalPosition, string commitId, string originalCommitId, User user, string body, DateTimeOffset createdAt, DateTimeOffset updatedAt, string htmlUrl, string pullRequestUrl, ReactionSummary reactions, int? inReplyToId, int? pullRequestReviewId, AuthorAssociation authorAssociation) + public PullRequestReviewComment(string url, long id, string nodeId, string diffHunk, string path, int? position, int? originalPosition, string commitId, string originalCommitId, User user, string body, DateTimeOffset createdAt, DateTimeOffset updatedAt, string htmlUrl, string pullRequestUrl, ReactionSummary reactions, int? inReplyToId, int? pullRequestReviewId, AuthorAssociation authorAssociation) { PullRequestReviewId = pullRequestReviewId; Url = url; @@ -46,7 +46,7 @@ public PullRequestReviewComment(string url, int id, string nodeId, string diffHu /// /// The comment Id. /// - public int Id { get; private set; } + public long Id { get; private set; } /// /// GraphQL Node Id diff --git a/Octokit/Models/Response/Reaction.cs b/Octokit/Models/Response/Reaction.cs index 3b6ba7f44d..8a40cd4227 100644 --- a/Octokit/Models/Response/Reaction.cs +++ b/Octokit/Models/Response/Reaction.cs @@ -36,7 +36,7 @@ public class Reaction { public Reaction() { } - public Reaction(int id, string nodeId, User user, ReactionType content) + public Reaction(long id, string nodeId, User user, ReactionType content) { Id = id; NodeId = nodeId; @@ -47,7 +47,7 @@ public Reaction(int id, string nodeId, User user, ReactionType content) /// /// The Id for this reaction. /// - public int Id { get; private set; } + public long Id { get; private set; } /// /// GraphQL Node Id diff --git a/Octokit/Models/Response/Release.cs b/Octokit/Models/Response/Release.cs index b2335262b5..b2f85df496 100644 --- a/Octokit/Models/Response/Release.cs +++ b/Octokit/Models/Response/Release.cs @@ -11,7 +11,7 @@ public class Release { public Release() { } - public Release(string url, string htmlUrl, string assetsUrl, string uploadUrl, int id, string nodeId, string tagName, string targetCommitish, string name, string body, bool draft, bool prerelease, DateTimeOffset createdAt, DateTimeOffset? publishedAt, Author author, string tarballUrl, string zipballUrl, IReadOnlyList assets) + public Release(string url, string htmlUrl, string assetsUrl, string uploadUrl, long id, string nodeId, string tagName, string targetCommitish, string name, string body, bool draft, bool prerelease, DateTimeOffset createdAt, DateTimeOffset? publishedAt, Author author, string tarballUrl, string zipballUrl, IReadOnlyList assets) { Url = url; HtmlUrl = htmlUrl; @@ -47,7 +47,7 @@ public Release(string uploadUrl) public string UploadUrl { get; private set; } - public int Id { get; private set; } + public long Id { get; private set; } /// /// GraphQL Node Id diff --git a/Octokit/Models/Response/ReleaseAsset.cs b/Octokit/Models/Response/ReleaseAsset.cs index bec638a4b0..aa98c236e3 100644 --- a/Octokit/Models/Response/ReleaseAsset.cs +++ b/Octokit/Models/Response/ReleaseAsset.cs @@ -9,7 +9,7 @@ public class ReleaseAsset { public ReleaseAsset() { } - public ReleaseAsset(string url, int id, string nodeId, string name, string label, string state, string contentType, int size, int downloadCount, DateTimeOffset createdAt, DateTimeOffset updatedAt, string browserDownloadUrl, Author uploader) + public ReleaseAsset(string url, long id, string nodeId, string name, string label, string state, string contentType, int size, int downloadCount, DateTimeOffset createdAt, DateTimeOffset updatedAt, string browserDownloadUrl, Author uploader) { Url = url; Id = id; @@ -28,7 +28,7 @@ public ReleaseAsset(string url, int id, string nodeId, string name, string label public string Url { get; private set; } - public int Id { get; private set; } + public long Id { get; private set; } /// /// GraphQL Node Id diff --git a/Octokit/Models/Response/RepositoryContributor.cs b/Octokit/Models/Response/RepositoryContributor.cs index 17f864f003..3c3dd9db73 100644 --- a/Octokit/Models/Response/RepositoryContributor.cs +++ b/Octokit/Models/Response/RepositoryContributor.cs @@ -10,7 +10,7 @@ public class RepositoryContributor : Author { public RepositoryContributor() { } - public RepositoryContributor(string login, int id, string nodeId, string avatarUrl, string url, string htmlUrl, string followersUrl, string followingUrl, string gistsUrl, string type, string starredUrl, string subscriptionsUrl, string organizationsUrl, string reposUrl, string eventsUrl, string receivedEventsUrl, bool siteAdmin, int contributions) + public RepositoryContributor(string login, long id, string nodeId, string avatarUrl, string url, string htmlUrl, string followersUrl, string followingUrl, string gistsUrl, string type, string starredUrl, string subscriptionsUrl, string organizationsUrl, string reposUrl, string eventsUrl, string receivedEventsUrl, bool siteAdmin, int contributions) : base(login, id, nodeId, avatarUrl, url, htmlUrl, followersUrl, followingUrl, gistsUrl, type, starredUrl, subscriptionsUrl, organizationsUrl, reposUrl, eventsUrl, receivedEventsUrl, siteAdmin) { Contributions = contributions; diff --git a/Octokit/Models/Response/RepositoryHook.cs b/Octokit/Models/Response/RepositoryHook.cs index 5ebb7b119d..8b6aa03ce6 100644 --- a/Octokit/Models/Response/RepositoryHook.cs +++ b/Octokit/Models/Response/RepositoryHook.cs @@ -11,7 +11,7 @@ public class RepositoryHook { public RepositoryHook() { } - public RepositoryHook(int id, string url, string testUrl, string pingUrl, DateTimeOffset createdAt, DateTimeOffset updatedAt, string name, IReadOnlyList events, bool active, IReadOnlyDictionary config) + public RepositoryHook(long id, string url, string testUrl, string pingUrl, DateTimeOffset createdAt, DateTimeOffset updatedAt, string name, IReadOnlyList events, bool active, IReadOnlyDictionary config) { Url = url; TestUrl = testUrl; @@ -25,7 +25,7 @@ public RepositoryHook(int id, string url, string testUrl, string pingUrl, DateTi Id = id; } - public int Id { get; private set; } + public long Id { get; private set; } public string Url { get; private set; } diff --git a/Octokit/Models/Response/RepositoryInvitation.cs b/Octokit/Models/Response/RepositoryInvitation.cs index bc76e303f4..d89abbcd6d 100644 --- a/Octokit/Models/Response/RepositoryInvitation.cs +++ b/Octokit/Models/Response/RepositoryInvitation.cs @@ -12,7 +12,7 @@ public class RepositoryInvitation { public RepositoryInvitation() { } - public RepositoryInvitation(int id, string nodeId, Repository repository, User invitee, User inviter, InvitationPermissionType permissions, DateTimeOffset createdAt, bool expired, string url, string htmlUrl) + public RepositoryInvitation(long id, string nodeId, Repository repository, User invitee, User inviter, InvitationPermissionType permissions, DateTimeOffset createdAt, bool expired, string url, string htmlUrl) { Id = id; NodeId = nodeId; @@ -29,7 +29,7 @@ public RepositoryInvitation(int id, string nodeId, Repository repository, User i /// /// Unique identifier of the repository invitation. /// - public int Id { get; private set; } + public long Id { get; private set; } /// /// GraphQL Node Id diff --git a/Octokit/Models/Response/SourceInfo.cs b/Octokit/Models/Response/SourceInfo.cs index cc3efc1f70..1989691ef5 100644 --- a/Octokit/Models/Response/SourceInfo.cs +++ b/Octokit/Models/Response/SourceInfo.cs @@ -8,7 +8,7 @@ public class SourceInfo { public SourceInfo() { } - public SourceInfo(User actor, int id, Issue issue, string url) + public SourceInfo(User actor, long id, Issue issue, string url) { Actor = actor; Id = id; @@ -17,7 +17,7 @@ public SourceInfo(User actor, int id, Issue issue, string url) } public User Actor { get; private set; } - public int Id { get; private set; } + public long Id { get; private set; } public Issue Issue { get; private set; } public string Url { get; private set; } diff --git a/Octokit/Models/Response/Team.cs b/Octokit/Models/Response/Team.cs index 4c4be950f6..b462420008 100644 --- a/Octokit/Models/Response/Team.cs +++ b/Octokit/Models/Response/Team.cs @@ -12,7 +12,7 @@ public class Team { public Team() { } - public Team(string url, string htmlUrl, int id, string nodeId, string slug, string name, string description, TeamPrivacy privacy, string permission, TeamRepositoryPermissions teamRepositoryPermissions, int membersCount, int reposCount, Organization organization, Team parent, string ldapDistinguishedName) + public Team(string url, string htmlUrl, long id, string nodeId, string slug, string name, string description, TeamPrivacy privacy, string permission, TeamRepositoryPermissions teamRepositoryPermissions, int membersCount, int reposCount, Organization organization, Team parent, string ldapDistinguishedName) { Url = url; HtmlUrl = htmlUrl; @@ -44,7 +44,7 @@ public Team(string url, string htmlUrl, int id, string nodeId, string slug, stri /// /// team id /// - public int Id { get; private set; } + public long Id { get; private set; } /// /// GraphQL Node Id diff --git a/Octokit/Models/Response/TeamRepository.cs b/Octokit/Models/Response/TeamRepository.cs index bab62979c9..82b1b331dc 100644 --- a/Octokit/Models/Response/TeamRepository.cs +++ b/Octokit/Models/Response/TeamRepository.cs @@ -13,7 +13,7 @@ public class TeamRepository { public TeamRepository() { } - public TeamRepository(int id, + public TeamRepository(long id, string nodeId, string name, string fullName, @@ -198,7 +198,7 @@ public TeamRepository(int id, /// /// Unique identifier of the repository /// - public int Id { get; private set; } + public long Id { get; private set; } /// /// GraphQL Node Id diff --git a/Octokit/Models/Response/User.cs b/Octokit/Models/Response/User.cs index 363f1d80a2..e056826b60 100644 --- a/Octokit/Models/Response/User.cs +++ b/Octokit/Models/Response/User.cs @@ -14,7 +14,7 @@ public class User : Account { public User() { } - public User(string avatarUrl, string bio, string blog, int collaborators, string company, DateTimeOffset createdAt, DateTimeOffset updatedAt, int diskUsage, string email, int followers, int following, bool? hireable, string htmlUrl, int totalPrivateRepos, int id, string location, string login, string name, string nodeId, int ownedPrivateRepos, Plan plan, int privateGists, int publicGists, int publicRepos, string url, RepositoryPermissions permissions, bool siteAdmin, string ldapDistinguishedName, DateTimeOffset? suspendedAt) + public User(string avatarUrl, string bio, string blog, int collaborators, string company, DateTimeOffset createdAt, DateTimeOffset updatedAt, int diskUsage, string email, int followers, int following, bool? hireable, string htmlUrl, int totalPrivateRepos, long id, string location, string login, string name, string nodeId, int ownedPrivateRepos, Plan plan, int privateGists, int publicGists, int publicRepos, string url, RepositoryPermissions permissions, bool siteAdmin, string ldapDistinguishedName, DateTimeOffset? suspendedAt) : base(avatarUrl, bio, blog, collaborators, company, createdAt, diskUsage, email, followers, following, hireable, htmlUrl, totalPrivateRepos, id, location, login, name, nodeId, ownedPrivateRepos, plan, privateGists, publicGists, publicRepos, AccountType.User, url) { Permissions = permissions;