Class License
The class that is serialized and hashed to check for a valid license
Inheritance
Implements
Inherited Members
Namespace: LemonEdge.API.Core
Assembly: API.dll
Syntax
[DataContract]
[Serializable]
public class License : ILicense
Properties
LicenseEmail
An active email address for this license.
Declaration
[Key]
public string LicenseEmail { get; set; }
Property Value
Type | Description |
---|---|
System.String |
LicenseExpirey
The date this license is valid to. The license will be invalid after this date, and you'll need to renew.
Declaration
public DateTimeOffset? LicenseExpirey { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<System.DateTimeOffset> |
LicenseMaxCustomObjects
The maximum number of entities created through either the custom object auto-code designer, or directly in code against our API. This is a count of the unique id of objects regardless of database/account, one custom object in two databases still counts as one object.
Declaration
public int LicenseMaxCustomObjects { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 |
LicenseMaxProductionDatabases
The maximum number of production databases. Excludes Dev, Test, UAT and other non-production databases.
Declaration
public int LicenseMaxProductionDatabases { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 |
LicenseMaxUserCount
The maximum number of external users tied to this license. Internal users are covered by your normal production license.
Declaration
public int? LicenseMaxUserCount { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<System.Int32> |
LicenseName
The company name this license is for. A license is only valid for one company.
Declaration
public string LicenseName { get; set; }
Property Value
Type | Description |
---|---|
System.String |
LicenseType
The type of license for this account.
Declaration
public LicenseType LicenseType { get; set; }
Property Value
Type | Description |
---|---|
LicenseType |
Methods
From(ILicense)
Creates a license class for checking from any valid implementation of ILicense
Declaration
public static License From(ILicense license)
Parameters
Type | Name | Description |
---|---|---|
ILicense | license | The license to copy all valid license values from |
Returns
Type | Description |
---|---|
License | A new License class that can be used to check for a valid license |
ToShortString()
A short user friendly description of what this license entails
Declaration
public string ToShortString()
Returns
Type | Description |
---|---|
System.String |
ToString()
A user friendly description of what this license entails
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
System.String |