Initial commit
This commit is contained in:
commit
b7d90b9afe
16245 files changed
+3396666
No files matched your search
@@ -0,0 +1,55 @@
|
||||
/**
|
||||
* @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 <LtsWebSocket/json_keys.h>
|
||||
#include <WMS_Interface/json_keys.h>
|
||||
|
||||
#include <QtCore/QUuid>
|
||||
#include <QtCore/QJsonDocument>
|
||||
|
||||
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
|
||||
Reference in new issue
Block a user