|
|
@ -66,9 +66,13 @@ public class TootEntity { |
|
|
|
@ColumnInfo(name = "poll") |
|
|
|
@ColumnInfo(name = "poll") |
|
|
|
private final NewPoll poll; |
|
|
|
private final NewPoll poll; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@Nullable |
|
|
|
|
|
|
|
@ColumnInfo(name = "markdownMode") |
|
|
|
|
|
|
|
private final Boolean markdownMode; |
|
|
|
|
|
|
|
|
|
|
|
public TootEntity(int uid, String text, String urls, String descriptions, String contentWarning, String inReplyToId, |
|
|
|
public TootEntity(int uid, String text, String urls, String descriptions, String contentWarning, String inReplyToId, |
|
|
|
@Nullable String inReplyToText, @Nullable String inReplyToUsername, |
|
|
|
@Nullable String inReplyToText, @Nullable String inReplyToUsername, |
|
|
|
Status.Visibility visibility, @Nullable NewPoll poll) { |
|
|
|
Status.Visibility visibility, @Nullable NewPoll poll, @Nullable Boolean markdownMode) { |
|
|
|
this.uid = uid; |
|
|
|
this.uid = uid; |
|
|
|
this.text = text; |
|
|
|
this.text = text; |
|
|
|
this.urls = urls; |
|
|
|
this.urls = urls; |
|
|
@ -79,6 +83,7 @@ public class TootEntity { |
|
|
|
this.inReplyToUsername = inReplyToUsername; |
|
|
|
this.inReplyToUsername = inReplyToUsername; |
|
|
|
this.visibility = visibility; |
|
|
|
this.visibility = visibility; |
|
|
|
this.poll = poll; |
|
|
|
this.poll = poll; |
|
|
|
|
|
|
|
this.markdownMode = markdownMode; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public String getText() { |
|
|
|
public String getText() { |
|
|
@ -124,6 +129,11 @@ public class TootEntity { |
|
|
|
return poll; |
|
|
|
return poll; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@Nullable |
|
|
|
|
|
|
|
public Boolean getMarkdownMode() { |
|
|
|
|
|
|
|
return markdownMode; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public static final class Converters { |
|
|
|
public static final class Converters { |
|
|
|
|
|
|
|
|
|
|
|
private static final Gson gson = new Gson(); |
|
|
|
private static final Gson gson = new Gson(); |
|
|
|