diff --git a/Source/StrongGrid/Models/CustomFieldMetadata.cs b/Source/StrongGrid/Models/CustomFieldMetadata.cs index 8526a7be..ee5f7784 100644 --- a/Source/StrongGrid/Models/CustomFieldMetadata.cs +++ b/Source/StrongGrid/Models/CustomFieldMetadata.cs @@ -15,6 +15,6 @@ public class CustomFieldMetadata : FieldMetadata /// The identifier. /// [JsonProperty("id", NullValueHandling = NullValueHandling.Ignore)] - public int Id { get; set; } + public long Id { get; set; } } } diff --git a/Source/StrongGrid/Models/Field.cs b/Source/StrongGrid/Models/Field.cs index bb3545c9..99868720 100644 --- a/Source/StrongGrid/Models/Field.cs +++ b/Source/StrongGrid/Models/Field.cs @@ -14,7 +14,7 @@ public class Field /// The identifier. /// [JsonProperty("id", NullValueHandling = NullValueHandling.Ignore)] - public int Id { get; set; } + public long Id { get; set; } /// /// Gets or sets the name. diff --git a/Source/StrongGrid/Models/Subuser.cs b/Source/StrongGrid/Models/Subuser.cs index 51ade4fc..20cadc93 100644 --- a/Source/StrongGrid/Models/Subuser.cs +++ b/Source/StrongGrid/Models/Subuser.cs @@ -14,7 +14,7 @@ public class Subuser /// The id. /// [JsonProperty("id", NullValueHandling = NullValueHandling.Ignore)] - public int Id { get; set; } + public long Id { get; set; } /// /// Gets or sets the username. diff --git a/Source/StrongGrid/Models/Suppression.cs b/Source/StrongGrid/Models/Suppression.cs index b3fd3361..977f77fa 100644 --- a/Source/StrongGrid/Models/Suppression.cs +++ b/Source/StrongGrid/Models/Suppression.cs @@ -25,7 +25,7 @@ public class Suppression /// The group id. /// [JsonProperty("group_id", NullValueHandling = NullValueHandling.Ignore)] - public int GroupId { get; set; } + public long GroupId { get; set; } /// /// Gets or sets the name of the suppression group. diff --git a/Source/StrongGrid/Models/SuppressionGroup.cs b/Source/StrongGrid/Models/SuppressionGroup.cs index 3baa659d..7a2506e5 100644 --- a/Source/StrongGrid/Models/SuppressionGroup.cs +++ b/Source/StrongGrid/Models/SuppressionGroup.cs @@ -15,7 +15,7 @@ public class SuppressionGroup /// The identifier. /// [JsonProperty("id", NullValueHandling = NullValueHandling.Ignore)] - public int Id { get; set; } + public long Id { get; set; } /// /// Gets or sets the name. diff --git a/Source/StrongGrid/Models/UnsubscribeOptions.cs b/Source/StrongGrid/Models/UnsubscribeOptions.cs index 83835c23..57f987a4 100644 --- a/Source/StrongGrid/Models/UnsubscribeOptions.cs +++ b/Source/StrongGrid/Models/UnsubscribeOptions.cs @@ -14,7 +14,7 @@ public class UnsubscribeOptions /// The group identifier. /// [JsonProperty("group_id", NullValueHandling = NullValueHandling.Ignore)] - public int GroupId { get; set; } + public long GroupId { get; set; } /// /// Gets or sets the groups to display. diff --git a/Source/StrongGrid/Models/Webhooks/ClickEvent.cs b/Source/StrongGrid/Models/Webhooks/ClickEvent.cs index bb0333c3..037f0e4c 100644 --- a/Source/StrongGrid/Models/Webhooks/ClickEvent.cs +++ b/Source/StrongGrid/Models/Webhooks/ClickEvent.cs @@ -34,7 +34,7 @@ public class ClickEvent : EngagementEvent /// The asm group identifier. /// [JsonProperty("asm_group_id", NullValueHandling = NullValueHandling.Ignore)] - public int AsmGroupId { get; set; } + public long AsmGroupId { get; set; } /// /// Gets or sets the newsletter. diff --git a/Source/StrongGrid/Models/Webhooks/DeferredEvent.cs b/Source/StrongGrid/Models/Webhooks/DeferredEvent.cs index 64a77410..53a669d8 100644 --- a/Source/StrongGrid/Models/Webhooks/DeferredEvent.cs +++ b/Source/StrongGrid/Models/Webhooks/DeferredEvent.cs @@ -33,7 +33,7 @@ public class DeferredEvent : DeliveryEvent /// The asm group identifier. /// [JsonProperty("asm_group_id", NullValueHandling = NullValueHandling.Ignore)] - public int AsmGroupId { get; set; } + public long AsmGroupId { get; set; } /// /// Gets or sets the newsletter. diff --git a/Source/StrongGrid/Models/Webhooks/DeliveredEvent.cs b/Source/StrongGrid/Models/Webhooks/DeliveredEvent.cs index 64401a6f..7f9215dd 100644 --- a/Source/StrongGrid/Models/Webhooks/DeliveredEvent.cs +++ b/Source/StrongGrid/Models/Webhooks/DeliveredEvent.cs @@ -24,7 +24,7 @@ public class DeliveredEvent : DeliveryEvent /// The asm group identifier. /// [JsonProperty("asm_group_id", NullValueHandling = NullValueHandling.Ignore)] - public int AsmGroupId { get; set; } + public long AsmGroupId { get; set; } /// /// Gets or sets the newsletter. diff --git a/Source/StrongGrid/Models/Webhooks/Event.cs b/Source/StrongGrid/Models/Webhooks/Event.cs index 3b721478..f9223841 100644 --- a/Source/StrongGrid/Models/Webhooks/Event.cs +++ b/Source/StrongGrid/Models/Webhooks/Event.cs @@ -115,7 +115,7 @@ public class Event /// Gets or sets the user identifier. /// /// - /// Theuser identifier. + /// The user identifier. /// [JsonProperty("sg_user_id", NullValueHandling = NullValueHandling.Ignore)] public long? UserId { get; set; } diff --git a/Source/StrongGrid/Models/Webhooks/GroupResubscribeEvent.cs b/Source/StrongGrid/Models/Webhooks/GroupResubscribeEvent.cs index bdbced2f..38f54958 100644 --- a/Source/StrongGrid/Models/Webhooks/GroupResubscribeEvent.cs +++ b/Source/StrongGrid/Models/Webhooks/GroupResubscribeEvent.cs @@ -16,6 +16,6 @@ public class GroupResubscribeEvent : EngagementEvent /// The asm group identifier. /// [JsonProperty("asm_group_id", NullValueHandling = NullValueHandling.Ignore)] - public int AsmGroupId { get; set; } + public long AsmGroupId { get; set; } } } diff --git a/Source/StrongGrid/Models/Webhooks/GroupUnsubscribeEvent.cs b/Source/StrongGrid/Models/Webhooks/GroupUnsubscribeEvent.cs index 59309dc1..d1e074fa 100644 --- a/Source/StrongGrid/Models/Webhooks/GroupUnsubscribeEvent.cs +++ b/Source/StrongGrid/Models/Webhooks/GroupUnsubscribeEvent.cs @@ -16,6 +16,6 @@ public class GroupUnsubscribeEvent : EngagementEvent /// The asm group identifier. /// [JsonProperty("asm_group_id", NullValueHandling = NullValueHandling.Ignore)] - public int AsmGroupId { get; set; } + public long AsmGroupId { get; set; } } } diff --git a/Source/StrongGrid/Models/Webhooks/OpenEvent.cs b/Source/StrongGrid/Models/Webhooks/OpenEvent.cs index 67adecde..2ec12da9 100644 --- a/Source/StrongGrid/Models/Webhooks/OpenEvent.cs +++ b/Source/StrongGrid/Models/Webhooks/OpenEvent.cs @@ -16,7 +16,7 @@ public class OpenEvent : EngagementEvent /// The asm group identifier. /// [JsonProperty("asm_group_id", NullValueHandling = NullValueHandling.Ignore)] - public int AsmGroupId { get; set; } + public long AsmGroupId { get; set; } /// /// Gets or sets the newsletter. diff --git a/Source/StrongGrid/Models/Webhooks/ProcessedEvent.cs b/Source/StrongGrid/Models/Webhooks/ProcessedEvent.cs index 8171b845..a28046e5 100644 --- a/Source/StrongGrid/Models/Webhooks/ProcessedEvent.cs +++ b/Source/StrongGrid/Models/Webhooks/ProcessedEvent.cs @@ -17,7 +17,7 @@ public class ProcessedEvent : DeliveryEvent /// The asm group identifier. /// [JsonProperty("asm_group_id", NullValueHandling = NullValueHandling.Ignore)] - public int AsmGroupId { get; set; } + public long AsmGroupId { get; set; } /// /// Gets or sets the newsletter. diff --git a/Source/StrongGrid/Models/Webhooks/SpamReportEvent.cs b/Source/StrongGrid/Models/Webhooks/SpamReportEvent.cs index 33744825..6d691eab 100644 --- a/Source/StrongGrid/Models/Webhooks/SpamReportEvent.cs +++ b/Source/StrongGrid/Models/Webhooks/SpamReportEvent.cs @@ -15,6 +15,6 @@ public class SpamReportEvent : EngagementEvent /// The asm group identifier. /// [JsonProperty("asm_group_id", NullValueHandling = NullValueHandling.Ignore)] - public int AsmGroupId { get; set; } + public long AsmGroupId { get; set; } } } diff --git a/Source/StrongGrid/Models/Webhooks/UnsubscribeEvent.cs b/Source/StrongGrid/Models/Webhooks/UnsubscribeEvent.cs index c687dfc7..707d059a 100644 --- a/Source/StrongGrid/Models/Webhooks/UnsubscribeEvent.cs +++ b/Source/StrongGrid/Models/Webhooks/UnsubscribeEvent.cs @@ -16,6 +16,6 @@ public class UnsubscribeEvent : EngagementEvent /// The asm group identifier. /// [JsonProperty("asm_group_id", NullValueHandling = NullValueHandling.Ignore)] - public int AsmGroupId { get; set; } + public long AsmGroupId { get; set; } } } diff --git a/Source/StrongGrid/Resources/Contacts.cs b/Source/StrongGrid/Resources/Contacts.cs index 31e05052..70d47b90 100644 --- a/Source/StrongGrid/Resources/Contacts.cs +++ b/Source/StrongGrid/Resources/Contacts.cs @@ -256,7 +256,7 @@ public async Task UpdateAsync( /// /// An array of . /// - public Task SearchAsync(IEnumerable conditions, int? listId = null, string onBehalfOf = null, CancellationToken cancellationToken = default(CancellationToken)) + public Task SearchAsync(IEnumerable conditions, long? listId = null, string onBehalfOf = null, CancellationToken cancellationToken = default(CancellationToken)) { var data = new JObject(); if (listId.HasValue) data.Add("list_id", listId.Value); diff --git a/Source/StrongGrid/Resources/CustomFields.cs b/Source/StrongGrid/Resources/CustomFields.cs index 0aebafb3..289e53ed 100644 --- a/Source/StrongGrid/Resources/CustomFields.cs +++ b/Source/StrongGrid/Resources/CustomFields.cs @@ -78,7 +78,7 @@ internal CustomFields(Pathoschild.Http.Client.IClient client) /// /// The metadata about the field. /// - public Task GetAsync(int fieldId, string onBehalfOf = null, CancellationToken cancellationToken = default(CancellationToken)) + public Task GetAsync(long fieldId, string onBehalfOf = null, CancellationToken cancellationToken = default(CancellationToken)) { return _client .GetAsync($"{_endpoint}/{fieldId}") @@ -96,7 +96,7 @@ internal CustomFields(Pathoschild.Http.Client.IClient client) /// /// The async task. /// - public Task DeleteAsync(int fieldId, string onBehalfOf = null, CancellationToken cancellationToken = default(CancellationToken)) + public Task DeleteAsync(long fieldId, string onBehalfOf = null, CancellationToken cancellationToken = default(CancellationToken)) { return _client .DeleteAsync($"{_endpoint}/{fieldId}") diff --git a/Source/StrongGrid/Resources/IContacts.cs b/Source/StrongGrid/Resources/IContacts.cs index e8714a91..d0fe6c5f 100644 --- a/Source/StrongGrid/Resources/IContacts.cs +++ b/Source/StrongGrid/Resources/IContacts.cs @@ -142,7 +142,7 @@ Task UpdateAsync( /// /// An array of . /// - Task SearchAsync(IEnumerable conditions, int? listId = null, string onBehalfOf = null, CancellationToken cancellationToken = default(CancellationToken)); + Task SearchAsync(IEnumerable conditions, long? listId = null, string onBehalfOf = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// Retrieve the lists that a recipient is on. diff --git a/Source/StrongGrid/Resources/ICustomFields.cs b/Source/StrongGrid/Resources/ICustomFields.cs index e65e4e43..086da45f 100644 --- a/Source/StrongGrid/Resources/ICustomFields.cs +++ b/Source/StrongGrid/Resources/ICustomFields.cs @@ -41,7 +41,7 @@ public interface ICustomFields /// /// The metadata about the field. /// - Task GetAsync(int fieldId, string onBehalfOf = null, CancellationToken cancellationToken = default(CancellationToken)); + Task GetAsync(long fieldId, string onBehalfOf = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// Delete a custom field. @@ -52,7 +52,7 @@ public interface ICustomFields /// /// The async task. /// - Task DeleteAsync(int fieldId, string onBehalfOf = null, CancellationToken cancellationToken = default(CancellationToken)); + Task DeleteAsync(long fieldId, string onBehalfOf = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// Retrieve the reserved fields. diff --git a/Source/StrongGrid/Resources/ISuppressions.cs b/Source/StrongGrid/Resources/ISuppressions.cs index 33024c55..e5247b39 100644 --- a/Source/StrongGrid/Resources/ISuppressions.cs +++ b/Source/StrongGrid/Resources/ISuppressions.cs @@ -44,7 +44,7 @@ public interface ISuppressions /// /// An array of string representing the email addresses /// - Task GetUnsubscribedAddressesAsync(int groupId, string onBehalfOf = null, CancellationToken cancellationToken = default(CancellationToken)); + Task GetUnsubscribedAddressesAsync(long groupId, string onBehalfOf = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// Add recipient address to the suppressions list for a given group. @@ -57,7 +57,7 @@ public interface ISuppressions /// /// The async task. /// - Task AddAddressToUnsubscribeGroupAsync(int groupId, string email, string onBehalfOf = null, CancellationToken cancellationToken = default(CancellationToken)); + Task AddAddressToUnsubscribeGroupAsync(long groupId, string email, string onBehalfOf = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// Add recipient addresses to the suppressions list for a given group. @@ -70,7 +70,7 @@ public interface ISuppressions /// /// The async task. /// - Task AddAddressToUnsubscribeGroupAsync(int groupId, IEnumerable emails, string onBehalfOf = null, CancellationToken cancellationToken = default(CancellationToken)); + Task AddAddressToUnsubscribeGroupAsync(long groupId, IEnumerable emails, string onBehalfOf = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// Delete a recipient email from the suppressions list for a group. @@ -82,7 +82,7 @@ public interface ISuppressions /// /// The async task. /// - Task RemoveAddressFromSuppressionGroupAsync(int groupId, string email, string onBehalfOf = null, CancellationToken cancellationToken = default(CancellationToken)); + Task RemoveAddressFromSuppressionGroupAsync(long groupId, string email, string onBehalfOf = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// Check if a recipient address is in the given suppression group. @@ -94,6 +94,6 @@ public interface ISuppressions /// /// true if the email address is in the global suppression group; otherwise, false. /// - Task IsSuppressedAsync(int groupId, string email, string onBehalfOf = null, CancellationToken cancellationToken = default(CancellationToken)); + Task IsSuppressedAsync(long groupId, string email, string onBehalfOf = null, CancellationToken cancellationToken = default(CancellationToken)); } } diff --git a/Source/StrongGrid/Resources/IUnsubscribeGroups.cs b/Source/StrongGrid/Resources/IUnsubscribeGroups.cs index 87f89a9b..0b0ed8d5 100644 --- a/Source/StrongGrid/Resources/IUnsubscribeGroups.cs +++ b/Source/StrongGrid/Resources/IUnsubscribeGroups.cs @@ -44,7 +44,7 @@ public interface IUnsubscribeGroups /// /// The . /// - Task GetAsync(int groupId, string onBehalfOf = null, CancellationToken cancellationToken = default(CancellationToken)); + Task GetAsync(long groupId, string onBehalfOf = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// Create a new suppression group. @@ -70,7 +70,7 @@ public interface IUnsubscribeGroups /// /// The . /// - Task UpdateAsync(int groupId, Parameter name = default(Parameter), Parameter description = default(Parameter), string onBehalfOf = null, CancellationToken cancellationToken = default(CancellationToken)); + Task UpdateAsync(long groupId, Parameter name = default(Parameter), Parameter description = default(Parameter), string onBehalfOf = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// Delete a suppression group. @@ -81,6 +81,6 @@ public interface IUnsubscribeGroups /// /// The async task. /// - Task DeleteAsync(int groupId, string onBehalfOf = null, CancellationToken cancellationToken = default(CancellationToken)); + Task DeleteAsync(long groupId, string onBehalfOf = null, CancellationToken cancellationToken = default(CancellationToken)); } } diff --git a/Source/StrongGrid/Resources/Suppressions.cs b/Source/StrongGrid/Resources/Suppressions.cs index b8faad12..d1deba23 100644 --- a/Source/StrongGrid/Resources/Suppressions.cs +++ b/Source/StrongGrid/Resources/Suppressions.cs @@ -86,7 +86,7 @@ internal Suppressions(Pathoschild.Http.Client.IClient client) /// /// An array of string representing the email addresses /// - public Task GetUnsubscribedAddressesAsync(int groupId, string onBehalfOf = null, CancellationToken cancellationToken = default(CancellationToken)) + public Task GetUnsubscribedAddressesAsync(long groupId, string onBehalfOf = null, CancellationToken cancellationToken = default(CancellationToken)) { return _client .GetAsync($"{_endpoint}/groups/{groupId}/suppressions") @@ -106,7 +106,7 @@ internal Suppressions(Pathoschild.Http.Client.IClient client) /// /// The async task. /// - public Task AddAddressToUnsubscribeGroupAsync(int groupId, string email, string onBehalfOf = null, CancellationToken cancellationToken = default(CancellationToken)) + public Task AddAddressToUnsubscribeGroupAsync(long groupId, string email, string onBehalfOf = null, CancellationToken cancellationToken = default(CancellationToken)) { return AddAddressToUnsubscribeGroupAsync(groupId, new[] { email }, onBehalfOf, cancellationToken); } @@ -122,7 +122,7 @@ internal Suppressions(Pathoschild.Http.Client.IClient client) /// /// The async task. /// - public Task AddAddressToUnsubscribeGroupAsync(int groupId, IEnumerable emails, string onBehalfOf = null, CancellationToken cancellationToken = default(CancellationToken)) + public Task AddAddressToUnsubscribeGroupAsync(long groupId, IEnumerable emails, string onBehalfOf = null, CancellationToken cancellationToken = default(CancellationToken)) { var data = new JObject(new JProperty("recipient_emails", JArray.FromObject(emails.ToArray()))); return _client @@ -143,7 +143,7 @@ internal Suppressions(Pathoschild.Http.Client.IClient client) /// /// The async task. /// - public Task RemoveAddressFromSuppressionGroupAsync(int groupId, string email, string onBehalfOf = null, CancellationToken cancellationToken = default(CancellationToken)) + public Task RemoveAddressFromSuppressionGroupAsync(long groupId, string email, string onBehalfOf = null, CancellationToken cancellationToken = default(CancellationToken)) { return _client .DeleteAsync($"{_endpoint}/groups/{groupId}/suppressions/{email}") @@ -162,7 +162,7 @@ internal Suppressions(Pathoschild.Http.Client.IClient client) /// /// true if the email address is in the global suppression group; otherwise, false. /// - public async Task IsSuppressedAsync(int groupId, string email, string onBehalfOf = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task IsSuppressedAsync(long groupId, string email, string onBehalfOf = null, CancellationToken cancellationToken = default(CancellationToken)) { var data = new JObject { diff --git a/Source/StrongGrid/Resources/UnsubscribeGroups.cs b/Source/StrongGrid/Resources/UnsubscribeGroups.cs index 969be912..541617bc 100644 --- a/Source/StrongGrid/Resources/UnsubscribeGroups.cs +++ b/Source/StrongGrid/Resources/UnsubscribeGroups.cs @@ -84,7 +84,7 @@ internal UnsubscribeGroups(Pathoschild.Http.Client.IClient client) /// /// The . /// - public Task GetAsync(int groupId, string onBehalfOf = null, CancellationToken cancellationToken = default(CancellationToken)) + public Task GetAsync(long groupId, string onBehalfOf = null, CancellationToken cancellationToken = default(CancellationToken)) { return _client .GetAsync($"{_endpoint}/{groupId}") @@ -131,7 +131,7 @@ internal UnsubscribeGroups(Pathoschild.Http.Client.IClient client) /// /// The . /// - public Task UpdateAsync(int groupId, Parameter name = default(Parameter), Parameter description = default(Parameter), string onBehalfOf = null, CancellationToken cancellationToken = default(CancellationToken)) + public Task UpdateAsync(long groupId, Parameter name = default(Parameter), Parameter description = default(Parameter), string onBehalfOf = null, CancellationToken cancellationToken = default(CancellationToken)) { var data = new JObject(); if (name.HasValue) data.Add("name", name.Value); @@ -154,7 +154,7 @@ internal UnsubscribeGroups(Pathoschild.Http.Client.IClient client) /// /// The async task. /// - public Task DeleteAsync(int groupId, string onBehalfOf = null, CancellationToken cancellationToken = default(CancellationToken)) + public Task DeleteAsync(long groupId, string onBehalfOf = null, CancellationToken cancellationToken = default(CancellationToken)) { return _client .DeleteAsync($"{_endpoint}/{groupId}")