Skip to content

DeviceSelector

Class in Oadm.Sdk.Events · Oadm.Sdk.dll

Which devices a condition or an action applies to.

public sealed class DeviceSelector
List<Guid> DeviceIds { get; set; }

Chosen devices.

bool IsChoice { get; }

A choice of devices and tags (DeviceSelectorMode.Devices or the older Tags).

bool IsEmptyChoice { get; }

A choice with neither devices nor tags.

DeviceSelectorMode Mode { get; set; }

How the devices are chosen.

List<string> Tags { get; set; }

Chosen tags: every device with one of them.

bool ChoiceMatches(Guid deviceId, IEnumerable<string> deviceTags)

Whether a device with deviceTags belongs to a choice: listed, or one of its tags chosen.

DeviceSelector Clone()

A copy.