|
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748 |
- 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.Model
- {
- public class CommunicationModel : NoticeBase
- {
-
- /// <summary>
- /// 通讯设备
- /// </summary>
- [JsonProperty(TypeNameHandling = TypeNameHandling.Auto)]
- public ICommunicationDevice CommDevice { get { return _mCommDevice; } set { _mCommDevice = value; OnPropertyChanged(); } }
- private ICommunicationDevice _mCommDevice;
-
-
- /// <summary>
- /// 是否激活
- /// </summary>
- public bool IsActive { get { return _mIsActive; } set { _mIsActive = value; OnPropertyChanged(); } }
- private bool _mIsActive = true;
-
-
- /// <summary>
- /// 新增设备名称
- /// </summary>
- public string DeviceName { get { return _mDeviceName; } set { _mDeviceName = value; OnPropertyChanged(); } }
- private string _mDeviceName;
-
- /// <summary>
- /// 通讯模块名称
- /// </summary>
- public string ModelName { get { return _mModelName; } set { _mModelName = value; OnPropertyChanged(); } }
- private string _mModelName;
-
- /// <summary>
- /// 变量表数据
- /// </summary>
- public ObservableCollection<VariableInfo> VarTableModels { get; set; } = new ObservableCollection<VariableInfo>();
-
- }
- }
|