icinga2/icinga/subscriptionmessage.h

28 lines
487 B
C++

#ifndef SUBSCRIPTIONMESSAGE_H
#define SUBSCRIPTIONMESSAGE_H
namespace icinga
{
class I2_ICINGA_API SubscriptionMessage : public Message
{
public:
SubscriptionMessage(void) : Message() { }
SubscriptionMessage(const Message& message) : Message(message) { }
inline bool GetMethod(string *value) const
{
return GetPropertyString("method", value);
}
inline void SetMethod(const string& value)
{
SetPropertyString("method", value);
}
};
}
#endif /* SUBSCRIPTIONMESSAGE_H */