Compose things

This commit is contained in:
Grishka
2022-03-15 21:40:52 +03:00
parent b2588fbb6e
commit 8c5d6cd4a6
11 changed files with 532 additions and 33 deletions

View File

@@ -0,0 +1,19 @@
package org.joinmastodon.android.api.requests.statuses;
import org.joinmastodon.android.api.MastodonAPIRequest;
import org.joinmastodon.android.model.Attachment;
public class UpdateAttachment extends MastodonAPIRequest<Attachment>{
public UpdateAttachment(String id, String description){
super(HttpMethod.PUT, "/media/"+id, Attachment.class);
setRequestBody(new Body(description));
}
private static class Body{
public String description;
public Body(String description){
this.description=description;
}
}
}