Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update hubspot equipment object name #12

Merged
merged 1 commit into from
Oct 9, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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();
}
Loading