| | 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.NewsSearch.Models |
| | 8 | | { |
| | 9 | | using Newtonsoft.Json; |
| | 10 | | using System.Linq; |
| | 11 | |
|
| | 12 | | /// <summary> |
| | 13 | | /// Defines a response. All schemas that could be returned at the root of a |
| | 14 | | /// response should inherit from this |
| | 15 | | /// </summary> |
| | 16 | | public partial class Response : Identifiable |
| | 17 | | { |
| | 18 | | /// <summary> |
| | 19 | | /// Initializes a new instance of the Response class. |
| | 20 | | /// </summary> |
| 108 | 21 | | public Response() |
| | 22 | | { |
| | 23 | | CustomInit(); |
| 108 | 24 | | } |
| | 25 | |
|
| | 26 | | /// <summary> |
| | 27 | | /// Initializes a new instance of the Response class. |
| | 28 | | /// </summary> |
| | 29 | | /// <param name="id">A String identifier.</param> |
| | 30 | | /// <param name="webSearchUrl">The URL To Bing's search result for this |
| | 31 | | /// item.</param> |
| | 32 | | public Response(string id = default(string), string webSearchUrl = default(string)) |
| 0 | 33 | | : base(id) |
| | 34 | | { |
| 0 | 35 | | WebSearchUrl = webSearchUrl; |
| | 36 | | CustomInit(); |
| 0 | 37 | | } |
| | 38 | |
|
| | 39 | | /// <summary> |
| | 40 | | /// An initialization method that performs custom operations like setting defaults |
| | 41 | | /// </summary> |
| | 42 | | partial void CustomInit(); |
| | 43 | |
|
| | 44 | | /// <summary> |
| | 45 | | /// Gets the URL To Bing's search result for this item. |
| | 46 | | /// </summary> |
| | 47 | | [JsonProperty(PropertyName = "webSearchUrl")] |
| 12 | 48 | | public string WebSearchUrl { get; private set; } |
| | 49 | |
|
| | 50 | | } |
| | 51 | | } |