17 #ifndef MASTODON_CPP_EASY_NOTIFICATION_HPP 18 #define MASTODON_CPP_EASY_NOTIFICATION_HPP 26 #include "mastodon-cpp.hpp" 27 #include "easy/easy.hpp" 28 #include "easy/entities/account.hpp" 29 #include "easy/entities/status.hpp" 31 #include <mastodon-cpp/mastodon-cpp.hpp> 32 #include <mastodon-cpp/easy/easy.hpp> 33 #include <mastodon-cpp/easy/entities/account.hpp> 34 #include <mastodon-cpp/easy/entities/status.hpp> 38 using std::uint_fast64_t;
39 using std::chrono::system_clock;
67 virtual bool valid()
const;
81 const system_clock::time_point
created_at()
const;
88 uint_fast64_t
id()
const;
107 #endif // MASTODON_CPP_EASY_NOTIFICATION_HPP const Status status() const
Returns the Status associated with the notification, if applicable.
Definition: notification.cpp:66
uint_fast64_t id() const
Returns notification ID.
Definition: notification.cpp:61
Class to hold notifications.
Definition: notification.hpp:48
const system_clock::time_point created_at() const
Returns time of creation.
Definition: notification.cpp:56
Easy::notification_type type() const
Returns notification type.
Definition: notification.cpp:78
virtual bool valid() const
Returns true if the Entity holds valid data.
Definition: notification.cpp:31
const Account account() const
Returns the Account sending the notification to the user.
Definition: notification.cpp:44
notification_type
Describes the notification type.
Definition: easy.hpp:111
Class to hold statuses.
Definition: status.hpp:59
Class to hold accounts.
Definition: account.hpp:46
Notification()
Constructs an empty Notification object.
Definition: notification.cpp:27
Definition: mastodon-cpp.hpp:52
Base class for all entities.
Definition: easy.hpp:319