Class ActivateModel
Inheritance
System.Object
ActivateModel
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Assembly: Cryptolens.Licensing.dll
Syntax
public class ActivateModel : RequestModel
Properties
FieldsToReturn
Declaration
public int FieldsToReturn { get; set; }
Property Value
Type |
Description |
System.Int32 |
|
FloatingTimeInterval
When set to something greater than zero, floating licensing will be enabled.
The time interval is then used to check that no more than the allowed number
of machine codes (specified in maximumNumberOfMachines) have been activated
in that time period (in seconds).
Declaration
public int FloatingTimeInterval { get; set; }
Property Value
Type |
Description |
System.Int32 |
|
FriendlyName
Allows you to specify a friendy name for the activated device, for example the
employee's email. Friendly name does not impact the number of active machine codes / seats,
but it offers an easy way of linking a machine/seat with a user. For added security,
you can HMAC hash this value.
Declaration
public string FriendlyName { get; set; }
Property Value
Type |
Description |
System.String |
|
Key
The Key string, eg. AAAA-BBBB-CCCC-DDDD.
Declaration
public string Key { get; set; }
Property Value
Type |
Description |
System.String |
|
MachineCode
The machine code (a string that identifies a device) for activation.
Declaration
public string MachineCode { get; set; }
Property Value
Type |
Description |
System.String |
|
MaxOverdraft
When set to something greater than zero (and assuming FloatingTimeInterval is set too)
floating licensing will permit a license overdraft (eg. activation will succeed even if
maximumNumberOfMachines is reached). MaxOverdraft value specifies how much we can exceed
the maximumNumberOfMachines value.
Declaration
public int MaxOverdraft { get; set; }
Property Value
Type |
Description |
System.Int32 |
|
Includes additional information about the license key, such as number of activated devices, etc.
Declaration
public bool Metadata { get; set; }
Property Value
Type |
Description |
System.Boolean |
|
OSInfo
Additional OS information, which will be registered as an event. If this variable is not set or set to null,
this variable will contain a JSON serialized version of MachineInfo, which is computed using
GetOSStats(). If you do not want OS data to be registered, set this variable to
empty string. You can also send in other data by setting this variable to something else.
Be careful with personal identifiable information and do not send in more data than necessary. Please read more
at https://help.cryptolens.io/legal/DataPolicy#how-to-be-compliant-as-a-software-vendor.
Declaration
public string OSInfo { get; set; }
Property Value
Type |
Description |
System.String |
|
ProductId
The product id, which can be found on the product page.
Declaration
public int ProductId { get; set; }
Property Value
Type |
Description |
System.Int32 |
|
Sign
If true, the information inside the LiceseKey object will be signed. Note,
in almost all cases, you should set this to True.
Declaration
public bool Sign { get; set; }
Property Value
Type |
Description |
System.Boolean |
|
SignMethod
Declaration
public SignMethod SignMethod { get; set; }
Property Value