fix contentType being a required field

re: sk22#516
This commit is contained in:
sk 2023-05-25 14:53:26 +02:00
parent f6f08d176c
commit 94c09d46c2
1 changed files with 4 additions and 1 deletions

View File

@ -2,6 +2,7 @@ package org.joinmastodon.android.api.requests.statuses;
import org.joinmastodon.android.api.AllFieldsAreRequired;
import org.joinmastodon.android.api.MastodonAPIRequest;
import org.joinmastodon.android.api.RequiredField;
import org.joinmastodon.android.model.BaseModel;
import org.joinmastodon.android.model.ContentType;
@ -10,10 +11,12 @@ public class GetStatusSourceText extends MastodonAPIRequest<GetStatusSourceText.
super(HttpMethod.GET, "/statuses/"+id+"/source", Response.class);
}
@AllFieldsAreRequired
public static class Response extends BaseModel{
@RequiredField
public String id;
@RequiredField
public String text;
@RequiredField
public String spoilerText;
public ContentType contentType;
}