17 #ifndef MASTODON_CPP_EASY_NOTIFICATION_HPP 18 #define MASTODON_CPP_EASY_NOTIFICATION_HPP 23 #include "../../mastodon-cpp.hpp" 24 #include "../entity.hpp" 25 #include "account.hpp" 45 virtual bool valid()
const override;
66 const string id()
const;
86 #endif // MASTODON_CPP_EASY_NOTIFICATION_HPP const Status status() const
Returns the Status associated with the notification, if applicable.
Definition: notification.cpp:56
const Easy::time_type created_at() const
Returns time of creation.
Definition: notification.cpp:46
Entity()
Constructs an empty Entity object.
Definition: entity.cpp:43
Class to hold notifications.
Definition: notification.hpp:40
Easy::notification_type type() const
Returns notification type.
Definition: notification.cpp:68
const string id() const
Returns notification ID.
Definition: notification.cpp:51
const Account account() const
Returns the Account sending the notification to the user.
Definition: notification.cpp:34
Type for time. Converts to time_point and string.
Definition: types_easy.hpp:150
Class to hold statuses.
Definition: status.hpp:46
Class to hold accounts.
Definition: account.hpp:42
virtual bool valid() const override
Returns true if the Entity holds valid data.
Definition: notification.cpp:23
Collection of things to interface with server software that implements the Mastodon API.
Definition: mastodon-cpp.hpp:47
Base class for all entities.
Definition: entity.hpp:36
notification_type
Describes the notification type.
Definition: types_easy.hpp:97