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.jsonid) 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.
Properties
Section titled “Properties”Customer
Section titled “Customer”string Customer { get; init; }Who bought it, shown on the Plugins page.
Expires
Section titled “Expires”DateOnly? Expires { get; init; }The last day the license is valid; null = it never expires.
Features
Section titled “Features”IReadOnlyList<string> Features { get; init; }The features it unlocks; empty = every feature of the plugin.
Issued
Section titled “Issued”DateOnly Issued { get; init; }The day the vendor made the license.
Limits
Section titled “Limits”IReadOnlyDictionary<string, long> Limits { get; init; }Numbers the plugin enforces itself, for example “devices” = 500.
Plugin
Section titled “Plugin”string Plugin { get; init; }The plugin id (plugin.json id) the license is for.
ServerId
Section titled “ServerId”string ServerId { get; init; }The server the license is for (the server ID on the Plugins page).