Skip to content

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.
string? Customer { get; init; }

Who the license is for; null without a readable license.

DateOnly? Expires { get; init; }

The last day of the license; null = it never expires or no readable license.

bool IsActive { get; }

OADM PRO is active: a valid license or trial license for this server.

bool IsTrial { get; init; }

The 30-day trial OADM started, or a trial license key.

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.

string Reason { get; init; }

One plain sentence for the Settings page and the plugins’ own messages.

ProLicenseStatus Status { get; init; }

The state of the license.

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.