You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
- using Microsoft.Toolkit.Mvvm.ComponentModel;
- using Microsoft.Toolkit.Mvvm.Input;
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- using HBLConsole.Interface;
- using Newtonsoft.Json;
-
- namespace HBLConsole.Model
- {
- public class CommunicationSet : ObservableObject
- {
-
- /// <summary>
- /// 使用特性对接口反序列化
- /// </summary>
- [JsonProperty(TypeNameHandling = TypeNameHandling.Auto)]
- public IDeviceType Device { get { return _mDevice; } set { _mDevice = value; OnPropertyChanged(); } }
- private IDeviceType _mDevice;
-
- /// <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 EDeviceType deviceType { get { return _mdeviceType; } set { _mdeviceType = value; OnPropertyChanged(); } }
- private EDeviceType _mdeviceType;
-
- }
- }
|