From f9d0632a85ce27683e3a715f8789f60401bcbbac Mon Sep 17 00:00:00 2001 From: sk Date: Sat, 21 May 2022 19:42:29 +0200 Subject: [PATCH] add missing files --- .../api/requests/statuses/SetStatusBookmarked.java | 11 +++++++++++ mastodon/src/main/res/color/bookmark_icon.xml | 5 +++++ .../res/drawable/ic_fluent_bookmark_24_selector.xml | 8 ++++++++ 3 files changed, 24 insertions(+) create mode 100644 mastodon/src/main/java/org/joinmastodon/android/api/requests/statuses/SetStatusBookmarked.java create mode 100644 mastodon/src/main/res/color/bookmark_icon.xml create mode 100644 mastodon/src/main/res/drawable/ic_fluent_bookmark_24_selector.xml diff --git a/mastodon/src/main/java/org/joinmastodon/android/api/requests/statuses/SetStatusBookmarked.java b/mastodon/src/main/java/org/joinmastodon/android/api/requests/statuses/SetStatusBookmarked.java new file mode 100644 index 000000000..3b010e24b --- /dev/null +++ b/mastodon/src/main/java/org/joinmastodon/android/api/requests/statuses/SetStatusBookmarked.java @@ -0,0 +1,11 @@ +package org.joinmastodon.android.api.requests.statuses; + +import org.joinmastodon.android.api.MastodonAPIRequest; +import org.joinmastodon.android.model.Status; + +public class SetStatusBookmarked extends MastodonAPIRequest{ + public SetStatusBookmarked(String id, boolean bookmarked){ + super(HttpMethod.POST, "/statuses/"+id+"/"+(bookmarked ? "bookmark" : "unbookmark"), Status.class); + setRequestBody(new Object()); + } +} diff --git a/mastodon/src/main/res/color/bookmark_icon.xml b/mastodon/src/main/res/color/bookmark_icon.xml new file mode 100644 index 000000000..085890f67 --- /dev/null +++ b/mastodon/src/main/res/color/bookmark_icon.xml @@ -0,0 +1,5 @@ + + + + + \ No newline at end of file diff --git a/mastodon/src/main/res/drawable/ic_fluent_bookmark_24_selector.xml b/mastodon/src/main/res/drawable/ic_fluent_bookmark_24_selector.xml new file mode 100644 index 000000000..8cd4d4e92 --- /dev/null +++ b/mastodon/src/main/res/drawable/ic_fluent_bookmark_24_selector.xml @@ -0,0 +1,8 @@ + + + + + + + +