Skip to content

DeviceChoice

Record in Oadm.Sdk.Client.Controls · Oadm.Sdk.Client.dll

The result of the DevicePickerWindow: all devices, the device of the event, or chosen devices and tags.

public sealed record DeviceChoice(DeviceChoiceKind Kind, IReadOnlyList<Guid> DeviceIds, IReadOnlyList<string> Tags)

Parameters

  • Kind: All devices, the device of the event, or chosen devices and tags.
  • DeviceIds: The chosen devices.
  • Tags: The chosen tags: every device with one of them.
static DeviceChoice AllDevices { get; }

Every managed device, also devices added later.

IReadOnlyList<Guid> DeviceIds { get; init; }

The chosen devices.

static DeviceChoice EventDevice { get; }

The device of the event.

bool IsEmpty { get; }

A chosen set without devices and tags.

DeviceChoiceKind Kind { get; init; }

All devices, the device of the event, or chosen devices and tags.

IReadOnlyList<string> Tags { get; init; }

The chosen tags: every device with one of them.

static DeviceChoice Devices(IEnumerable<Guid> ids, IEnumerable<string>? tags = null)

These devices and the devices with these tags.