Skip to content

PluginToolDevices

Record in Oadm.Sdk.Plugins · Oadm.Sdk.dll

The devices of a tool with PluginTool.DeviceFilter as the host hands them to the plugin: the ids of the caller’s devices that match the filter (at most PluginTool.MaxDevices) and how many matched.

public sealed record PluginToolDevices(IReadOnlyList<Guid> Ids, int Total)

Parameters

  • Ids: The devices, in the order of their address. Look each one up with the call’s Devices: never trust an id.
  • Total: How many devices matched; more than PluginToolDevices.Ids when the filter matched more than the host hands over.
IReadOnlyList<Guid> Ids { get; init; }

The devices, in the order of their address. Look each one up with the call’s Devices: never trust an id.

int Left { get; }

Devices that matched but are not in PluginToolDevices.Ids.

int Total { get; init; }

How many devices matched; more than PluginToolDevices.Ids when the filter matched more than the host hands over.

static PluginToolDevices Of(string? payloadJson)

The devices of a payload; none for a payload without them.