fix: removes @RequiredField for contentType

Removes that, as its null on mastodon, and makes editing statuses impossible
This commit is contained in:
LucasGGamerM
2023-05-25 11:45:32 +00:00
parent 85d971242e
commit 889fbc688d

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;
}