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:
@@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user