Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Closes#71 - Added additional filtering to members
- Loading branch information
1 parent
07245ea
commit 3158adc
Showing
4 changed files
with
85 additions
and
0 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
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,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<ListActivity>(); | ||
} | ||
[JsonProperty("activity")] | ||
public IEnumerable<ListActivity> Activities { get; set; } | ||
|
||
[JsonProperty("list_id")] | ||
public string ListId { 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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; } | ||
} | ||
} |
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,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; } | ||
} | ||
} |
3158adc
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Closes #71
3158adc
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ok col, can you also give an example of the call to get a user using the UNIQUEID ?