/** * @RDE_HEADER@ * Header file which holds all occuring JSON keys * $Id$ * $HeadURL$ * $Author$ * Created by Philipp Dassow, SLST, 2017-12-05 */ #pragma once #include namespace WebSocketInterface { /** * @brief Namespace which holds all occuring JSON keys as const QString objects */ namespace JsonKeys { inline QString EXERCISE_ID() { return QStringLiteral("exerciseId"); } inline QString DATA_MODIFICATION() { return QStringLiteral("dataModification"); } inline QString PARTICIPANT_ID() { return QStringLiteral("participantId"); } inline QString REGISTRATION_RETURN_VALUE() { return QStringLiteral("registrationReturnValue"); } // types for client --> server messages inline QString EQUIPMENT_TYPES_REQUEST() { return QStringLiteral("equipmentTypesRequest"); } // types for server --> client messages inline QString EQUIPMENT_TYPES_REPLY() { return QStringLiteral("equipmentTypesReply"); } // types for client --> server messages inline QString EXERCISES_REQUEST() { return QStringLiteral("exercisesRequest"); } // types for server --> client messages inline QString EXERCISES_REPLY() { return QStringLiteral("exercisesReply"); } // types for server --> client messages inline QString EXERCISE_UPDATE() { return QStringLiteral("exercisesUpdate"); } // types for client --> server messages inline QString PARTICIPANTS_REQUEST() { return QStringLiteral("participantsRequest"); } // types for server --> client messages inline QString PARTICIPANTS_REPLY() { return QStringLiteral("participantsReply"); } // types for server --> client messages inline QString PARTICIPANTS_UPDATE() { return QStringLiteral("participantsUpdate"); } // types for client --> server messages inline QString PARTICIPANT_REGISTER_IN_EXCON_REQUEST() { return QStringLiteral("participantRegisterInEXCONRequest");} // types for server --> client messages inline QString PARTICIPANT_REGISTER_IN_EXCON_REPLY() { return QStringLiteral("participantRegisterInEXCONReply");} // data keys } // namespace JsonKeys } // namespace WebSocketInterface