Fix JSON API compilation after rebasing on master

This commit is contained in:
Gioacchino Mazzurco 2020-04-20 11:55:20 +02:00
parent f54fb046e4
commit e406a1fb8b
No known key found for this signature in database
GPG Key ID: A1FBCA3872E87051
2 changed files with 24 additions and 16 deletions

View File

@ -1970,3 +1970,4 @@ bool RsGxsDataAccess::checkMsgFilter(
}
GxsGroupStatistic::~GxsGroupStatistic() = default;
GxsServiceStatistic::~GxsServiceStatistic() = default;

View File

@ -230,24 +230,13 @@ struct GxsGroupStatistic : RsSerializable
~GxsGroupStatistic() override;
};
class GxsServiceStatistic
struct GxsServiceStatistic : RsSerializable
{
public:
GxsServiceStatistic()
{
mNumMsgs = 0;
mNumGrps = 0;
mSizeOfMsgs = 0;
mSizeOfGrps = 0;
mNumGrpsSubscribed = 0;
mNumThreadMsgsNew = 0;
mNumThreadMsgsUnread = 0;
mNumChildMsgsNew = 0;
mNumChildMsgsUnread = 0;
mSizeStore = 0;
}
GxsServiceStatistic() :
mNumMsgs(0), mNumGrps(0), mSizeOfMsgs(0), mSizeOfGrps(0),
mNumGrpsSubscribed(0), mNumThreadMsgsNew(0), mNumThreadMsgsUnread(0),
mNumChildMsgsNew(0), mNumChildMsgsUnread(0), mSizeStore(0) {}
public:
uint32_t mNumMsgs;
uint32_t mNumGrps;
uint32_t mSizeOfMsgs;
@ -258,6 +247,24 @@ public:
uint32_t mNumChildMsgsNew;
uint32_t mNumChildMsgsUnread;
uint32_t mSizeStore;
/// @see RsSerializable
void serial_process( RsGenericSerializer::SerializeJob j,
RsGenericSerializer::SerializeContext& ctx ) override
{
RS_SERIAL_PROCESS(mNumMsgs);
RS_SERIAL_PROCESS(mNumGrps);
RS_SERIAL_PROCESS(mSizeOfMsgs);
RS_SERIAL_PROCESS(mSizeOfGrps);
RS_SERIAL_PROCESS(mNumGrpsSubscribed);
RS_SERIAL_PROCESS(mNumThreadMsgsNew);
RS_SERIAL_PROCESS(mNumThreadMsgsUnread);
RS_SERIAL_PROCESS(mNumChildMsgsNew);
RS_SERIAL_PROCESS(mNumChildMsgsUnread);
RS_SERIAL_PROCESS(mSizeStore);
}
~GxsServiceStatistic() override;
};
class RS_DEPRECATED RsGxsGroupUpdateMeta