Skip to content
This repository has been archived by the owner on Sep 1, 2023. It is now read-only.

Commit

Permalink
Add AdditionalMediaInfo property to MediaEntity
Browse files Browse the repository at this point in the history
  • Loading branch information
azyobuzin committed Sep 30, 2017
1 parent a3cce86 commit 8cd99c0
Showing 1 changed file with 39 additions and 0 deletions.
39 changes: 39 additions & 0 deletions CoreTweet.Shared/Objects/Entities.cs
Expand Up @@ -109,6 +109,12 @@ public class MediaEntity : UrlEntity
[JsonProperty("id")]
public long Id { get; set; }

/// <summary>
/// Gets or sets the additional media info provided by the publisher.
/// </summary>
[JsonProperty("additional_media_info")]
public AdditionalMediaInfo AdditionalMediaInfo { get; set; }

/// <summary>
/// Gets or sets the alt text.
/// </summary>
Expand Down Expand Up @@ -268,6 +274,39 @@ public class VideoVariant : CoreBase
public string Url { get; set; }
}

public class AdditionalMediaInfo : CoreBase
{
[JsonProperty("call_to_actions")]
public CallToActions CallToActions { get; set; }

[JsonProperty("description")]
public string Description { get; set; }

[JsonProperty("embeddable")]
public bool Embeddable { get; set; }

[JsonProperty("monetizable")]
public bool Monetizable { get; set; }

[JsonProperty("title")]
public string Title { get; set; }
}

public class CallToActions : CoreBase
{
[JsonProperty("watch_now")]
public MediaAction WatchNow { get; set; }
}

public class MediaAction : CoreBase
{
/// <summary>
/// Gets or sets the URL.
/// </summary>
[JsonProperty("url")]
public string Url { get; set; }
}

/// <summary>
/// Represents a URL object that contains the string for display and the raw URL.
/// </summary>
Expand Down

0 comments on commit 8cd99c0

Please sign in to comment.