Forgot the edit entry

This commit is contained in:
LucasGGamerM 2022-12-10 20:17:31 -03:00
parent 75a131b675
commit 857bb1e483
1 changed files with 17 additions and 0 deletions

View File

@ -0,0 +1,17 @@
package org.joinmastodon.android.api.requests.lists;
import org.joinmastodon.android.api.MastodonAPIRequest;
import java.util.List;
public class EditListName extends MastodonAPIRequest<Object> {
public EditListName(String newListName, String listId){
super(HttpMethod.PUT, "/lists/"+listId, Object.class);
Request req = new Request();
req.title = newListName;
setRequestBody(req);
}
public static class Request{
public String title;
}
}