icinga2/jsonrpc/message.cpp

24 lines
370 B
C++
Raw Normal View History

2012-04-18 15:22:25 +02:00
#include "i2-jsonrpc.h"
using namespace icinga;
Message::Message(void)
{
m_Dictionary = make_shared<Dictionary>();
}
Message::Message(const Dictionary::Ptr& dictionary)
{
m_Dictionary = dictionary;
}
Message::Message(const Message& message)
{
m_Dictionary = message.GetDictionary();
}
Dictionary::Ptr Message::GetDictionary(void) const
{
return m_Dictionary;
}