src.dualinventive.com/dinet/libdipp/include/di/rpc/class/DNCM.h

37 lines
705 B
C++

#ifndef INCLUDE_DI_RPC_CLASS_DNCM_H_
#define INCLUDE_DI_RPC_CLASS_DNCM_H_
#include <vector>
#include <di/rpc/Msg.h>
namespace Di {
namespace Rpc {
class DNCM : public Msg {
public:
struct Info {
unsigned int revision;
std::string main_version;
std::string monitor_version;
};
struct Modem {
std::string imei;
std::string iccid;
std::string revision;
std::string connection;
std::string coperator;
};
Info info;
Modem modem;
explicit DNCM(std::shared_ptr<Msg> msg);
private:
void _decodeMethodInfo(std::shared_ptr<Json> message);
void _decodeMethodModem(std::shared_ptr<Json> message);
};
} // namespace Rpc
} // namespace Di
#endif // INCLUDE_DI_RPC_CLASS_DNCM_H_