using BatCharging.Service;
using Newtonsoft.Json;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace BatCharging.Manager
{
public class ChargerEqmManager
{
#region 定义锁
private object lockObj = new object(); //线程同步锁
#endregion 定义锁
#region 字段属性
///
/// 是否可以发送充电机数据到云平台
///
private bool _can_send_chrg_data = true;
///
/// 是否可以发送充电机数据到云平台
///
public bool F_CanSendChrgData
{
get { return _can_send_chrg_data; }
set
{
lock (lockObj)
{
_can_send_chrg_data = value;
}
}
}
///
/// 是否启动智能充电方法
///
private bool _can_smart_chrg = true;
///
/// 是否启动智能充电方法
///
public bool F_CanSmartChrg
{
get { return _can_smart_chrg; }
set
{
lock (lockObj)
{
_can_smart_chrg = value;
}
}
}
///
/// 发送充电机数据到云平台的周期(单位:秒)
///
private int _send_chrg_data_period = 30;
///
/// 发送充电机数据到云平台的周期(单位:秒)
///
public int F_SendChrgDataPeriod
{
get { return _send_chrg_data_period; }
set
{
lock (lockObj)
{
_send_chrg_data_period = value;
}
}
}
#endregion 字段属性
}
}