2012-07-26 17:48:54 -04:00
|
|
|
/*
|
|
|
|
* rsgxsitems.cc
|
|
|
|
*
|
|
|
|
* Created on: 26 Jul 2012
|
|
|
|
* Author: crispy
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
|
|
#include "rsgxsitems.h"
|
|
|
|
#include "gxs/rsgxsdata.h"
|
2012-10-21 11:48:18 -04:00
|
|
|
#include <iostream>
|
2012-07-26 17:48:54 -04:00
|
|
|
|
2014-12-16 01:54:15 -05:00
|
|
|
void RsMsgMetaData::operator =(const RsGxsMsgMetaData& rGxsMeta)
|
|
|
|
{
|
|
|
|
this->mAuthorId = rGxsMeta.mAuthorId;
|
|
|
|
this->mChildTs = rGxsMeta.mChildTs;
|
|
|
|
this->mGroupId = rGxsMeta.mGroupId;
|
|
|
|
this->mMsgFlags = rGxsMeta.mMsgFlags;
|
|
|
|
this->mMsgId = rGxsMeta.mMsgId;
|
|
|
|
this->mMsgName = rGxsMeta.mMsgName;
|
|
|
|
this->mMsgStatus = rGxsMeta.mMsgStatus;
|
|
|
|
this->mOrigMsgId = rGxsMeta.mOrigMsgId;
|
|
|
|
this->mParentId = rGxsMeta.mParentId;
|
|
|
|
this->mPublishTs = rGxsMeta.mPublishTs;
|
|
|
|
this->mThreadId = rGxsMeta.mThreadId;
|
|
|
|
this->mServiceString = rGxsMeta.mServiceString;
|
2012-08-26 10:02:47 -04:00
|
|
|
|
2014-12-16 01:54:15 -05:00
|
|
|
}
|
2012-07-26 17:48:54 -04:00
|
|
|
|
|
|
|
|
2014-12-16 01:54:15 -05:00
|
|
|
void RsGroupMetaData::operator =(const RsGxsGrpMetaData& rGxsMeta)
|
|
|
|
{
|
|
|
|
this->mAuthorId = rGxsMeta.mAuthorId;
|
|
|
|
this->mGroupFlags = rGxsMeta.mGroupFlags;
|
|
|
|
this->mGroupId = rGxsMeta.mGroupId;
|
|
|
|
this->mGroupStatus = rGxsMeta.mGroupStatus;
|
|
|
|
this->mLastPost = rGxsMeta.mLastPost;
|
|
|
|
this->mVisibleMsgCount = rGxsMeta.mVisibleMsgCount;
|
|
|
|
this->mPop = rGxsMeta.mPop;
|
|
|
|
this->mPublishTs = rGxsMeta.mPublishTs;
|
|
|
|
this->mSubscribeFlags = rGxsMeta.mSubscribeFlags;
|
|
|
|
this->mGroupName = rGxsMeta.mGroupName;
|
|
|
|
this->mServiceString = rGxsMeta.mServiceString;
|
|
|
|
this->mSignFlags = rGxsMeta.mSignFlags;
|
|
|
|
this->mCircleId = rGxsMeta.mCircleId;
|
|
|
|
this->mCircleType = rGxsMeta.mCircleType;
|
|
|
|
this->mInternalCircle = rGxsMeta.mInternalCircle;
|
|
|
|
this->mOriginator = rGxsMeta.mOriginator;
|
|
|
|
this->mAuthenFlags = rGxsMeta.mAuthenFlags;
|
2014-01-19 18:38:48 -05:00
|
|
|
// std::cout << "rGxsMeta.mParentGrpId= " <<rGxsMeta.mParentGrpId<<"\n";
|
|
|
|
// std::cout << "rGxsMeta.mParentGrpId.length()= " <<rGxsMeta.mParentGrpId.length()<<"\n";
|
|
|
|
//std::cout << "this->mParentGrpId= " <<this->mParentGrpId<<"\n";
|
|
|
|
this->mParentGrpId = rGxsMeta.mParentGrpId;
|
2014-12-16 01:54:15 -05:00
|
|
|
}
|
2012-10-21 11:48:18 -04:00
|
|
|
|
|
|
|
std::ostream &operator<<(std::ostream &out, const RsGroupMetaData &meta)
|
|
|
|
{
|
2014-01-19 18:38:48 -05:00
|
|
|
out << "[ GroupId: " << meta.mGroupId << " Name: " << meta.mGroupName << " ]";
|
2012-10-21 11:48:18 -04:00
|
|
|
return out;
|
|
|
|
}
|
|
|
|
|
|
|
|
std::ostream &operator<<(std::ostream &out, const RsMsgMetaData &meta)
|
|
|
|
{
|
2012-10-21 15:15:46 -04:00
|
|
|
out << "[ GroupId: " << meta.mGroupId << " MsgId: " << meta.mMsgId;
|
|
|
|
out << " Name: " << meta.mMsgName;
|
|
|
|
out << " OrigMsgId: " << meta.mOrigMsgId;
|
|
|
|
out << " ThreadId: " << meta.mThreadId;
|
|
|
|
out << " ParentId: " << meta.mParentId;
|
|
|
|
out << " AuthorId: " << meta.mAuthorId;
|
|
|
|
out << " Name: " << meta.mMsgName << " ]";
|
2012-10-21 11:48:18 -04:00
|
|
|
return out;
|
|
|
|
}
|
|
|
|
|
|
|
|
|