-
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.
- Loading branch information
Showing
4 changed files
with
33 additions
and
33 deletions.
There are no files selected for viewing
Binary file not shown.
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 |
---|---|---|
@@ -1,31 +1,31 @@ | ||
using Newtonsoft.Json; | ||
|
||
namespace Jiguang.JPush.Model | ||
{ | ||
/// <summary> | ||
/// <see cref="https://docs.jiguang.cn/jpush/server/push/rest_api_v3_push/#options"/> | ||
/// </summary> | ||
public class Options | ||
{ | ||
[JsonProperty("sendno")] | ||
public int SendNo { get; set; } | ||
|
||
[JsonProperty("time_to_live")] | ||
public int TimeToLive { get; set; } | ||
|
||
[JsonProperty("override_msg_id")] | ||
public long OverrideMessageId { get; set; } | ||
|
||
/// <summary> | ||
/// iOS 推送是否为生产环境。默认为 false,开发环境。 | ||
/// </summary> | ||
[JsonProperty("apns_production", DefaultValueHandling = DefaultValueHandling.Include)] | ||
public bool IsApnsProduction { get; set; } = false; | ||
|
||
[JsonProperty("apns_collapse_id")] | ||
public string ApnsCollapseId { get; set; } | ||
|
||
[JsonProperty("big_push_duration")] | ||
public int BigPushDuration { get; set; } | ||
} | ||
} | ||
using Newtonsoft.Json; | ||
|
||
namespace Jiguang.JPush.Model | ||
{ | ||
/// <summary> | ||
/// <see cref="https://docs.jiguang.cn/jpush/server/push/rest_api_v3_push/#options"/> | ||
/// </summary> | ||
public class Options | ||
{ | ||
[JsonProperty("sendno", NullValueHandling = NullValueHandling.Ignore)] | ||
public int SendNo { get; set; } | ||
|
||
[JsonProperty("time_to_live", NullValueHandling = NullValueHandling.Ignore)] | ||
public int TimeToLive { get; set; } | ||
|
||
[JsonProperty("override_msg_id", NullValueHandling = NullValueHandling.Ignore)] | ||
public long OverrideMessageId { get; set; } | ||
|
||
/// <summary> | ||
/// iOS 推送是否为生产环境。默认为 false,开发环境。 | ||
/// </summary> | ||
[JsonProperty("apns_production", DefaultValueHandling = DefaultValueHandling.Include)] | ||
public bool IsApnsProduction { get; set; } = false; | ||
|
||
[JsonProperty("apns_collapse_id", NullValueHandling = NullValueHandling.Ignore)] | ||
public string ApnsCollapseId { get; set; } | ||
|
||
[JsonProperty("big_push_duration", NullValueHandling = NullValueHandling.Ignore)] | ||
public int BigPushDuration { 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