diff --git a/HubSpot.NET.Examples/Program.cs b/HubSpot.NET.Examples/Program.cs index 8e77333..c09301c 100644 --- a/HubSpot.NET.Examples/Program.cs +++ b/HubSpot.NET.Examples/Program.cs @@ -110,10 +110,10 @@ static async Task Main(string[] args) - var getEquipment = api.CustomObjects.GetEquipmentDataById(id, newEquipmentId); + var getEquipment = api.CustomObjects.GetEquipmentDataById(id, newEquipmentId); - var getEquipmentHours = api.CustomObjects.GetEquipmentDataById(id, newEquipmentId, "hoursmileage"); + var getEquipmentHours = api.CustomObjects.GetEquipmentDataById(id, newEquipmentId, "hoursmileage"); var result3 = api.CustomObjects.GetAssociationsToCustomObject ("2-4390924", "3254092177", diff --git a/HubSpot.NET/Api/CustomObject/EquipmentObjectModel.cs b/HubSpot.NET/Api/CustomObject/EquipmentObjectModel.cs index d37ba04..c40e9b0 100644 --- a/HubSpot.NET/Api/CustomObject/EquipmentObjectModel.cs +++ b/HubSpot.NET/Api/CustomObject/EquipmentObjectModel.cs @@ -5,7 +5,7 @@ using System.Xml.Linq; namespace HubSpot.NET.Api.CustomObject; -public class GetHubspotEquipmentObjectModel : IHubSpotModel +public class HubspotEquipmentObjectModel : IHubSpotModel { #nullable enable diff --git a/HubSpot.NET/Api/CustomObject/HubSpotCustomObjectApi.cs b/HubSpot.NET/Api/CustomObject/HubSpotCustomObjectApi.cs index d75b6d1..1d50d6a 100644 --- a/HubSpot.NET/Api/CustomObject/HubSpotCustomObjectApi.cs +++ b/HubSpot.NET/Api/CustomObject/HubSpotCustomObjectApi.cs @@ -242,7 +242,7 @@ public CustomObjectListAssociationsModel GetAssociationsToCustomObject(str return string.Empty; } - public T GetEquipmentDataById(string schemaId, string entityId, string properties = "") where T : GetHubspotEquipmentObjectModel, new() + public T GetEquipmentDataById(string schemaId, string entityId, string properties = "") where T : HubspotEquipmentObjectModel, new() { if(properties == "") { diff --git a/HubSpot.NET/Core/Interfaces/IHubSpotCustomObjectApi.cs b/HubSpot.NET/Core/Interfaces/IHubSpotCustomObjectApi.cs index ec5c6d6..3303120 100644 --- a/HubSpot.NET/Core/Interfaces/IHubSpotCustomObjectApi.cs +++ b/HubSpot.NET/Core/Interfaces/IHubSpotCustomObjectApi.cs @@ -17,5 +17,5 @@ string CreateWithDefaultAssociationToObject(T entity, string associateObjectT string UpdateObject(T entity) where T : UpdateCustomObjectHubSpotModel, new(); - T GetEquipmentDataById(string schemaId, string entityId, string properties="") where T : GetHubspotEquipmentObjectModel, new(); + T GetEquipmentDataById(string schemaId, string entityId, string properties="") where T : HubspotEquipmentObjectModel, new(); } \ No newline at end of file