using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Waste.SocketService
{
///
/// socket包内容
///
public class MyPackage: A8Package
{
///
/// 固定头
///
public string Key { get; set; } = "";
///
/// 数据体长度
///
public int Len { get; set; } = 0;
///
/// IMEI
///
public string IMEI { get; set; } = "";
///
/// ICCID
///
public string ICCID { get; set; } = "";
///
/// IMSI
///
public string IMSI { get; set; } = "";
///
/// 信号强度
///
public string GSLQ { get; set; } = "";
///
/// 时间
///
public string Time { get; set; }
///
/// 经度
///
public string Longitude { get; set; } = "";
///
/// 纬度
///
public string Latitude { get; set; } = "";
///
/// 桶大小
///
public string size { get; set; } = "";
///
/// 垃圾桶编号
///
public string trashcode { get; set; } = "";
///
/// 垃圾类别
///
public string WasteType { get; set; } = "";
///
/// 重量,KG
///
public string Weight { get; set; } = "0";
///
/// 内容
///
public string Body { get; set; } = "";
///
/// 字符串结果
///
public string Str { get; set; } = "";
///
/// 是否是否通过校检,true-是,false-否
///
public bool IsChecked { get; set; } = true;
///
/// 是否为心跳包数据
///
public bool IsHeart { get; set; } = false;
///
/// 是否为有效测量
///
public bool IsWeight { get; set; } = false;
}
///
/// A8协议包内容
///
public class A8Package
{
///
/// 垃圾类别小类
///
public string WasteSType { get; set; } = "";
///
/// 消息ID
///
public string UUID { get; set; } = "";
///
/// 上报时间
///
public string UploadTime { get; set; } = "";
///
/// 价格
///
public string Price { get; set; } = "";
///
/// 金额
///
public string Amount { get; set; } = "";
///
/// 操作员
///
public string OpUser { get; set; } = "";
}
}