/** * @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 "WebSocketInterface/json_keys.h" #include #include namespace OcBaseDownload { namespace WebSocketInterface { namespace Messages { using namespace JsonKeys; using namespace LtsWebSocket::JsonKeys; // ####### ServicePortsInformationRequest begin ####### ServicePortsInformationRequest::ServicePortsInformationRequest(const QString &uuid) : ReplyMessage(ServiceManagement::WebSocketInterface::JsonKeys::SERVICE_PORTS_INFORMATION_REQUEST(), 6002, uuid) {} // ####### ServicePortsInformationRequest end ####### // ####### BaseDlRequest begin ####### /************************************************************ * Attention! TypeId 6006 is negotiated with ESG for ADLER! * ************************************************************/ BaseDlRequest::BaseDlRequest(const QString &uuid, int exerciseId) : LtsWebSocket::ReplyMessage(BASE_DL_REQUEST(), 6006, uuid) // Todo: Check whether typeId is correct { if (0 < exerciseId) { QJsonObject data; data.insert(EXERCISE_ID(), QJsonValue(exerciseId)); m_jsonRepresentation.insert(DATA(), data); } } // ####### BaseDlRequest end ####### // ####### PdfListRequest begin ####### PdfListRequest::PdfListRequest(const QString &uuid, int exerciseId) : LtsWebSocket::ReplyMessage(PDF_LIST_REQUEST(), 2, uuid) // Todo: Check whether typeId is correct { if (0 < exerciseId) { QJsonObject data; data.insert(EXERCISE_ID(), QJsonValue(exerciseId)); m_jsonRepresentation.insert(DATA(), data); } } // ####### PdfListRequest end ####### } // namespace Messages } // namespace WebSocketInterface } // namespace OcBaseDownload