28 lines
747 B
C++
28 lines
747 B
C++
/**
|
|
* @file Message.h
|
|
* @brief <brief>
|
|
* @copyright 2015 Dual Inventive Technology Centre B.V.
|
|
*
|
|
* <description>
|
|
*/
|
|
#ifndef INCLUDE_MESSAGE_H_
|
|
#define INCLUDE_MESSAGE_H_
|
|
|
|
#include <di/rpc/Msg.h>
|
|
#include <di/rpc/lowlevel.h>
|
|
|
|
struct Message {
|
|
enum di_rpc_ll_msg_type type; /**< enum of message types */
|
|
bool positive; /**< whether the response of the message is successful */
|
|
std::string deviceUid; /**< sting with device UID */
|
|
std::shared_ptr<std::string> identity; /**< ZeroMQ requester identity */
|
|
std::shared_ptr<std::string> json; /**< Raw JSON RPC message */
|
|
std::shared_ptr<Di::Rpc::Msg> rpc; /**< RPC message object */
|
|
|
|
Message() : type(DI_RPC_LL_MSG_TYPE_PLAIN),
|
|
positive(true) {
|
|
}
|
|
};
|
|
|
|
#endif /* INCLUDE_MESSAGE_H_ */
|