using BOB.Singleton;
using Common.PubEvent;
using DeviceCommand.Device;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace BOB.Services
{
    public class ZXKSPollingRead : PollingRead
    {
        private ZXKS _ZXKS { get; set; }
        private IEventAggregator _eventAggregator { get; set; }
        public ZXKSPollingRead(IContainerProvider containerProvider) : base(containerProvider)
        {
            _eventAggregator = containerProvider.Resolve<IEventAggregator>();
            var _devices = containerProvider.Resolve<Devices>();
            DeviceName = "ZXKS";
            _ZXKS = _devices.DeviceDic["ZXKS"] as ZXKS;
        }
        public double 实时电流 { get; set; } = double.NaN;
        public double 实时电压 { get; set; } = double.NaN;
        public double 实时功率 { get; set; } = double.NaN;

        public override async Task ReadDeviceDataAsync(CancellationToken ct = default)
        {

        }
    }
}
