XKRS2023Frm/XKRS.Common.Model/Interface/IDevice.cs

30 lines
671 B
C#
Raw Normal View History

2023-03-24 09:58:42 +08:00
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using static XKRS.Common.Model.Helper.EnumHelper;
namespace XKRS.Common.Interface
{
public interface IDevice:IDisposable,INotifyPropertyChanged,ISimpleDevice,ILogger,IExceptionHandler
{
event Action<IDevice, DeviceState> OnDeviceStateChanged;
}
public interface ISimpleDevice
{
string Id { get; set; }
2023-03-24 17:02:04 +08:00
string Name { get; set; }
2023-03-24 09:58:42 +08:00
}
public class SimpleDevice : ISimpleDevice
{
public string Id { get; set; }
2023-03-24 17:02:04 +08:00
public string Name { get; set; }
2023-03-24 09:58:42 +08:00
}
}