-
Notifications
You must be signed in to change notification settings - Fork 30
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: handle timestamp conversion to datetime(offset) [#79]
- Loading branch information
1 parent
fb75e30
commit 22a014a
Showing
3 changed files
with
42 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
17 changes: 17 additions & 0 deletions
17
test/integration/Contact/Dto/ContactHubSpotEntityExtended.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
using System; | ||
using System.Runtime.Serialization; | ||
using Skarp.HubSpotClient.Contact.Dto; | ||
|
||
namespace integration.Contact.Dto | ||
{ | ||
/// <summary> | ||
/// Extended HubSpot Contact Entity | ||
/// </summary> | ||
/// <remarks>Used to test functionality of DateTime/DateTime?/DateTimeOffset/DateTimeOffset?</remarks> | ||
[DataContract] | ||
public class ContactHubSpotEntityExtended : ContactHubSpotEntity | ||
{ | ||
[DataMember(Name = "lastmodifieddate")] | ||
public DateTimeOffset? LastModified { get; set; } | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters