Files
DP44/Common/DTS.CommonCore/.svn/pristine/12/1274b9337301ff7edd8e697c8b0dff8655de33db.svn-base

49 lines
1.6 KiB
Plaintext
Raw Permalink Normal View History

2026-04-17 14:55:32 -04:00
using DTS.Common.Base;
using DTS.Common.Interface.Channels;
using System.Data;
namespace DTS.Common.Classes.Groups.ChannelSettings
{
public class GroupChannelSettingRecord: BasePropertyChanged, IGroupChannelSettingRecord
{
private long _channelId;
public long ChannelId
{
get => _channelId;
set => SetProperty(ref _channelId, value, "ChannelId");
}
private int _settingId;
public int SettingId
{
get => _settingId;
set => SetProperty(ref _settingId, value, "SettingId");
}
private string _settingValue;
public string SettingValue
{
get => _settingValue;
set => SetProperty(ref _settingValue, value, "SettingValue");
}
public GroupChannelSettingRecord() { }
public GroupChannelSettingRecord(IDataReader reader, int storedProcedureVersionUsed)
{
if (storedProcedureVersionUsed >= Constants.BULK_GROUPCHANNELSETTINGS_GET_DB_VERSION)
{
ChannelId = Utility.GetLong(reader, "ChannelId");
}
else
{
ChannelId = 0;
}
SettingId = Utility.GetInt(reader, "SettingId");
SettingValue = Utility.GetString(reader, "SettingValue");
}
public GroupChannelSettingRecord(long channelId, int settingId, string settingValue)
{
ChannelId = channelId;
SettingId = settingId;
SettingValue = settingValue;
}
}
}