From cf426748d3b7aef776a06da223260f6acfee4399 Mon Sep 17 00:00:00 2001 From: Jeremie Desautels Date: Tue, 16 Jan 2018 13:57:26 -0500 Subject: [PATCH 1/3] Fix incorrect identifier data type #214 --- Source/StrongGrid/Models/CustomFieldMetadata.cs | 2 +- Source/StrongGrid/Models/Field.cs | 2 +- Source/StrongGrid/Models/Subuser.cs | 2 +- Source/StrongGrid/Models/Suppression.cs | 2 +- Source/StrongGrid/Models/SuppressionGroup.cs | 2 +- Source/StrongGrid/Models/UnsubscribeOptions.cs | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) 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. From a422047d6ad3633ecb0237493487901a99f92d5d Mon Sep 17 00:00:00 2001 From: Jeremie Desautels Date: Tue, 16 Jan 2018 14:06:47 -0500 Subject: [PATCH 2/3] Fix wrong data type used by the AsmGroupId property in the Webhook model classes #214 --- Source/StrongGrid/Models/Webhooks/ClickEvent.cs | 2 +- Source/StrongGrid/Models/Webhooks/DeferredEvent.cs | 2 +- Source/StrongGrid/Models/Webhooks/DeliveredEvent.cs | 2 +- Source/StrongGrid/Models/Webhooks/Event.cs | 2 +- Source/StrongGrid/Models/Webhooks/GroupResubscribeEvent.cs | 2 +- Source/StrongGrid/Models/Webhooks/GroupUnsubscribeEvent.cs | 2 +- Source/StrongGrid/Models/Webhooks/OpenEvent.cs | 2 +- Source/StrongGrid/Models/Webhooks/ProcessedEvent.cs | 2 +- Source/StrongGrid/Models/Webhooks/SpamReportEvent.cs | 2 +- Source/StrongGrid/Models/Webhooks/UnsubscribeEvent.cs | 2 +- 10 files changed, 10 insertions(+), 10 deletions(-) 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; } } } From 28f874fe41ea6fb2dbdcaa485ea220e162ea7a41 Mon Sep 17 00:00:00 2001 From: Jeremie Desautels Date: Tue, 16 Jan 2018 14:17:59 -0500 Subject: [PATCH 3/3] Fix incorrect data type for identifiers in Resource methods #214 --- Source/StrongGrid/Resources/Contacts.cs | 2 +- Source/StrongGrid/Resources/CustomFields.cs | 4 ++-- Source/StrongGrid/Resources/IContacts.cs | 2 +- Source/StrongGrid/Resources/ICustomFields.cs | 4 ++-- Source/StrongGrid/Resources/ISuppressions.cs | 10 +++++----- Source/StrongGrid/Resources/IUnsubscribeGroups.cs | 6 +++--- Source/StrongGrid/Resources/Suppressions.cs | 10 +++++----- Source/StrongGrid/Resources/UnsubscribeGroups.cs | 6 +++--- 8 files changed, 22 insertions(+), 22 deletions(-) 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 Task GetTotalCountAsync(string onBehalfOf = null, CancellationToken /// /// 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 @@ public Task GetAllAsync(string onBehalfOf = null, Cancell /// /// 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 @@ public Task GetAsync(int fieldId, string onBehalfOf = null, /// /// 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 @@ public interface IContacts /// /// 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 @@ public async Task GetUnsubscribedGroupsAsync(string email, s /// /// 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 @@ public Task GetUnsubscribedAddressesAsync(int groupId, string onBehalf /// /// 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 @@ public Task AddAddressToUnsubscribeGroupAsync(int groupId, string email, string /// /// 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 @@ public Task AddAddressToUnsubscribeGroupAsync(int groupId, IEnumerable e /// /// 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 @@ public Task RemoveAddressFromSuppressionGroupAsync(int groupId, string email, st /// /// 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 @@ public Task GetMultipleAsync(IEnumerable groupIds, stri /// /// 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 @@ public Task CreateAsync(string name, string description, bool /// /// 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 @@ public Task UpdateAsync(int groupId, Parameter name = /// /// 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}")