Skip to content

Commit

Permalink
fixup! Mastodon APIのJSONに含まれるエンティティの定義を追加
Browse files Browse the repository at this point in the history
  • Loading branch information
upsilon committed May 5, 2017
1 parent 9cc4c44 commit aeddf82
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 2 deletions.
1 change: 1 addition & 0 deletions OpenTween/Api/DataModel/MastodonAccount.cs
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@

namespace OpenTween.Api.DataModel
{
[DataContract]
public class MastodonAccount
{
[DataMember(Name = "id")]
Expand Down
1 change: 1 addition & 0 deletions OpenTween/Api/DataModel/MastodonApplication.cs
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@

namespace OpenTween.Api.DataModel
{
[DataContract]
public class MastodonApplication
{
[DataMember(Name = "name")]
Expand Down
1 change: 1 addition & 0 deletions OpenTween/Api/DataModel/MastodonAttachment.cs
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@

namespace OpenTween.Api.DataModel
{
[DataContract]
public class MastodonAttachment
{
[DataMember(Name = "id")]
Expand Down
1 change: 1 addition & 0 deletions OpenTween/Api/DataModel/MastodonMention.cs
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@

namespace OpenTween.Api.DataModel
{
[DataContract]
public class MastodonMention
{
[DataMember(Name = "url")]
Expand Down
5 changes: 3 additions & 2 deletions OpenTween/Api/DataModel/MastodonStatus.cs
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@

namespace OpenTween.Api.DataModel
{
[DataContract]
public class MastodonStatus
{
[DataMember(Name = "id")]
Expand Down Expand Up @@ -59,10 +60,10 @@ public class MastodonStatus
public int FavouritesCount { get; set; }

[DataMember(Name = "reblogged")]
public bool Reblogged { get; set; }
public bool? Reblogged { get; set; }

[DataMember(Name = "favourited")]
public bool Favourited { get; set; }
public bool? Favourited { get; set; }

[DataMember(Name = "sensitive")]
public bool? Sensitive { get; set; }
Expand Down
1 change: 1 addition & 0 deletions OpenTween/Api/DataModel/MastodonTag.cs
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@

namespace OpenTween.Api.DataModel
{
[DataContract]
public class MastodonTag
{
[DataMember(Name = "name")]
Expand Down

0 comments on commit aeddf82

Please sign in to comment.