-
Notifications
You must be signed in to change notification settings - Fork 82
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #40 from jpush/feature/20211208_addCallBackAndNoti…
…fication3rd Feature/20211208 add call back and notification3rd
- Loading branch information
Showing
3 changed files
with
68 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
using Newtonsoft.Json; | ||
using System.Collections.Generic; | ||
|
||
namespace Jiguang.JPush.Model | ||
{ | ||
/// <summary> | ||
/// <see cref="https://docs.jiguang.cn/jpush/server/push/rest_api_v3_push/#callback"/> | ||
/// </summary> | ||
public class CallBack | ||
{ | ||
[JsonProperty("url", NullValueHandling = NullValueHandling.Ignore)] | ||
public string Url { get; set; } | ||
|
||
[JsonProperty("params", NullValueHandling = NullValueHandling.Ignore)] | ||
public Dictionary<string, object> Params { get; set; } | ||
|
||
[JsonProperty("type", NullValueHandling = NullValueHandling.Ignore)] | ||
public int Type { 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,41 @@ | ||
using Newtonsoft.Json; | ||
using System.Collections.Generic; | ||
|
||
namespace Jiguang.JPush.Model | ||
{ | ||
/// <summary> | ||
/// <see cref="https://docs.jiguang.cn/jpush/server/push/rest_api_v3_push/#notification_3rd"/> | ||
/// </summary> | ||
public class Notification3rd | ||
{ | ||
[JsonProperty("title", NullValueHandling = NullValueHandling.Ignore)] | ||
public string Url { get; set; } | ||
|
||
/// <summary> | ||
/// 必填。 | ||
/// </summary> | ||
[JsonProperty("content", NullValueHandling = NullValueHandling.Ignore)] | ||
public string Content { get; set; } | ||
|
||
[JsonProperty("channel_id", NullValueHandling = NullValueHandling.Ignore)] | ||
public string ChannelId { get; set; } | ||
|
||
[JsonProperty("uri_activity", NullValueHandling = NullValueHandling.Ignore)] | ||
public string UriActivity { get; set; } | ||
|
||
[JsonProperty("uri_action", NullValueHandling = NullValueHandling.Ignore)] | ||
public string UriAction { get; set; } | ||
|
||
[JsonProperty("badge_add_num", NullValueHandling = NullValueHandling.Ignore)] | ||
public string BadgeAddNum { get; set; } | ||
|
||
[JsonProperty("badge_class", NullValueHandling = NullValueHandling.Ignore)] | ||
public string BadgeClass { get; set; } | ||
|
||
[JsonProperty("sound", NullValueHandling = NullValueHandling.Ignore)] | ||
public string Sound { get; set; } | ||
|
||
[JsonProperty("extras", NullValueHandling = NullValueHandling.Ignore)] | ||
public Dictionary<string, object> Extras { 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