package app.fedilab.android.client.mastodon.entities; /* Copyright 2021 Thomas Schneider * * This file is a part of Fedilab * * This program is free software; you can redistribute it and/or modify it under the terms of the * GNU General Public License as published by the Free Software Foundation; either version 3 of the * License, or (at your option) any later version. * * Fedilab is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even * the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General * Public License for more details. * * You should have received a copy of the GNU General Public License along with Fedilab; if not, * see . */ import android.text.Spannable; import com.google.gson.annotations.SerializedName; import java.io.Serializable; import java.util.Date; import java.util.List; public class Status implements Serializable { @SerializedName("id") public String id; @SerializedName("created_at") public Date created_at; @SerializedName("in_reply_to_id") public String in_reply_to_id; @SerializedName("in_reply_to_account_id") public String in_reply_to_account_id; @SerializedName("sensitive") public boolean sensitive; @SerializedName("spoiler_text") public String spoiler_text; @SerializedName("text") public String text; @SerializedName("visibility") public String visibility; @SerializedName("language") public String language; @SerializedName("uri") public String uri; @SerializedName("url") public String url; @SerializedName("replies_count") public int replies_count; @SerializedName("reblogs_count") public int reblogs_count; @SerializedName("favourites_count") public int favourites_count; @SerializedName("favourited") public boolean favourited; @SerializedName("reblogged") public boolean reblogged; @SerializedName("muted") public boolean muted; @SerializedName("bookmarked") public boolean bookmarked; @SerializedName("pinned") public boolean pinned; @SerializedName("content") public String content; @SerializedName("reblog") public Status reblog; @SerializedName("application") public App application; @SerializedName("account") public Account account; @SerializedName("media_attachments") public List media_attachments; @SerializedName("mentions") public List mentions; @SerializedName("tags") public List tags; @SerializedName("emojis") public List emojis; @SerializedName("card") public Card card; @SerializedName("poll") public Poll poll; //Some extra spannable element - They will be filled automatically when fetching the status public transient Spannable span_content; public transient Spannable span_spoiler_text; public transient Spannable span_translate; public boolean isExpended = false; public boolean isTruncated = true; public boolean isMediaDisplayed = false; public boolean isMediaObfuscated = true; public boolean isChecked = false; public String translationContent; public boolean translationShown; public transient boolean isFocused = false; public transient boolean setCursorToEnd = false; public transient int cursorPosition = 0; }