|
| 1 | +// OpenTween - Client of Twitter |
| 2 | +// Copyright (c) 2017 kim_upsilon (@kim_upsilon) <https://upsilo.net/~upsilon/> |
| 3 | +// All rights reserved. |
| 4 | +// |
| 5 | +// This file is part of OpenTween. |
| 6 | +// |
| 7 | +// This program is free software; you can redistribute it and/or modify it |
| 8 | +// under the terms of the GNU General Public License as published by the Free |
| 9 | +// Software Foundation; either version 3 of the License, or (at your option) |
| 10 | +// any later version. |
| 11 | +// |
| 12 | +// This program is distributed in the hope that it will be useful, but |
| 13 | +// WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY |
| 14 | +// or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License |
| 15 | +// for more details. |
| 16 | +// |
| 17 | +// You should have received a copy of the GNU General Public License along |
| 18 | +// with this program. If not, see <http://www.gnu.org/licenses/>, or write to |
| 19 | +// the Free Software Foundation, Inc., 51 Franklin Street - Fifth Floor, |
| 20 | +// Boston, MA 02110-1301, USA. |
| 21 | + |
| 22 | +using System.Runtime.Serialization; |
| 23 | + |
| 24 | +namespace OpenTween.Api.DataModel |
| 25 | +{ |
| 26 | + public class MastodonStatus |
| 27 | + { |
| 28 | + [DataMember(Name = "id")] |
| 29 | + public long Id { get; set; } |
| 30 | + |
| 31 | + [DataMember(Name = "uri")] |
| 32 | + public string Uri { get; set; } |
| 33 | + |
| 34 | + [DataMember(Name = "url")] |
| 35 | + public string Url { get; set; } |
| 36 | + |
| 37 | + [DataMember(Name = "account")] |
| 38 | + public MastodonAccount Account { get; set; } |
| 39 | + |
| 40 | + [DataMember(Name = "in_reply_to_id")] |
| 41 | + public long? InReplyToId { get; set; } |
| 42 | + |
| 43 | + [DataMember(Name = "in_reply_to_account_id")] |
| 44 | + public long? InReplyToAccountId { get; set; } |
| 45 | + |
| 46 | + [DataMember(Name = "reblog")] |
| 47 | + public MastodonStatus Reblog { get; set; } |
| 48 | + |
| 49 | + [DataMember(Name = "content")] |
| 50 | + public string Content { get; set; } |
| 51 | + |
| 52 | + [DataMember(Name = "created_at")] |
| 53 | + public string CreatedAt { get; set; } |
| 54 | + |
| 55 | + [DataMember(Name = "reblogs_count")] |
| 56 | + public int ReblogsCount { get; set; } |
| 57 | + |
| 58 | + [DataMember(Name = "favourites_count")] |
| 59 | + public int FavouritesCount { get; set; } |
| 60 | + |
| 61 | + [DataMember(Name = "reblogged")] |
| 62 | + public bool Reblogged { get; set; } |
| 63 | + |
| 64 | + [DataMember(Name = "favourited")] |
| 65 | + public bool Favourited { get; set; } |
| 66 | + |
| 67 | + [DataMember(Name = "sensitive")] |
| 68 | + public bool? Sensitive { get; set; } |
| 69 | + |
| 70 | + [DataMember(Name = "spoiler_text")] |
| 71 | + public string SpoilerText { get; set; } |
| 72 | + |
| 73 | + [DataMember(Name = "visibility")] |
| 74 | + public string Visibility { get; set; } |
| 75 | + |
| 76 | + [DataMember(Name = "media_attachments")] |
| 77 | + public MastodonAttachment[] MediaAttachments { get; set; } |
| 78 | + |
| 79 | + [DataMember(Name = "mentions")] |
| 80 | + public MastodonMention[] Mentions { get; set; } |
| 81 | + |
| 82 | + [DataMember(Name = "tags")] |
| 83 | + public MastodonTag[] Tags { get; set; } |
| 84 | + |
| 85 | + [DataMember(Name = "application")] |
| 86 | + public MastodonApplication Application { get; set; } |
| 87 | + } |
| 88 | +} |
0 commit comments