Skip to content

Commit

Permalink
update hubspot
Browse files Browse the repository at this point in the history
  • Loading branch information
kundu-ramit123 committed Oct 9, 2023
1 parent 386b5b9 commit 16c0b84
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions HubSpot.NET.Examples/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -110,10 +110,10 @@ static async Task Main(string[] args)



var getEquipment = api.CustomObjects.GetEquipmentDataById<GetHubspotEquipmentObjectModel>(id, newEquipmentId);
var getEquipment = api.CustomObjects.GetEquipmentDataById<HubspotEquipmentObjectModel>(id, newEquipmentId);


var getEquipmentHours = api.CustomObjects.GetEquipmentDataById<GetHubspotEquipmentObjectModel>(id, newEquipmentId, "hoursmileage");
var getEquipmentHours = api.CustomObjects.GetEquipmentDataById<HubspotEquipmentObjectModel>(id, newEquipmentId, "hoursmileage");

var result3 = api.CustomObjects.GetAssociationsToCustomObject
<CustomObjectAssociationModel>("2-4390924", "3254092177",
Expand Down
2 changes: 1 addition & 1 deletion HubSpot.NET/Api/CustomObject/EquipmentObjectModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
using System.Xml.Linq;

namespace HubSpot.NET.Api.CustomObject;
public class GetHubspotEquipmentObjectModel : IHubSpotModel
public class HubspotEquipmentObjectModel : IHubSpotModel
{
#nullable enable

Expand Down
2 changes: 1 addition & 1 deletion HubSpot.NET/Api/CustomObject/HubSpotCustomObjectApi.cs
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,7 @@ public CustomObjectListAssociationsModel<T> GetAssociationsToCustomObject<T>(str
return string.Empty;
}

public T GetEquipmentDataById<T>(string schemaId, string entityId, string properties = "") where T : GetHubspotEquipmentObjectModel, new()
public T GetEquipmentDataById<T>(string schemaId, string entityId, string properties = "") where T : HubspotEquipmentObjectModel, new()
{
if(properties == "")
{
Expand Down
2 changes: 1 addition & 1 deletion HubSpot.NET/Core/Interfaces/IHubSpotCustomObjectApi.cs
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,5 @@ string CreateWithDefaultAssociationToObject<T>(T entity, string associateObjectT

string UpdateObject<T>(T entity)
where T : UpdateCustomObjectHubSpotModel, new();
T GetEquipmentDataById<T>(string schemaId, string entityId, string properties="") where T : GetHubspotEquipmentObjectModel, new();
T GetEquipmentDataById<T>(string schemaId, string entityId, string properties="") where T : HubspotEquipmentObjectModel, new();
}

0 comments on commit 16c0b84

Please sign in to comment.