Reviewed-on: #1 Co-authored-by: Persson-dev <sim16.prib@gmail.com> Co-committed-by: Persson-dev <sim16.prib@gmail.com>
22 lines
436 B
C++
22 lines
436 B
C++
#pragma once
|
|
|
|
#include <sp/default/DefaultPacket.h>
|
|
#include <sp/protocol/Field.h>
|
|
#include <sp/protocol/MessageBase.h>
|
|
|
|
enum class KeepAliveFieldsE {
|
|
KeepAliveId = 0,
|
|
};
|
|
|
|
using KeepAliveFields = std::tuple<
|
|
std::uint64_t //<- KeepAliveId
|
|
>;
|
|
|
|
DeclarePacket(KeepAlive){
|
|
public:
|
|
PacketConstructor(KeepAlive)
|
|
|
|
std::uint64_t GetKeepAliveId() const {
|
|
return GetField<KeepAliveFieldsE, KeepAliveFieldsE::KeepAliveId>();
|
|
}
|
|
}; |