using Microsoft.Toolkit.Mvvm.Input;
using Newtonsoft.Json;
using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace BPASmart.VariableManager.Models
{
public class CommunicationModel : NoticeBase
{
///
/// 通讯设备
///
[JsonProperty(TypeNameHandling = TypeNameHandling.Auto)]
public ICommunicationDevice CommDevice { get { return _mCommDevice; } set { _mCommDevice = value; OnPropertyChanged(); } }
private ICommunicationDevice _mCommDevice;
///
/// 是否激活
///
public bool IsActive { get { return _mIsActive; } set { _mIsActive = value; OnPropertyChanged(); } }
private bool _mIsActive = true;
///
/// 新增设备名称
///
public string DeviceName { get { return _mDeviceName; } set { _mDeviceName = value; OnPropertyChanged(); } }
private string _mDeviceName;
///
/// 变量表数据
///
public ObservableCollection VarTableModels { get; set; } = new ObservableCollection();
}
}