using Prism.Mvvm; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace TeamAAS_VP.Models.Lights { public class ChannelConfig: BindableBase { private string _Name; /// /// 通道名称 /// public string Name { get { return _Name; } set { SetProperty(ref _Name, value); } } private string _Description; /// /// 通道描述 /// public string Description { get { return _Description; } set { SetProperty(ref _Description, value); } } private int _LocalIndex; /// /// 控制器内的通道索引 /// public int LocalIndex { get { return _LocalIndex; } set { SetProperty(ref _LocalIndex, value); } } private int _GlobalIndex; /// /// 系统中的全局通道索引 /// public int GlobalIndex { get { return _GlobalIndex; } set { SetProperty(ref _GlobalIndex, value); } } private int _DefaultBrightness=100; public int DefaultBrightness { get { return _DefaultBrightness; } set { SetProperty(ref _DefaultBrightness, value); } } public ChannelConfig() { } public ChannelConfig(int localIndex, int globalIndex, string name = "", string description = "", int defaultBrightness=100) { LocalIndex = localIndex; GlobalIndex = globalIndex; Name = name; Description = description; DefaultBrightness = defaultBrightness; } } }