From 0850ab10b89f77c1462fa8d5c79c8fd6267f341a Mon Sep 17 00:00:00 2001 From: Ahmad Kemsan Date: Wed, 31 Jul 2024 14:43:21 +0530 Subject: [PATCH 1/2] refactor: update UserLicense property data type to long --- src/Cryptlex.LexActivator/UserLicense.cs | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/src/Cryptlex.LexActivator/UserLicense.cs b/src/Cryptlex.LexActivator/UserLicense.cs index a8bb4af..7e39f16 100644 --- a/src/Cryptlex.LexActivator/UserLicense.cs +++ b/src/Cryptlex.LexActivator/UserLicense.cs @@ -6,12 +6,24 @@ namespace Cryptlex { public class UserLicense { - public int AllowedActivations; + /// + /// The allowed activations of the license. A value of -1 indicates unlimited number of activations. + /// + public long AllowedActivations; - public int AllowedDeactivations; + /// + /// The allowed deactivations of the license. A value of -1 indicates unlimited number of activations. + /// + public long AllowedDeactivations; + /// + /// The license key. + /// public string Key; + /// + /// The license type (node-locked or hosted-floating). + /// public string Type; } } \ No newline at end of file From 8a49d2ef2c02ab03e773df089e03aaeb053cb860 Mon Sep 17 00:00:00 2001 From: Ahmad Kemsan Date: Wed, 31 Jul 2024 15:15:22 +0530 Subject: [PATCH 2/2] docs: updated userLicense docs --- src/Cryptlex.LexActivator/UserLicense.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Cryptlex.LexActivator/UserLicense.cs b/src/Cryptlex.LexActivator/UserLicense.cs index 7e39f16..e8044f7 100644 --- a/src/Cryptlex.LexActivator/UserLicense.cs +++ b/src/Cryptlex.LexActivator/UserLicense.cs @@ -12,7 +12,7 @@ public class UserLicense public long AllowedActivations; /// - /// The allowed deactivations of the license. A value of -1 indicates unlimited number of activations. + /// The allowed deactivations of the license. A value of -1 indicates unlimited number of deactivations. /// public long AllowedDeactivations;