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;
61 const uint_fast64_t
id()
const;
86 const bool s_to_b(
const string &str)
const;
90 #endif // MASTODON_CPP_EASY_PUSHSUBSCRIPTION_HPP const uint_fast64_t id() const
Returns push subscription ID.
Definition: pushsubscription.cpp:26
const string server_key() const
Returns the server public key for signature verification.
Definition: pushsubscription.cpp:40
const bool s_to_b(const string &str) const
Converts string to bool.
Definition: pushsubscription.cpp:79
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:117
Definition: mastodon-cpp.hpp:52
Base class for all entities.
Definition: easy.hpp:257
const Easy::alertmap alerts() const
Returns a map of 'notification event type' and 'push is requested or not'.
Definition: pushsubscription.cpp:45
const string endpoint() const
Returns the endpoint URL.
Definition: pushsubscription.cpp:35