DeviceSelector
Class in Oadm.Sdk.Events · Oadm.Sdk.dll
Which devices a condition or an action applies to.
public sealed class DeviceSelectorProperties
Section titled “Properties”DeviceIds
Section titled “DeviceIds”List<Guid> DeviceIds { get; set; }Chosen devices.
IsChoice
Section titled “IsChoice”bool IsChoice { get; }A choice of devices and tags (DeviceSelectorMode.Devices or the older Tags).
IsEmptyChoice
Section titled “IsEmptyChoice”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.
Methods
Section titled “Methods”ChoiceMatches
Section titled “ChoiceMatches”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.