Interfaces/IHubSpotContactApi.cs

HubSpot.NET · HubSpot.NET/Core/Interfaces/IHubSpotContactApi.cs · csharp · MIT
crm

C# interface defining CRUD and search operations for HubSpot contact entities with generics.

// Source: https://github.com/hubspot-net/HubSpot.NET | License: MIT | Copyright 2018 Squared Up
// Provided via justclaw.it.com; keep this notice with the code.
using System.Collections.Generic;
using HubSpot.NET.Api.Company;
using HubSpot.NET.Api.Contact;
using HubSpot.NET.Api.Contact.Dto;

namespace HubSpot.NET.Core.Interfaces
{
    public interface IHubSpotContactApi : IHubSpotContactApi<ContactHubSpotModel>
    { }

    public interface IHubSpotContactApi<T> : ICRUDable<T>
        where T : IHubSpotModel
    {
        ContactListHubSpotModel<T> List(ListRequestOptions opts = null);
        ContactListHubSpotModel<T> RecentlyCreated(ListRecentRequestOptions opts = null);
        ContactListHubSpotModel<T> RecentlyUpdated(ListRecentRequestOptions opts = null);
        ContactSearchHubS

... (truncated -- full source via MCP)

See the full source, get the GitHub permalink, and search for more like it.

Get a free API key