It still does not work, but its one step closer to working

This commit is contained in:
LucasGGamerM
2022-12-28 10:45:15 -03:00
parent 3f773a52cc
commit 46b842afc4
3 changed files with 32 additions and 2 deletions

View File

@@ -1,4 +1,20 @@
package org.joinmastodon.android.api.requests.accounts;
public class SetPrivateNote {
import org.joinmastodon.android.api.MastodonAPIRequest;
import org.joinmastodon.android.model.PrivateNote;
public class SetPrivateNote extends MastodonAPIRequest<PrivateNote>{
public SetPrivateNote(String id, String note){
super(MastodonAPIRequest.HttpMethod.POST, "/accounts/"+id+"/note", PrivateNote.class);
Request req = new Request(note);
setRequestBody(req);
}
public static class Request{
public String comment;
public Request(String note){
this.comment = note;
}
}
}