17 #ifndef MASTODON_CPP_EASY_PUSHSUBSCRIPTION_HPP 18 #define MASTODON_CPP_EASY_PUSHSUBSCRIPTION_HPP 26 #include "mastodon-cpp.hpp" 27 #include "easy/easy.hpp" 29 #include <mastodon-cpp/mastodon-cpp.hpp> 30 #include <mastodon-cpp/easy/easy.hpp> 34 using std::uint_fast64_t;
62 virtual bool valid()
const;
69 uint_fast64_t
id()
const;
100 bool s_to_b(
const string &str)
const;
104 #endif // MASTODON_CPP_EASY_PUSHSUBSCRIPTION_HPP const string server_key() const
Returns the server public key for signature verification.
Definition: pushsubscription.cpp:52
Class to hold push subscriptions.
Definition: pushsubscription.hpp:43
PushSubscription()
Constructs an empty PushSubscription object.
Definition: pushsubscription.cpp:31
std::map< Easy::notification_type, bool > alertmap
Map of 'notification type' and 'push is requested or not'.
Definition: easy.hpp:134
bool s_to_b(const string &str) const
Converts string to bool.
Definition: pushsubscription.cpp:91
uint_fast64_t id() const
Returns push subscription ID.
Definition: pushsubscription.cpp:26
Definition: mastodon-cpp.hpp:52
Base class for all entities.
Definition: easy.hpp:319
virtual bool valid() const
Returns true if the Entity holds valid data.
Definition: pushsubscription.cpp:35
const Easy::alertmap alerts() const
Returns a map of 'notification event type' and 'push is requested or not'.
Definition: pushsubscription.cpp:57
const string endpoint() const
Returns the endpoint URL.
Definition: pushsubscription.cpp:47