37 lines
1.1 KiB
Plaintext
37 lines
1.1 KiB
Plaintext
|
|
using DTS.Common.Interface.Channels;
|
||
|
|
using System.Data;
|
||
|
|
|
||
|
|
namespace DTS.Common.Classes.Groups.ChannelSettings
|
||
|
|
{
|
||
|
|
public class ChannelSettingRecord : Common.Base.BasePropertyChanged, IChannelSettingRecord
|
||
|
|
{
|
||
|
|
private int _id;
|
||
|
|
public int Id
|
||
|
|
{
|
||
|
|
get => _id;
|
||
|
|
set => SetProperty(ref _id, value, "Id");
|
||
|
|
}
|
||
|
|
|
||
|
|
private string _settingName;
|
||
|
|
public string SettingName
|
||
|
|
{
|
||
|
|
get => _settingName;
|
||
|
|
set => SetProperty(ref _settingName, value, "SettingName");
|
||
|
|
}
|
||
|
|
|
||
|
|
private string _defaultValue;
|
||
|
|
public string DefaultValue
|
||
|
|
{
|
||
|
|
get => _defaultValue;
|
||
|
|
set => SetProperty(ref _defaultValue, value, "DefaultValue");
|
||
|
|
}
|
||
|
|
public ChannelSettingRecord() { }
|
||
|
|
public ChannelSettingRecord(IDataReader reader)
|
||
|
|
{
|
||
|
|
Id = Utility.GetInt(reader, "Id");
|
||
|
|
SettingName = Utility.GetString(reader, "SettingName");
|
||
|
|
DefaultValue = Utility.GetString(reader, "DefaultValue");
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|