Table of Contents

Class CategoryAdaptionHint

Namespace
Artemis.Core
Assembly
Artemis.Core.dll

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

public class CategoryAdaptionHint : CorePropertyChanged, IAdaptionHint
Inheritance
CategoryAdaptionHint
Implements

Constructors

CategoryAdaptionHint()

Creates a new instance of the CategoryAdaptionHint class

public CategoryAdaptionHint()

Properties

Amount

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

public int Amount { get; set; }

Property Value

int

Category

Gets or sets the category of devices LEDs will be applied to

public DeviceCategory Category { get; set; }

Property Value

DeviceCategory

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.