IM_Client/api/MP/Response.h

31 lines
511 B
C++

//
// 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() override;
std::string packet ();
private:
void init();
private:
mp::response* response = nullptr;
};
#endif //IM2_RESPONSE_H