Generic collection DTO for HubSpot property models.
// 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;
using System.Collections;
using System.Collections.Generic;
using System.Runtime.Serialization;
using HubSpot.NET.Core.Interfaces;
namespace HubSpot.NET.Api.Properties.Dto
{
/// <summary>
/// Models a set of properties in HubSpot (contacts, companies etc.)
/// </summary>
[DataContract]
public class PropertiesListHubSpotModel<T> : IHubSpotModel, ICollection<T>
where T : IHubSpotModel
{
private List<T> Properties { get; } = new List<T>();
public bool IsNameValue => false;
public IEnumerator<T> GetEnumerator()
=> Properties.GetEnumerator();
... (truncated -- full source via MCP)
See the full source, get the GitHub permalink, and search for more like it.
Get a free API key