using BatCharging.Model;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace BatCharging.Service
{
///
/// 解析充电机上报模块状态
///
public class MsgUpModelStationDecoder
{
///
/// 解析充电机上报模块状态
///
///
///
public UpModelStation GetMsgUpModelStation(byte[] data)
{
UpModelStation upModelStation = null;
if (data.Count() >= 35)
{
upModelStation= new UpModelStation();
upModelStation.ModelStation1 = data[25];
upModelStation.ModelStation2 = data[26];
upModelStation.ModelStation3 = data[27];
upModelStation.ModelStation4 = data[28];
upModelStation.ModelStation5 = data[29];
upModelStation.ModelStation6 = data[30];
upModelStation.ModelStation7 = data[31];
upModelStation.ModelStation8 = data[32];
upModelStation.ModelStation9 = data[33];
upModelStation.ModelStation10 = data[34];
}
return upModelStation;
}
}
}