class LLOfferInfo update
This commit is contained in:
@@ -1320,6 +1320,15 @@ void inventory_offer_mute_callback(const LLUUID& blocked_id,
|
||||
gNotifyBoxView->purgeMessagesMatching(OfferMatcher(blocked_id));
|
||||
}
|
||||
|
||||
LLOfferInfo::LLOfferInfo()
|
||||
: LLNotificationResponderInterface()
|
||||
, mFromGroup(FALSE)
|
||||
, mFromObject(FALSE)
|
||||
, mIM(IM_NOTHING_SPECIAL)
|
||||
, mType(LLAssetType::AT_NONE)
|
||||
{
|
||||
}
|
||||
|
||||
LLOfferInfo::LLOfferInfo(const LLSD& sd)
|
||||
{
|
||||
mIM = (EInstantMessage)sd["im_type"].asInteger();
|
||||
@@ -1335,6 +1344,21 @@ LLOfferInfo::LLOfferInfo(const LLSD& sd)
|
||||
mHost = LLHost(sd["sender"].asString());
|
||||
}
|
||||
|
||||
LLOfferInfo::LLOfferInfo(const LLOfferInfo& info)
|
||||
{
|
||||
mIM = info.mIM;
|
||||
mFromID = info.mFromID;
|
||||
mFromGroup = info.mFromGroup;
|
||||
mFromObject = info.mFromObject;
|
||||
mTransactionID = info.mTransactionID;
|
||||
mFolderID = info.mFolderID;
|
||||
mObjectID = info.mObjectID;
|
||||
mType = info.mType;
|
||||
mFromName = info.mFromName;
|
||||
mDesc = info.mDesc;
|
||||
mHost = info.mHost;
|
||||
}
|
||||
|
||||
LLSD LLOfferInfo::asLLSD()
|
||||
{
|
||||
LLSD sd;
|
||||
|
||||
Reference in New Issue
Block a user