Table of Contents

Class DeviceAdaptionHint

Namespace
Artemis.Core
Assembly
Artemis.Core.dll

Represents a hint that adapts layers to a certain type of devices

public class DeviceAdaptionHint : CorePropertyChanged, IAdaptionHint
Inheritance
object
CorePropertyChanged
DeviceAdaptionHint
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

int

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

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.