// // Created by dongl on 23-4-21. // #ifndef IM2_RESPONSE_H #define IM2_RESPONSE_H #include "proto/mp.response.pb.h" #include "Mph.h" #include "Body.h" #include "Sri.h" class Response : public Mph, Sri{ public: Response(mp::MP_TYPE type, mp::MP_SUB_TYPE subType, const std::string &username, const std::string &msg, const std::string &token); Response(mp::MP_TYPE type, mp::MP_SUB_TYPE subType, uint64_t account, const std::string &username, const std::string &email, uint64_t phone, const std::string &msg, const std::string &token, const std::string & data); Response(mp::MP_TYPE type, mp::MP_SUB_TYPE subType); ~Response() override; std::string packet (); private: void init(); private: mp::response* response = nullptr; }; #endif //IM2_RESPONSE_H