From 484c940394c10813234a6a60b702cabfabcea794 Mon Sep 17 00:00:00 2001 From: jvsdev Date: Fri, 27 Mar 2020 13:47:37 +0100 Subject: [PATCH 1/2] DateTimes will now be received in Utc --- CM.Email.Sdk/Models/Campaign.cs | 8 ++++---- CM.Email.Sdk/Models/CampaignStatisticDetail.cs | 14 +++++++------- CM.Email.Sdk/Models/CampaignTag.cs | 6 +++--- CM.Email.Sdk/Models/FromAddress.cs | 6 +++--- CM.Email.Sdk/Models/FromDomain.cs | 6 +++--- CM.Email.Sdk/Models/Mail.cs | 4 ++-- CM.Email.Sdk/Models/MailStatisticDetail.cs | 16 ++++++++-------- CM.Email.Sdk/Models/Mailing.cs | 6 +++--- CM.Email.Sdk/Models/Template.cs | 6 +++--- CM.Email.Sdk/Models/Unsubscription.cs | 4 ++-- CM.Email.Sdk/Models/Webhook.cs | 6 +++--- 11 files changed, 41 insertions(+), 41 deletions(-) diff --git a/CM.Email.Sdk/Models/Campaign.cs b/CM.Email.Sdk/Models/Campaign.cs index cf77f2e..b1db1ec 100644 --- a/CM.Email.Sdk/Models/Campaign.cs +++ b/CM.Email.Sdk/Models/Campaign.cs @@ -37,7 +37,7 @@ public class Campaign /// /// The datetime to schedule this campaign. This datetime is currently in the dutch timezone. Leave null if you want to send a campaign right away /// - public DateTime? ScheduledOn { get; set; } + public DateTime? ScheduledOnUtc { get; set; } /// /// The test percentage multiplier to use for your AB test newletter. This should be at least 0.10 (10%) or higher. Leave null if you want to send a newsletter or triggered campaign @@ -77,16 +77,16 @@ public class Campaign /// /// When the campaign was created /// - public DateTime CreatedOn { get; set; } + public DateTime CreatedOnUtc { get; set; } /// /// When the campaign was last modified /// - public DateTime ModifiedOn { get; set; } + public DateTime ModifiedOnUtc { get; set; } /// /// When the campaign was deleted /// - public DateTime? DeletedOn { get; set; } + public DateTime? DeletedOnUtc { get; set; } } } diff --git a/CM.Email.Sdk/Models/CampaignStatisticDetail.cs b/CM.Email.Sdk/Models/CampaignStatisticDetail.cs index 61addd2..7ead3f3 100644 --- a/CM.Email.Sdk/Models/CampaignStatisticDetail.cs +++ b/CM.Email.Sdk/Models/CampaignStatisticDetail.cs @@ -12,37 +12,37 @@ public class CampaignStatisticDetail /// /// DateTime the mail was sent on /// - public DateTime? SentOn { get; set; } + public DateTime? SentOnUtc { get; set; } /// /// DateTime the mail was delivered on /// - public DateTime? DeliveredOn { get; set; } + public DateTime? DeliveredOnUtc { get; set; } /// /// DateTime the user opened the mail /// - public DateTime? OpenedOn { get; set; } + public DateTime? OpenedOnUtc { get; set; } /// /// DateTime the mail has bounced on /// - public DateTime? BouncedOn { get; set; } + public DateTime? BouncedOnUtc { get; set; } /// /// DateTime the user complained on /// - public DateTime? ComplainedOn { get; set; } + public DateTime? ComplainedOnUtc { get; set; } /// /// DateTime the user unsubscirbed on /// - public DateTime? UnsubscribedOn { get; set; } + public DateTime? UnsubscribedOnUtc { get; set; } /// /// DateTime it was blacklisted on. This means this recipient has caused a permanent bounce before, or unsubscribed and we haven't send to it with this campaign /// - public DateTime? BlacklistedOn { get; set; } + public DateTime? BlacklistedOnUtc { get; set; } /// /// How many links a user has clicked diff --git a/CM.Email.Sdk/Models/CampaignTag.cs b/CM.Email.Sdk/Models/CampaignTag.cs index 27da80b..fc25f7b 100644 --- a/CM.Email.Sdk/Models/CampaignTag.cs +++ b/CM.Email.Sdk/Models/CampaignTag.cs @@ -22,16 +22,16 @@ public class CampaignTag /// /// When the tag was created /// - public DateTime CreatedOn { get; set; } + public DateTime CreatedOnUtc { get; set; } /// /// When the tag was modified /// - public DateTime ModifiedOn { get; set; } + public DateTime ModifiedOnUtc { get; set; } /// /// When the tag was deleted /// - public DateTime? DeletedOn { get; set; } + public DateTime? DeletedOnUtc { get; set; } } } diff --git a/CM.Email.Sdk/Models/FromAddress.cs b/CM.Email.Sdk/Models/FromAddress.cs index 0b8b92e..66e9bbe 100644 --- a/CM.Email.Sdk/Models/FromAddress.cs +++ b/CM.Email.Sdk/Models/FromAddress.cs @@ -27,16 +27,16 @@ public class FromAddress /// /// When the address was created /// - public DateTime CreatedOn { get; set; } + public DateTime CreatedOnUtc { get; set; } /// /// When the address was last modified /// - public DateTime ModifiedOn { get; set; } + public DateTime ModifiedOnUtc { get; set; } /// /// When the address was deleted /// - public DateTime? DeletedOn { get; set; } + public DateTime? DeletedOnUtc { get; set; } } } diff --git a/CM.Email.Sdk/Models/FromDomain.cs b/CM.Email.Sdk/Models/FromDomain.cs index 93ae017..4d2f9f1 100644 --- a/CM.Email.Sdk/Models/FromDomain.cs +++ b/CM.Email.Sdk/Models/FromDomain.cs @@ -32,16 +32,16 @@ public class FromDomain /// /// When the from domain was created /// - public DateTime Createdon { get; set; } + public DateTime CreatedOnUtc { get; set; } /// /// When the from domain was modified /// - public DateTime ModifiedOn { get; set; } + public DateTime ModifiedOnUtc { get; set; } /// /// When the from domain was deleted /// - public DateTime? DeletedOn { get; set; } + public DateTime? DeletedOnUtc { get; set; } } } diff --git a/CM.Email.Sdk/Models/Mail.cs b/CM.Email.Sdk/Models/Mail.cs index e6b8660..09602a6 100644 --- a/CM.Email.Sdk/Models/Mail.cs +++ b/CM.Email.Sdk/Models/Mail.cs @@ -87,11 +87,11 @@ public class Mail /// /// When the mail was created /// - public DateTime CreatedOn { get; set; } + public DateTime CreatedOnUtc { get; set; } /// /// When the mail was last modified /// - public DateTime ModifiedOn { get; set; } + public DateTime ModifiedOnUtc { get; set; } } } diff --git a/CM.Email.Sdk/Models/MailStatisticDetail.cs b/CM.Email.Sdk/Models/MailStatisticDetail.cs index 047ba94..d290fa9 100644 --- a/CM.Email.Sdk/Models/MailStatisticDetail.cs +++ b/CM.Email.Sdk/Models/MailStatisticDetail.cs @@ -17,42 +17,42 @@ public class MailStatisticDetail /// /// When the mail was created /// - public DateTime CreatedOn { get; set; } + public DateTime CreatedOnUtc { get; set; } /// /// DateTime the mail was sent on /// - public DateTime? SentOn { get; set; } + public DateTime? SentOnUtc { get; set; } /// /// DateTime the mail was delivered on /// - public DateTime? DeliveredOn { get; set; } + public DateTime? DeliveredOnUtc { get; set; } /// /// DateTime the user opened the mail /// - public DateTime? OpenedOn { get; set; } + public DateTime? OpenedOnUtc { get; set; } /// /// DateTime the mail has bounced on /// - public DateTime? BouncedOn { get; set; } + public DateTime? BouncedOnUtc { get; set; } /// /// DateTime the user complained on /// - public DateTime? ComplainedOn { get; set; } + public DateTime? ComplainedOnUtc { get; set; } /// /// DateTime the user unsubscirbed on /// - public DateTime? UnsubscribedOn { get; set; } + public DateTime? UnsubscribedOnUtc { get; set; } /// /// DateTime it was blacklisted on. This means this recipient has caused a permanent bounce before, or unsubscribed and we haven't send to it with this mailing /// - public DateTime? BlacklistedOn { get; set; } + public DateTime? BlacklistedOnUtc { get; set; } /// /// How many links a user has clicked diff --git a/CM.Email.Sdk/Models/Mailing.cs b/CM.Email.Sdk/Models/Mailing.cs index 74b5429..b418ac0 100644 --- a/CM.Email.Sdk/Models/Mailing.cs +++ b/CM.Email.Sdk/Models/Mailing.cs @@ -62,16 +62,16 @@ public class Mailing /// /// When the mailing was created /// - public DateTime CreatedOn { get; set; } + public DateTime CreatedOnUtc { get; set; } /// /// When the mailing was last modified /// - public DateTime ModifiedOn { get; set; } + public DateTime ModifiedOnUtc { get; set; } /// /// When the mailing was deleted /// - public DateTime? DeletedOn { get; set; } + public DateTime? DeletedOnUtc { get; set; } } } diff --git a/CM.Email.Sdk/Models/Template.cs b/CM.Email.Sdk/Models/Template.cs index 0a9210f..c625680 100644 --- a/CM.Email.Sdk/Models/Template.cs +++ b/CM.Email.Sdk/Models/Template.cs @@ -47,16 +47,16 @@ public class Template /// /// When the template was created /// - public DateTime CreatedOn { get; set; } + public DateTime CreatedOnUtc { get; set; } /// /// When the template was last modified /// - public DateTime ModifiedOn { get; set; } + public DateTime ModifiedOnUtc { get; set; } /// /// When the template was deleted /// - public DateTime? DeletedOn { get; set; } + public DateTime? DeletedOnUtc { get; set; } } } diff --git a/CM.Email.Sdk/Models/Unsubscription.cs b/CM.Email.Sdk/Models/Unsubscription.cs index b2c9889..f27e658 100644 --- a/CM.Email.Sdk/Models/Unsubscription.cs +++ b/CM.Email.Sdk/Models/Unsubscription.cs @@ -27,11 +27,11 @@ public class Unsubscription /// /// When the address was created /// - public DateTime CreatedOn { get; set; } + public DateTime CreatedOnUtc { get; set; } /// /// When the address was last modified /// - public DateTime ModifiedOn { get; set; } + public DateTime ModifiedOnUtc { get; set; } } } diff --git a/CM.Email.Sdk/Models/Webhook.cs b/CM.Email.Sdk/Models/Webhook.cs index 8b2ff23..a8deb9a 100644 --- a/CM.Email.Sdk/Models/Webhook.cs +++ b/CM.Email.Sdk/Models/Webhook.cs @@ -22,16 +22,16 @@ public class Webhook /// /// When the webhook was created /// - public DateTime CreatedOn { get; set; } + public DateTime CreatedOnUtc { get; set; } /// /// When the webhook was last modified /// - public DateTime ModifiedOn { get; set; } + public DateTime ModifiedOnUtc { get; set; } /// /// When the webhook was deleted /// - public DateTime? DeletedOn { get; set; } + public DateTime? DeletedOnUtc { get; set; } } } From 06502198a7080682ed81ddad34e9b6ec2686a66a Mon Sep 17 00:00:00 2001 From: jvsdev Date: Fri, 27 Mar 2020 15:17:31 +0100 Subject: [PATCH 2/2] Changed SendToRemainingOn to SendToRemainingOnUtc --- CM.Email.Sdk/Models/Campaign.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CM.Email.Sdk/Models/Campaign.cs b/CM.Email.Sdk/Models/Campaign.cs index b1db1ec..2d270ca 100644 --- a/CM.Email.Sdk/Models/Campaign.cs +++ b/CM.Email.Sdk/Models/Campaign.cs @@ -57,7 +57,7 @@ public class Campaign /// /// The datetime to calculate the winning mailing and send it. This value is calculated automatically. This datetime is currently in the dutch timezone /// - public DateTime? SendToRemainingOn { get; set; } + public DateTime? SendToRemainingOnUtc { get; set; } /// /// The ID of the best performing mailing based on the TestDuration and TestMetricType. This value will be filled when the campaign has the PickedUpByFinisher state