|
| 1 | +using System.Collections.Generic; |
| 2 | +using System.Runtime.Serialization; |
| 3 | +using HubSpot.NET.Core.Interfaces; |
| 4 | + |
| 5 | +namespace HubSpot.NET.Api.Contact.Dto |
| 6 | +{ |
| 7 | + public class ContactSearchHubSpotModel<T> : IHubSpotModel where T : ContactHubSpotModel, new() |
| 8 | + { |
| 9 | + |
| 10 | + /// <summary> |
| 11 | + /// Gets or sets the query term used to get the results. |
| 12 | + /// </summary> |
| 13 | + /// <value> |
| 14 | + /// The query term. |
| 15 | + /// </value> |
| 16 | + /// <remarks> |
| 17 | + /// This is a mapping of the "query" prop in the JSON return data from HubSpot |
| 18 | + /// </remarks> |
| 19 | + [DataMember(Name = "query")] |
| 20 | + public string Query { get; set; } |
| 21 | + |
| 22 | + /// <summary> |
| 23 | + /// Gets or sets the contacts. |
| 24 | + /// </summary> |
| 25 | + /// <value> |
| 26 | + /// The contacts. |
| 27 | + /// </value> |
| 28 | + [DataMember(Name = "contacts")] |
| 29 | + public IList<T> Contacts { get; set; } = new List<T>(); |
| 30 | + |
| 31 | + /// <summary> |
| 32 | + /// Gets or sets a value indicating whether more results are available. |
| 33 | + /// </summary> |
| 34 | + /// <value> |
| 35 | + /// <c>true</c> if [more results available]; otherwise, <c>false</c>. |
| 36 | + /// </value> |
| 37 | + /// <remarks> |
| 38 | + /// This is a mapping of the "has-more" prop in the JSON return data from HubSpot |
| 39 | + /// </remarks> |
| 40 | + [DataMember(Name = "has-more")] |
| 41 | + public bool MoreResultsAvailable { get; set; } |
| 42 | + |
| 43 | + /// <summary> |
| 44 | + /// Gets or sets the continuation offset. |
| 45 | + /// </summary> |
| 46 | + /// <value> |
| 47 | + /// The continuation offset. |
| 48 | + /// </value> |
| 49 | + /// <remarks> |
| 50 | + /// This is a mapping of the "offset" prop in the JSON reeturn data from HubSpot |
| 51 | + /// </remarks> |
| 52 | + [DataMember(Name = "offset")] |
| 53 | + public long ContinuationOffset { get; set; } |
| 54 | + |
| 55 | + /// <summary> |
| 56 | + /// Gets or sets the total. |
| 57 | + /// </summary> |
| 58 | + /// <value> |
| 59 | + /// The total number of contacts found. |
| 60 | + /// </value> |
| 61 | + /// <remarks> |
| 62 | + /// This is a mapping of the "total" prop in the JSON return data from HubSpot |
| 63 | + /// </remarks> |
| 64 | + [DataMember(Name = "total")] |
| 65 | + public long Total { get; set; } |
| 66 | + |
| 67 | + public string RouteBasePath => "/contacts/v1"; |
| 68 | + |
| 69 | + public bool IsNameValue => false; |
| 70 | + |
| 71 | + public virtual void ToHubSpotDataEntity(ref dynamic converted) |
| 72 | + { |
| 73 | + } |
| 74 | + |
| 75 | + public virtual void FromHubSpotDataEntity(dynamic hubspotData) |
| 76 | + { |
| 77 | + } |
| 78 | + } |
| 79 | +} |
0 commit comments