Its almost working, the UI side is done. But the request is being canceled when the back button is pressed.

This commit is contained in:
LucasGGamerM
2022-12-28 12:34:00 -03:00
parent ac24f636df
commit 029650ef2d
4 changed files with 58 additions and 64 deletions

View File

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