示例#1
0
 /// <summary>
 /// creates a new <see cref="OwnersApi"/>
 /// </summary>
 /// <param name="rest">rest access to hubspot</param>
 public OwnersApi(HubSpotRestClient rest)
 {
     this.rest = rest;
 }
示例#2
0
 internal BlogPostApi(HubSpotRestClient rest, ModelRegistry model)
 {
     _rest  = rest;
     _model = model;
 }
示例#3
0
 /// <summary>
 /// creates a new <see cref="CompanyApi"/>
 /// </summary>
 /// <param name="rest">rest client</param>
 /// <param name="registry">access to entity models</param>
 internal CompanyApi(HubSpotRestClient rest, ModelRegistry registry)
 {
     this.rest     = rest;
     this.registry = registry;
 }
示例#4
0
 /// <summary>
 /// creates a new <see cref="ContactApi"/>
 /// </summary>
 /// <param name="rest">rest client to call api</param>
 /// <param name="models">model registry used to access entity models</param>
 internal ContactApi(HubSpotOptions options, HubSpotRestClient rest, ModelRegistry models)
 {
     _options    = options;
     this.rest   = rest;
     this.models = models;
 }
示例#5
0
 internal PipelinesApi(HubSpotRestClient rest)
 {
     this.rest = rest;
 }
示例#6
0
 /// <summary>
 /// creates a new <see cref="TicketsApi"/>
 /// </summary>
 /// <param name="restclient">rest client used to access hubspot endpoints</param>
 /// <param name="models">entity model registry</param>
 internal TicketsApi(HubSpotRestClient restclient, ModelRegistry models)
 {
     this.restclient = restclient;
     this.models     = models;
 }
 /// <summary>
 /// creates a new <see cref="AssociationApi"/>
 /// </summary>
 /// <param name="rest">access to rest api</param>
 internal AssociationApi(HubSpotRestClient rest)
 {
     this.rest = rest;
 }