public CardUpDataBean(CardUpDataBean cardb) { ReceivData = cardb.ReceivData; //是否接受到资料 MType = cardb.MType; //定位信息类型 DrivaceType = cardb.DrivaceType; //设备类型 TagId = cardb.TagId; // Port1ID = cardb.Port1ID; //保存最近的一个Router的ID Port1Rssi = cardb.Port1Rssi; //保存最近的一个Router接受数据时候的信号强度 Port2ID = cardb.Port2ID; Port2Rssi = cardb.Port2Rssi; Port3ID = cardb.Port3ID; Port3Rssi = cardb.Port3Rssi; Port1IDHistory = cardb.Port1IDHistory; Port1RssiHistory = cardb.Port1RssiHistory; Port2IDHistory = cardb.Port2IDHistory; Port2RssiHistory = cardb.Port2RssiHistory; Port3IDHistory = cardb.Port3IDHistory; Port3RssiHistory = cardb.Port3RssiHistory; Battery = cardb.Battery; //电池电量 SensorTime = cardb.SensorTime; Index = cardb.Index; //本次资料的序列号 FirstReceiveTime = cardb.FirstReceiveTime; //第一次接受到数据的时间 IsUpdate = cardb.IsUpdate; //数据是否有更新(有新的定位数据到来,需要更新到列表中),True为更新 TotalCount = cardb.TotalCount; //总共接收到多少个封包 LostCount = cardb.LostCount; //丢包数量 LEDStaus = cardb.LEDStaus; //1Byte,当前的LED灯的状态, 0 = 灭;1 = 亮;2 = 闪烁 SleepTime = cardb.SleepTime; //1Byte,当前的LED灯的状态, 0 = 灭;1 = 亮;2 = 闪烁 sendGongLv = cardb.sendGongLv; TagID_Int = cardb.TagID_Int; Port1ID_Int = cardb.Port1ID_Int; }
public HistoryCardBean(CardUpDataBean cardb) { TagId = cardb.TagId; // Port1ID = cardb.Port1ID; //保存最近的一个Router的ID Port1Rssi = cardb.Port1Rssi; //保存最近的一个Router接受数据时候的信号强度 Port2ID = cardb.Port2ID; Port2Rssi = cardb.Port2Rssi; Port3ID = cardb.Port3ID; Port3Rssi = cardb.Port3Rssi; FirstReceiveTime = cardb.FirstReceiveTime; //第一次接受到数据的时间 }