|
1 | | -using Newtonsoft.Json; |
2 | | - |
3 | | -namespace Jiguang.JPush.Model |
4 | | -{ |
5 | | - /// <summary> |
6 | | - /// <see cref="https://docs.jiguang.cn/jpush/server/push/rest_api_v3_push/#options"/> |
7 | | - /// </summary> |
8 | | - public class Options |
9 | | - { |
10 | | - [JsonProperty("sendno")] |
11 | | - public int SendNo { get; set; } |
12 | | - |
13 | | - [JsonProperty("time_to_live")] |
14 | | - public int TimeToLive { get; set; } |
15 | | - |
16 | | - [JsonProperty("override_msg_id")] |
17 | | - public long OverrideMessageId { get; set; } |
18 | | - |
19 | | - /// <summary> |
20 | | - /// iOS 推送是否为生产环境。默认为 false,开发环境。 |
21 | | - /// </summary> |
22 | | - [JsonProperty("apns_production", DefaultValueHandling = DefaultValueHandling.Include)] |
23 | | - public bool IsApnsProduction { get; set; } = false; |
24 | | - |
25 | | - [JsonProperty("apns_collapse_id")] |
26 | | - public string ApnsCollapseId { get; set; } |
27 | | - |
28 | | - [JsonProperty("big_push_duration")] |
29 | | - public int BigPushDuration { get; set; } |
30 | | - } |
31 | | -} |
| 1 | +using Newtonsoft.Json; |
| 2 | + |
| 3 | +namespace Jiguang.JPush.Model |
| 4 | +{ |
| 5 | + /// <summary> |
| 6 | + /// <see cref="https://docs.jiguang.cn/jpush/server/push/rest_api_v3_push/#options"/> |
| 7 | + /// </summary> |
| 8 | + public class Options |
| 9 | + { |
| 10 | + [JsonProperty("sendno", NullValueHandling = NullValueHandling.Ignore)] |
| 11 | + public int SendNo { get; set; } |
| 12 | + |
| 13 | + [JsonProperty("time_to_live", NullValueHandling = NullValueHandling.Ignore)] |
| 14 | + public int TimeToLive { get; set; } |
| 15 | + |
| 16 | + [JsonProperty("override_msg_id", NullValueHandling = NullValueHandling.Ignore)] |
| 17 | + public long OverrideMessageId { get; set; } |
| 18 | + |
| 19 | + /// <summary> |
| 20 | + /// iOS 推送是否为生产环境。默认为 false,开发环境。 |
| 21 | + /// </summary> |
| 22 | + [JsonProperty("apns_production", DefaultValueHandling = DefaultValueHandling.Include)] |
| 23 | + public bool IsApnsProduction { get; set; } = false; |
| 24 | + |
| 25 | + [JsonProperty("apns_collapse_id", NullValueHandling = NullValueHandling.Ignore)] |
| 26 | + public string ApnsCollapseId { get; set; } |
| 27 | + |
| 28 | + [JsonProperty("big_push_duration", NullValueHandling = NullValueHandling.Ignore)] |
| 29 | + public int BigPushDuration { get; set; } |
| 30 | + } |
| 31 | +} |
0 commit comments