HubSpot.NET icon indicating copy to clipboard operation
HubSpot.NET copied to clipboard

IHubspotContactAPI no longer allows for inherited object types to be sent to HS.

Open mexner opened this issue 4 years ago • 0 comments

Describe the bug The master release file has breaking changes from the most recent published "release", ie: v0.6.17. Specifically, the IHubSpotContactApi used to allow passing inherited object types as generic T types. Look at line #14 specifically,

T GetByEmail<T>(string email) where T : ContactHubSpotModel; versus T GetByEmail(string email);

Now if we create our own contact type inherited from IHubSpotContactApi, we can no longer send the contact for Get/Add/Edits.

Was this intentional? And is there a work around currently?

mexner avatar Jun 22 '20 19:06 mexner