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.
86 lines
2.0 KiB
86 lines
2.0 KiB
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 字段属性
|
|
|
|
/// <summary>
|
|
/// 是否可以发送充电机数据到云平台
|
|
/// </summary>
|
|
private bool _can_send_chrg_data = true;
|
|
|
|
/// <summary>
|
|
/// 是否可以发送充电机数据到云平台
|
|
/// </summary>
|
|
public bool F_CanSendChrgData
|
|
{
|
|
get { return _can_send_chrg_data; }
|
|
set
|
|
{
|
|
lock (lockObj)
|
|
{
|
|
_can_send_chrg_data = value;
|
|
}
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// 是否启动智能充电方法
|
|
/// </summary>
|
|
private bool _can_smart_chrg = true;
|
|
|
|
/// <summary>
|
|
/// 是否启动智能充电方法
|
|
/// </summary>
|
|
public bool F_CanSmartChrg
|
|
{
|
|
get { return _can_smart_chrg; }
|
|
set
|
|
{
|
|
lock (lockObj)
|
|
{
|
|
_can_smart_chrg = value;
|
|
}
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// 发送充电机数据到云平台的周期(单位:秒)
|
|
/// </summary>
|
|
private int _send_chrg_data_period = 30;
|
|
|
|
/// <summary>
|
|
/// 发送充电机数据到云平台的周期(单位:秒)
|
|
/// </summary>
|
|
public int F_SendChrgDataPeriod
|
|
{
|
|
get { return _send_chrg_data_period; }
|
|
set
|
|
{
|
|
lock (lockObj)
|
|
{
|
|
_send_chrg_data_period = value;
|
|
}
|
|
}
|
|
}
|
|
|
|
#endregion 字段属性
|
|
|
|
|
|
}
|
|
}
|