| | 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.AutoSuggest.Models |
| | 8 | | { |
| | 9 | | using Newtonsoft.Json; |
| | 10 | | using System.Collections; |
| | 11 | | using System.Collections.Generic; |
| | 12 | | using System.Linq; |
| | 13 | |
|
| | 14 | | /// <summary> |
| | 15 | | /// The most generic kind of creative work, including books, movies, |
| | 16 | | /// photographs, software programs, etc. |
| | 17 | | /// </summary> |
| | 18 | | public partial class CreativeWork : Thing |
| | 19 | | { |
| | 20 | | /// <summary> |
| | 21 | | /// Initializes a new instance of the CreativeWork class. |
| | 22 | | /// </summary> |
| 16 | 23 | | public CreativeWork() |
| | 24 | | { |
| | 25 | | CustomInit(); |
| 16 | 26 | | } |
| | 27 | |
|
| | 28 | | /// <summary> |
| | 29 | | /// Initializes a new instance of the CreativeWork class. |
| | 30 | | /// </summary> |
| | 31 | | /// <param name="id">A String identifier.</param> |
| | 32 | | /// <param name="readLink">The URL that returns this resource.</param> |
| | 33 | | /// <param name="webSearchUrl">The URL To Bing's search result for this |
| | 34 | | /// item.</param> |
| | 35 | | /// <param name="url">The URL to get more information about the thing |
| | 36 | | /// represented by this object.</param> |
| | 37 | | /// <param name="thumbnailUrl">The URL to a thumbnail of the |
| | 38 | | /// item.</param> |
| | 39 | | /// <param name="about">For internal use only.</param> |
| | 40 | | /// <param name="mentions">For internal use only.</param> |
| | 41 | | /// <param name="provider">The source of the creative work.</param> |
| | 42 | | /// <param name="text">Text content of this creative work</param> |
| | 43 | | public CreativeWork(string id = default(string), string readLink = default(string), string webSearchUrl = defaul |
| 0 | 44 | | : base(id, readLink, webSearchUrl, potentialAction, immediateAction, preferredClickthroughUrl, adaptiveCard, |
| | 45 | | { |
| 0 | 46 | | ThumbnailUrl = thumbnailUrl; |
| 0 | 47 | | About = about; |
| 0 | 48 | | Mentions = mentions; |
| 0 | 49 | | Provider = provider; |
| 0 | 50 | | Creator = creator; |
| 0 | 51 | | Text = text; |
| 0 | 52 | | DiscussionUrl = discussionUrl; |
| 0 | 53 | | CommentCount = commentCount; |
| 0 | 54 | | MainEntity = mainEntity; |
| 0 | 55 | | HeadLine = headLine; |
| 0 | 56 | | CopyrightHolder = copyrightHolder; |
| 0 | 57 | | CopyrightYear = copyrightYear; |
| 0 | 58 | | Disclaimer = disclaimer; |
| 0 | 59 | | IsAccessibleForFree = isAccessibleForFree; |
| 0 | 60 | | Genre = genre; |
| 0 | 61 | | IsFamilyFriendly = isFamilyFriendly; |
| | 62 | | CustomInit(); |
| 0 | 63 | | } |
| | 64 | |
|
| | 65 | | /// <summary> |
| | 66 | | /// An initialization method that performs custom operations like setting defaults |
| | 67 | | /// </summary> |
| | 68 | | partial void CustomInit(); |
| | 69 | |
|
| | 70 | | /// <summary> |
| | 71 | | /// Gets the URL to a thumbnail of the item. |
| | 72 | | /// </summary> |
| | 73 | | [JsonProperty(PropertyName = "thumbnailUrl")] |
| 0 | 74 | | public string ThumbnailUrl { get; private set; } |
| | 75 | |
|
| | 76 | | /// <summary> |
| | 77 | | /// Gets for internal use only. |
| | 78 | | /// </summary> |
| | 79 | | [JsonProperty(PropertyName = "about")] |
| 0 | 80 | | public IList<Thing> About { get; private set; } |
| | 81 | |
|
| | 82 | | /// <summary> |
| | 83 | | /// Gets for internal use only. |
| | 84 | | /// </summary> |
| | 85 | | [JsonProperty(PropertyName = "mentions")] |
| 0 | 86 | | public IList<Thing> Mentions { get; private set; } |
| | 87 | |
|
| | 88 | | /// <summary> |
| | 89 | | /// Gets the source of the creative work. |
| | 90 | | /// </summary> |
| | 91 | | [JsonProperty(PropertyName = "provider")] |
| 0 | 92 | | public IList<Thing> Provider { get; private set; } |
| | 93 | |
|
| | 94 | | /// <summary> |
| | 95 | | /// </summary> |
| | 96 | | [JsonProperty(PropertyName = "creator")] |
| 0 | 97 | | public Thing Creator { get; private set; } |
| | 98 | |
|
| | 99 | | /// <summary> |
| | 100 | | /// Gets text content of this creative work |
| | 101 | | /// </summary> |
| | 102 | | [JsonProperty(PropertyName = "text")] |
| 0 | 103 | | public string Text { get; private set; } |
| | 104 | |
|
| | 105 | | /// <summary> |
| | 106 | | /// </summary> |
| | 107 | | [JsonProperty(PropertyName = "discussionUrl")] |
| 0 | 108 | | public string DiscussionUrl { get; private set; } |
| | 109 | |
|
| | 110 | | /// <summary> |
| | 111 | | /// </summary> |
| | 112 | | [JsonProperty(PropertyName = "commentCount")] |
| 0 | 113 | | public int? CommentCount { get; private set; } |
| | 114 | |
|
| | 115 | | /// <summary> |
| | 116 | | /// </summary> |
| | 117 | | [JsonProperty(PropertyName = "mainEntity")] |
| 0 | 118 | | public Thing MainEntity { get; private set; } |
| | 119 | |
|
| | 120 | | /// <summary> |
| | 121 | | /// </summary> |
| | 122 | | [JsonProperty(PropertyName = "headLine")] |
| 0 | 123 | | public string HeadLine { get; private set; } |
| | 124 | |
|
| | 125 | | /// <summary> |
| | 126 | | /// </summary> |
| | 127 | | [JsonProperty(PropertyName = "copyrightHolder")] |
| 0 | 128 | | public Thing CopyrightHolder { get; private set; } |
| | 129 | |
|
| | 130 | | /// <summary> |
| | 131 | | /// </summary> |
| | 132 | | [JsonProperty(PropertyName = "copyrightYear")] |
| 0 | 133 | | public int? CopyrightYear { get; private set; } |
| | 134 | |
|
| | 135 | | /// <summary> |
| | 136 | | /// </summary> |
| | 137 | | [JsonProperty(PropertyName = "disclaimer")] |
| 0 | 138 | | public string Disclaimer { get; private set; } |
| | 139 | |
|
| | 140 | | /// <summary> |
| | 141 | | /// </summary> |
| | 142 | | [JsonProperty(PropertyName = "isAccessibleForFree")] |
| 0 | 143 | | public bool? IsAccessibleForFree { get; private set; } |
| | 144 | |
|
| | 145 | | /// <summary> |
| | 146 | | /// </summary> |
| | 147 | | [JsonProperty(PropertyName = "genre")] |
| 0 | 148 | | public IList<string> Genre { get; private set; } |
| | 149 | |
|
| | 150 | | /// <summary> |
| | 151 | | /// </summary> |
| | 152 | | [JsonProperty(PropertyName = "isFamilyFriendly")] |
| 0 | 153 | | public bool? IsFamilyFriendly { get; private set; } |
| | 154 | |
|
| | 155 | | } |
| | 156 | | } |