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 @@ + + + + + + + +