ProLicenseInfo
Record in Oadm.Sdk.Licensing · Oadm.Sdk.dll
The server’s OADM PRO license as OADM checked it. OADM itself never depends on it: it only tells PRO plugins whether PRO is active, the plan, the number of devices and the last day.
public sealed record ProLicenseInfo(ProLicenseStatus Status, string Reason, string? Customer = null, string? Plan = null, long? MaxDevices = null, DateOnly? Expires = null, bool IsTrial = false)Parameters
Status: The state of the license.Reason: One plain sentence for the Settings page and the plugins’ own messages.Customer: Who the license is for; null without a readable license.Plan: The plan, e.g. “Up to 500 devices”; null without a readable license.MaxDevices: The devices the plan covers; null = no limit or no readable license.Expires: The last day of the license; null = it never expires or no readable license.IsTrial: The 30-day trial OADM started, or a trial license key.
Properties
Section titled “Properties”Customer
Section titled “Customer”string? Customer { get; init; }Who the license is for; null without a readable license.
Expires
Section titled “Expires”DateOnly? Expires { get; init; }The last day of the license; null = it never expires or no readable license.
IsActive
Section titled “IsActive”bool IsActive { get; }OADM PRO is active: a valid license or trial license for this server.
IsTrial
Section titled “IsTrial”bool IsTrial { get; init; }The 30-day trial OADM started, or a trial license key.
MaxDevices
Section titled “MaxDevices”long? MaxDevices { get; init; }The devices the plan covers; null = no limit or no readable license.
static ProLicenseInfo None { get; }The state without a license.
string? Plan { get; init; }The plan, e.g. “Up to 500 devices”; null without a readable license.
Reason
Section titled “Reason”string Reason { get; init; }One plain sentence for the Settings page and the plugins’ own messages.
Status
Section titled “Status”ProLicenseStatus Status { get; init; }The state of the license.
TrialAvailable
Section titled “TrialAvailable”bool TrialAvailable { get; init; }The 30-day trial can be started now (SDK 0.4.0): OADM PRO is not active and no trial ran on this server yet. An administrator starts it on the Settings page or on the page of a PRO part.