diff --git a/MailChimp.Net/Core/Requests/MemberRequest.cs b/MailChimp.Net/Core/Requests/MemberRequest.cs index fe76836b..e911d166 100644 --- a/MailChimp.Net/Core/Requests/MemberRequest.cs +++ b/MailChimp.Net/Core/Requests/MemberRequest.cs @@ -16,6 +16,12 @@ public class MemberRequest : QueryableBaseRequest [QueryString("email_type")] public string EmailType { get; set; } + [QueryString("unique_email_id")] + public string UniqueEmailId { get; set; } + + [QueryString("vip_only")] + public bool VipOnly { get; set; } + [QueryString("status")] public Status? Status { get; set; } diff --git a/MailChimp.Net/Core/Responses/ListActivityResponse.cs b/MailChimp.Net/Core/Responses/ListActivityResponse.cs new file mode 100644 index 00000000..9141013e --- /dev/null +++ b/MailChimp.Net/Core/Responses/ListActivityResponse.cs @@ -0,0 +1,19 @@ +using MailChimp.Net.Models; +using Newtonsoft.Json; +using System.Collections.Generic; + +namespace MailChimp.Net.Core +{ + public class ListActivityResponse : BaseResponse + { + public ListActivityResponse() + { + this.Activities = new List(); + } + [JsonProperty("activity")] + public IEnumerable Activities { get; set; } + + [JsonProperty("list_id")] + public string ListId { get; set; } + } +} diff --git a/MailChimp.Net/Models/EmailMemberActivity.cs b/MailChimp.Net/Models/EmailMemberActivity.cs new file mode 100644 index 00000000..6cf4143f --- /dev/null +++ b/MailChimp.Net/Models/EmailMemberActivity.cs @@ -0,0 +1,22 @@ +using Newtonsoft.Json; + +namespace MailChimp.Net.Models +{ + public class EmailMemberActivity + { + [JsonProperty("action")] + public string Action { get; set; } + + [JsonProperty("timestamp")] + public string Timestamp { get; set; } + + [JsonProperty("type")] + public string Type { get; set; } + + [JsonProperty("url")] + public string Url { get; set; } + + [JsonProperty("ip")] + public string Ip { get; set; } + } +} diff --git a/MailChimp.Net/Models/ListActivity.cs b/MailChimp.Net/Models/ListActivity.cs new file mode 100644 index 00000000..a8bfd7ab --- /dev/null +++ b/MailChimp.Net/Models/ListActivity.cs @@ -0,0 +1,38 @@ +using Newtonsoft.Json; + +namespace MailChimp.Net.Models +{ + public class ListActivity + { + + [JsonProperty("day")] + public string Day { get; set; } + + [JsonProperty("emails_sent")] + public int EmailsSent { get; set; } + + [JsonProperty("unique_opens")] + public int UniqueOpens { get; set; } + + [JsonProperty("recipient_clicks")] + public int RecipientClicks { get; set; } + + [JsonProperty("hard_bounce")] + public int HardBounce { get; set; } + + [JsonProperty("soft_bounce")] + public int SoftBounce { get; set; } + + [JsonProperty("subs")] + public int Subs { get; set; } + + [JsonProperty("unsubs")] + public int Unsubs { get; set; } + + [JsonProperty("other_adds")] + public int OtherAdds { get; set; } + + [JsonProperty("other_removes")] + public int OtherRemoves { get; set; } + } +}