Skip to content

LicenseData

Record in Oadm.Sdk.Licensing · Oadm.Sdk.dll

What a license file says, signed by the plugin’s vendor.

public sealed record LicenseData(string Plugin, string ServerId, string Customer, DateOnly Issued, DateOnly? Expires, IReadOnlyList<string> Features, IReadOnlyDictionary<string, long> Limits)

Parameters

  • Plugin: The plugin id (plugin.json id) the license is for.
  • ServerId: The server the license is for (the server ID on the Plugins page).
  • Customer: Who bought it, shown on the Plugins page.
  • Issued: The day the vendor made the license.
  • Expires: The last day the license is valid; null = it never expires.
  • Features: The features it unlocks; empty = every feature of the plugin.
  • Limits: Numbers the plugin enforces itself, for example “devices” = 500.
string Customer { get; init; }

Who bought it, shown on the Plugins page.

DateOnly? Expires { get; init; }

The last day the license is valid; null = it never expires.

IReadOnlyList<string> Features { get; init; }

The features it unlocks; empty = every feature of the plugin.

DateOnly Issued { get; init; }

The day the vendor made the license.

IReadOnlyDictionary<string, long> Limits { get; init; }

Numbers the plugin enforces itself, for example “devices” = 500.

string Plugin { get; init; }

The plugin id (plugin.json id) the license is for.

string ServerId { get; init; }

The server the license is for (the server ID on the Plugins page).