| | 1 | | // <auto-generated> |
| | 2 | | // Code generated by Microsoft (R) AutoRest Code Generator. |
| | 3 | | // Changes may cause incorrect behavior and will be lost if the code is |
| | 4 | | // regenerated. |
| | 5 | | // </auto-generated> |
| | 6 | |
|
| | 7 | | namespace Microsoft.Azure.CognitiveServices.Search.VideoSearch.Models |
| | 8 | | { |
| | 9 | | using Newtonsoft.Json; |
| | 10 | | using System.Collections; |
| | 11 | | using System.Collections.Generic; |
| | 12 | | using System.Linq; |
| | 13 | |
|
| | 14 | | /// <summary> |
| | 15 | | /// Defines a video object that is relevant to the query. |
| | 16 | | /// </summary> |
| | 17 | | public partial class VideoObject : MediaObject |
| | 18 | | { |
| | 19 | | /// <summary> |
| | 20 | | /// Initializes a new instance of the VideoObject class. |
| | 21 | | /// </summary> |
| 154 | 22 | | public VideoObject() |
| | 23 | | { |
| | 24 | | CustomInit(); |
| 154 | 25 | | } |
| | 26 | |
|
| | 27 | | /// <summary> |
| | 28 | | /// Initializes a new instance of the VideoObject class. |
| | 29 | | /// </summary> |
| | 30 | | /// <param name="id">A String identifier.</param> |
| | 31 | | /// <param name="webSearchUrl">The URL To Bing's search result for this |
| | 32 | | /// item.</param> |
| | 33 | | /// <param name="name">The name of the thing represented by this |
| | 34 | | /// object.</param> |
| | 35 | | /// <param name="url">The URL to get more information about the thing |
| | 36 | | /// represented by this object.</param> |
| | 37 | | /// <param name="description">A short description of the item.</param> |
| | 38 | | /// <param name="bingId">An ID that uniquely identifies this |
| | 39 | | /// item.</param> |
| | 40 | | /// <param name="thumbnailUrl">The URL to a thumbnail of the |
| | 41 | | /// item.</param> |
| | 42 | | /// <param name="provider">The source of the creative work.</param> |
| | 43 | | /// <param name="contentUrl">Original URL to retrieve the source (file) |
| | 44 | | /// for the media object (e.g the source URL for the image).</param> |
| | 45 | | /// <param name="hostPageUrl">URL of the page that hosts the media |
| | 46 | | /// object.</param> |
| | 47 | | /// <param name="width">The width of the source media object, in |
| | 48 | | /// pixels.</param> |
| | 49 | | /// <param name="height">The height of the source media object, in |
| | 50 | | /// pixels.</param> |
| | 51 | | public VideoObject(string id = default(string), string webSearchUrl = default(string), string name = default(str |
| 0 | 52 | | : base(id, webSearchUrl, name, url, image, description, alternateName, bingId, thumbnailUrl, provider, text, |
| | 53 | | { |
| 0 | 54 | | MotionThumbnailUrl = motionThumbnailUrl; |
| 0 | 55 | | MotionThumbnailId = motionThumbnailId; |
| 0 | 56 | | EmbedHtml = embedHtml; |
| 0 | 57 | | AllowHttpsEmbed = allowHttpsEmbed; |
| 0 | 58 | | ViewCount = viewCount; |
| 0 | 59 | | Thumbnail = thumbnail; |
| 0 | 60 | | VideoId = videoId; |
| 0 | 61 | | AllowMobileEmbed = allowMobileEmbed; |
| 0 | 62 | | IsSuperfresh = isSuperfresh; |
| | 63 | | CustomInit(); |
| 0 | 64 | | } |
| | 65 | |
|
| | 66 | | /// <summary> |
| | 67 | | /// An initialization method that performs custom operations like setting defaults |
| | 68 | | /// </summary> |
| | 69 | | partial void CustomInit(); |
| | 70 | |
|
| | 71 | | /// <summary> |
| | 72 | | /// </summary> |
| | 73 | | [JsonProperty(PropertyName = "motionThumbnailUrl")] |
| 0 | 74 | | public string MotionThumbnailUrl { get; private set; } |
| | 75 | |
|
| | 76 | | /// <summary> |
| | 77 | | /// </summary> |
| | 78 | | [JsonProperty(PropertyName = "motionThumbnailId")] |
| 0 | 79 | | public string MotionThumbnailId { get; private set; } |
| | 80 | |
|
| | 81 | | /// <summary> |
| | 82 | | /// </summary> |
| | 83 | | [JsonProperty(PropertyName = "embedHtml")] |
| 0 | 84 | | public string EmbedHtml { get; private set; } |
| | 85 | |
|
| | 86 | | /// <summary> |
| | 87 | | /// </summary> |
| | 88 | | [JsonProperty(PropertyName = "allowHttpsEmbed")] |
| 0 | 89 | | public bool? AllowHttpsEmbed { get; private set; } |
| | 90 | |
|
| | 91 | | /// <summary> |
| | 92 | | /// </summary> |
| | 93 | | [JsonProperty(PropertyName = "viewCount")] |
| 0 | 94 | | public int? ViewCount { get; private set; } |
| | 95 | |
|
| | 96 | | /// <summary> |
| | 97 | | /// </summary> |
| | 98 | | [JsonProperty(PropertyName = "thumbnail")] |
| 0 | 99 | | public ImageObject Thumbnail { get; private set; } |
| | 100 | |
|
| | 101 | | /// <summary> |
| | 102 | | /// </summary> |
| | 103 | | [JsonProperty(PropertyName = "videoId")] |
| 156 | 104 | | public string VideoId { get; private set; } |
| | 105 | |
|
| | 106 | | /// <summary> |
| | 107 | | /// </summary> |
| | 108 | | [JsonProperty(PropertyName = "allowMobileEmbed")] |
| 0 | 109 | | public bool? AllowMobileEmbed { get; private set; } |
| | 110 | |
|
| | 111 | | /// <summary> |
| | 112 | | /// </summary> |
| | 113 | | [JsonProperty(PropertyName = "isSuperfresh")] |
| 0 | 114 | | public bool? IsSuperfresh { get; private set; } |
| | 115 | |
|
| | 116 | | } |
| | 117 | | } |