Skip to content
This repository has been archived by the owner on Oct 28, 2024. It is now read-only.

Commit

Permalink
fix(status/translation): do not require all fields
Browse files Browse the repository at this point in the history
  • Loading branch information
FineFindus committed Nov 1, 2023
1 parent 6c9db5c commit be2b290
Showing 1 changed file with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,11 +1,14 @@
package org.joinmastodon.android.model;

import org.joinmastodon.android.api.AllFieldsAreRequired;

@AllFieldsAreRequired
import org.joinmastodon.android.api.RequiredField;

public class Translation extends BaseModel{
@RequiredField
public String content;
@RequiredField
public String detectedSourceLanguage;
@RequiredField
public String provider;
public MediaAttachment[] mediaAttachments;
public PollTranslation poll;
Expand Down

0 comments on commit be2b290

Please sign in to comment.