Class DeviceAdaptionHint
Represents a hint that adapts layers to a certain type of devices
public class DeviceAdaptionHint : CorePropertyChanged, IAdaptionHint
- Inheritance
-
objectCorePropertyChangedDeviceAdaptionHint
- Implements
Constructors
DeviceAdaptionHint()
Creates a new instance of the DeviceAdaptionHint class
public DeviceAdaptionHint()
Properties
Amount
Gets or sets the amount of devices to limit to if LimitAmount is true
public int Amount { get; set; }
Property Value
DeviceType
Gets or sets the type of devices LEDs will be applied to
public RGBDeviceType DeviceType { get; set; }
Property Value
- RGBDeviceType
LimitAmount
Gets or sets a boolean indicating whether a limited amount of devices should be used
public bool LimitAmount { get; set; }
Property Value
Skip
Gets or sets the amount of devices to skip
public int Skip { get; set; }
Property Value
Methods
Apply(Layer, List<ArtemisDevice>)
Applies the adaptive action to the provided layer
public void Apply(Layer layer, List<ArtemisDevice> devices)
Parameters
layerLayerThe layer to adapt
devicesList<ArtemisDevice>The devices to adapt the layer for
GetEntry()
Returns an adaption hint entry for this adaption hint used for persistent storage
public IAdaptionHintEntity GetEntry()
Returns
- IAdaptionHintEntity
ToString()
Returns a string that represents the current object.
public override string ToString()
Returns
- string
A string that represents the current object.