// // Created by dongl on 23-4-21. // #ifndef IM2_REQUEST_H #define IM2_REQUEST_H #include "proto/mp.request.pb.h" #include "Mph.h" #include "Body.h" #include "Cqi.h" class Request : public Mph, Body, Cqi { public: Request(mp::MP_TYPE type, mp::MP_SUB_TYPE subType, const std::string& account, const std::string& password); Request(mp::MP_TYPE type, mp::MP_SUB_TYPE subType, const std::string& account, const std::string& password, const std::string& data); Request(mp::MP_TYPE type, mp::MP_SUB_TYPE subType, uint64_t target, uint64_t source, const std::string& data); Request(mp::MP_TYPE type, mp::MP_SUB_TYPE subType, uint64_t target, uint64_t source); Request(mp::MP_TYPE type, mp::MP_SUB_TYPE subType, const std::string& account); ~Request() override; public: std::string packet(); private: void init(); private: mp::request* request = nullptr; }; #endif //IM2_REQUEST_H