| | 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.ImageSearch.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 link to a webpage that contains a collection of related |
| | 16 | | /// images. |
| | 17 | | /// </summary> |
| | 18 | | public partial class ImageGallery : CollectionPage |
| | 19 | | { |
| | 20 | | /// <summary> |
| | 21 | | /// Initializes a new instance of the ImageGallery class. |
| | 22 | | /// </summary> |
| 0 | 23 | | public ImageGallery() |
| | 24 | | { |
| | 25 | | CustomInit(); |
| 0 | 26 | | } |
| | 27 | |
|
| | 28 | | /// <summary> |
| | 29 | | /// Initializes a new instance of the ImageGallery 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="name">The name of the thing represented by this |
| | 36 | | /// object.</param> |
| | 37 | | /// <param name="url">The URL to get more information about the thing |
| | 38 | | /// represented by this object.</param> |
| | 39 | | /// <param name="image">An image of the item.</param> |
| | 40 | | /// <param name="description">A short description of the item.</param> |
| | 41 | | /// <param name="alternateName">An alias for the item</param> |
| | 42 | | /// <param name="bingId">An ID that uniquely identifies this |
| | 43 | | /// item.</param> |
| | 44 | | /// <param name="thumbnailUrl">The URL to a thumbnail of the |
| | 45 | | /// item.</param> |
| | 46 | | /// <param name="provider">The source of the creative work.</param> |
| | 47 | | /// <param name="datePublished">The date on which the CreativeWork was |
| | 48 | | /// published.</param> |
| | 49 | | /// <param name="text">Text content of this creative work</param> |
| | 50 | | /// <param name="source">The publisher or social network where the |
| | 51 | | /// images were found. You must attribute the publisher as the source |
| | 52 | | /// where the collection was found.</param> |
| | 53 | | /// <param name="imagesCount">The number of related images found in the |
| | 54 | | /// collection.</param> |
| | 55 | | /// <param name="followersCount">The number of users on the social |
| | 56 | | /// network that follow the creator.</param> |
| | 57 | | public ImageGallery(string id = default(string), string readLink = default(string), string webSearchUrl = defaul |
| 0 | 58 | | : base(id, readLink, webSearchUrl, name, url, image, description, alternateName, bingId, thumbnailUrl, provi |
| | 59 | | { |
| 0 | 60 | | Source = source; |
| 0 | 61 | | ImagesCount = imagesCount; |
| 0 | 62 | | FollowersCount = followersCount; |
| | 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 | | /// Gets the publisher or social network where the images were found. |
| | 73 | | /// You must attribute the publisher as the source where the collection |
| | 74 | | /// was found. |
| | 75 | | /// </summary> |
| | 76 | | [JsonProperty(PropertyName = "source")] |
| 0 | 77 | | public string Source { get; private set; } |
| | 78 | |
|
| | 79 | | /// <summary> |
| | 80 | | /// Gets the number of related images found in the collection. |
| | 81 | | /// </summary> |
| | 82 | | [JsonProperty(PropertyName = "imagesCount")] |
| 0 | 83 | | public long? ImagesCount { get; private set; } |
| | 84 | |
|
| | 85 | | /// <summary> |
| | 86 | | /// Gets the number of users on the social network that follow the |
| | 87 | | /// creator. |
| | 88 | | /// </summary> |
| | 89 | | [JsonProperty(PropertyName = "followersCount")] |
| 0 | 90 | | public long? FollowersCount { get; private set; } |
| | 91 | |
|
| | 92 | | } |
| | 93 | | } |