Add the "Dismiss Notification" endpoint

This commit is contained in:
Paul Woolcock
2019-09-04 10:16:05 -04:00
parent f41253241e
commit 817e18fc16
2 changed files with 5 additions and 0 deletions
+1
View File
@@ -239,6 +239,7 @@ impl<H: HttpSend> MastodonClient<H> for Mastodon<H> {
(post (uri: Cow<'static, str>,)) follows: "follows" => Account,
(post multipart (file: Cow<'static, str>,)) media: "media" => Attachment,
(post) clear_notifications: "notifications/clear" => Empty,
(post (id: &str,)) dismiss_notification: "notifications/dismiss" => Empty,
(get) get_push_subscription: "push/subscription" => Subscription,
(delete) delete_push_subscription: "push/subscription" => Empty,
(get) get_filters: "filters" => Vec<Filter>,
+4
View File
@@ -120,6 +120,10 @@ pub trait MastodonClient<H: HttpSend = HttpSender> {
fn clear_notifications(&self) -> Result<Empty> {
unimplemented!("This method was not implemented");
}
/// POST /api/v1/notifications/dismiss
fn dismiss_notification(&self, id: &str) -> Result<Empty> {
unimplemented!("This method was not implemented");
}
/// GET /api/v1/accounts/:id
fn get_account(&self, id: &str) -> Result<Account> {
unimplemented!("This method was not implemented");