IM/MP/Notice.h

27 lines
456 B
C++

//
// Created by dongl on 23-6-20.
//
#ifndef IM2_NOTICE_H
#define IM2_NOTICE_H
class Notice {
public:
explicit Notice(mp::im::notice *notice) : notice(notice) {}
Notice(uint64_t messageId, time_t time) {
notice = new mp::im::notice();
notice->set_message_id(messageId);
notice->set_time(time);
}
virtual ~Notice() {
delete notice;
}
protected:
mp::im::notice* notice;
};
#endif //IM2_NOTICE_H