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.

176 lines
4.1 KiB

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace BatCharging.Model
{
/// <summary>
/// 充电机状态结果
/// </summary>
public class ResultChargerStatus
{
private object lockObj = new object(); //线程同步锁
private bool _chr01enabled = false;
private bool _chr02enabled = false;
private bool _chr03enabled = false;
private bool _chr04enabled = false;
private bool _chr05enabled = false;
private bool _chr06enabled = false;
private bool _chr07enabled = false;
private bool _chr08enabled = false;
/// <summary>
/// 1号充电是否可操作-站控平台与充电机已鉴权并且充电机已登录
/// </summary>
public bool F_Chr01Enabled
{
get
{
return _chr01enabled;
}
set
{
lock (lockObj)
{
_chr01enabled = value;
}
}
}
/// <summary>
/// 2号充电是否可操作-站控平台与充电机已鉴权并且充电机已登录
/// </summary>
public bool F_Chr02Enabled
{
get
{
return _chr02enabled;
}
set
{
lock (lockObj)
{
_chr02enabled = value;
}
}
}
/// <summary>
/// 3号充电是否可操作-站控平台与充电机已鉴权并且充电机已登录
/// </summary>
public bool F_Chr03Enabled
{
get
{
return _chr03enabled;
}
set
{
lock (lockObj)
{
_chr03enabled = value;
}
}
}
/// <summary>
/// 4号充电是否可操作-站控平台与充电机已鉴权并且充电机已登录
/// </summary>
public bool F_Chr04Enabled
{
get
{
return _chr04enabled;
}
set
{
lock (lockObj)
{
_chr04enabled = value;
}
}
}
/// <summary>
/// 5号充电是否可操作-站控平台与充电机已鉴权并且充电机已登录
/// </summary>
public bool F_Chr05Enabled
{
get
{
return _chr05enabled;
}
set
{
lock (lockObj)
{
_chr05enabled = value;
}
}
}
/// <summary>
/// 6号充电是否可操作-站控平台与充电机已鉴权并且充电机已登录
/// </summary>
public bool F_Chr06Enabled
{
get
{
return _chr06enabled;
}
set
{
lock (lockObj)
{
_chr06enabled = value;
}
}
}
/// <summary>
/// 7号充电是否可操作-站控平台与充电机已鉴权并且充电机已登录
/// </summary>
public bool F_Chr07Enabled
{
get
{
return _chr07enabled;
}
set
{
lock (lockObj)
{
_chr07enabled = value;
}
}
}
/// <summary>
/// 8号充电是否可操作-站控平台与充电机已鉴权并且充电机已登录
/// </summary>
public bool F_Chr08Enabled
{
get
{
return _chr08enabled;
}
set
{
lock (lockObj)
{
_chr08enabled = value;
}
}
}
}
}