/** * @RDE_HEADER@ * The ReplyMessage class is an abstract base class for all possible messages which are sent to the client * $Id$ * $HeadURL$ * $Author$ * Created by Philipp Dassow, SLST, 2017-12-05 */ #include "reply_message.h" #include #include #include #include namespace WarehouseGuez { namespace WsBaseDataInterface { namespace Messages { using namespace LtsWebSocket::JsonKeys; ExerciseRequest::ExerciseRequest() : LtsWebSocket::ReplyMessage(::WebSocketInterface::JsonKeys::EXERCISES_REQUEST(), 1, QStringLiteral("drei")) // Todo: Check whether typeId is correct {} ParticipantsRequest::ParticipantsRequest(int exerciseId) : LtsWebSocket::ReplyMessage(::WebSocketInterface::JsonKeys::PARTICIPANTS_REQUEST(), 2, QStringLiteral("drei")) // Todo: Check whether typeId is correct { m_jsonRepresentation[::WebSocketInterface::JsonKeys::EXERCISE_ID()] = exerciseId; } // ####### EquipmentTypesMessage begin ####### EquipmentTypesMessage::EquipmentTypesMessage(const QJsonObject &data, const QString &uuid) : ReplyMessage (::WebSocketInterface::JsonKeys::EQUIPMENT_TYPES_REPLY(), 3, uuid) // Todo: Check whether typeId is correct { m_jsonRepresentation.insert(DATA(), data); } // ####### EquipmentTypesMessage end ####### // ####### ParticipantRegisterInExconRequest begin ####### ParticipantRegisterInExconRequest::ParticipantRegisterInExconRequest(const QJsonObject &data, const QString &uuid) : ReplyMessage (::WebSocketInterface::JsonKeys::PARTICIPANT_REGISTER_IN_EXCON_REQUEST(), 4, uuid) // Todo: Check whether typeId is correct { m_jsonRepresentation.insert(DATA(), data); } // ####### ParticipantRegisterInExconRequest end ####### } // namespace Messages } // namespace WsBaseDataInterface } // namespace WarehouseGuez