public PacketGenericResponse(List <byte> data) { if (Parsing(ref data) == false) { MessageBox.Show("Not correct data", "Warning", MessageBoxButton.OK); return; } ComServer = new CommandFromServer(data); CRC32 = WorkBuffer.GetUInt32(ref data); }
public PacketResponseOptions(List <byte> data) { if (Parsing(ref data) == false) { MessageBox.Show("Not correct data", "Warning", MessageBoxButton.OK); return; } NewTime = WorkBuffer.GetUInt64(ref data); ActivityPeriod = WorkBuffer.GetByte(ref data); Indication = WorkBuffer.GetByte(ref data); TelemetryPeriod = WorkBuffer.GetUInt16(ref data); ComServer = new CommandFromServer(data); CRC32 = WorkBuffer.GetUInt32(ref data); }