Class CategoryAdaptionHint
Represents a hint that adapts layers to a certain category of devices
Implements
Namespace: Artemis.Core
Assembly: Artemis.Core.dll
Syntax
public class CategoryAdaptionHint : CorePropertyChanged, IAdaptionHint
Constructors
CategoryAdaptionHint()
Creates a new instance of the CategoryAdaptionHint class
Declaration
public CategoryAdaptionHint()
Properties
Amount
Gets or sets the amount of devices to limit to if LimitAmount is true
Declaration
public int Amount { get; set; }
Property Value
Type | Description |
---|---|
int |
Category
Gets or sets the category of devices LEDs will be applied to
Declaration
public DeviceCategory Category { get; set; }
Property Value
Type | Description |
---|---|
DeviceCategory |
LimitAmount
Gets or sets a boolean indicating whether a limited amount of devices should be used
Declaration
public bool LimitAmount { get; set; }
Property Value
Type | Description |
---|---|
bool |
Skip
Gets or sets the amount of devices to skip
Declaration
public int Skip { get; set; }
Property Value
Type | Description |
---|---|
int |
Methods
Apply(Layer, List<ArtemisDevice>)
Applies the adaptive action to the provided layer
Declaration
public void Apply(Layer layer, List<ArtemisDevice> devices)
Parameters
Type | Name | Description |
---|---|---|
Layer | layer | The layer to adapt |
List<ArtemisDevice> | devices | The devices to adapt the layer for |
GetEntry()
Returns an adaption hint entry for this adaption hint used for persistent storage
Declaration
public IAdaptionHintEntity GetEntry()
Returns
Type | Description |
---|---|
IAdaptionHintEntity |
ToString()
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
string |