You can now follow and unfollow accounts. Revolutionary.

This commit is contained in:
Grishka
2022-02-13 02:33:41 +03:00
parent 0615aa34f2
commit 9232428232
5 changed files with 121 additions and 13 deletions

View File

@@ -0,0 +1,11 @@
package org.joinmastodon.android.api.requests.accounts;
import org.joinmastodon.android.api.MastodonAPIRequest;
import org.joinmastodon.android.model.Relationship;
public class SetAccountFollowed extends MastodonAPIRequest<Relationship>{
public SetAccountFollowed(String id, boolean followed){
super(HttpMethod.POST, "/accounts/"+id+"/"+(followed ? "follow" : "unfollow"), Relationship.class);
setRequestBody(new Object());
}
}