Table of Contents

Class SingleLedAdaptionHint

Namespace
Artemis.Core
Assembly
Artemis.Core.dll

Represents a hint that adapts layers to a single LED of one or more devices

public class SingleLedAdaptionHint : CorePropertyChanged, IAdaptionHint
Inheritance
object
CorePropertyChanged
SingleLedAdaptionHint
Implements

Constructors

SingleLedAdaptionHint()

Creates a new instance of the SingleLedAdaptionHint class

public SingleLedAdaptionHint()

Properties

Amount

Gets or sets the amount of devices to limit to if LimitAmount is true

public int Amount { get; set; }

Property Value

int

LedId

Gets or sets the LED ID to apply to.

public LedId LedId { get; set; }

Property Value

LedId

LimitAmount

Gets or sets a boolean indicating whether a limited amount of devices should be used

public bool LimitAmount { get; set; }

Property Value

bool

Skip

Gets or sets the amount of devices to skip

public int Skip { get; set; }

Property Value

int

Methods

Apply(Layer, List<ArtemisDevice>)

Applies the adaptive action to the provided layer

public void Apply(Layer layer, List<ArtemisDevice> devices)

Parameters

layer Layer

The layer to adapt

devices List<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.