Skip to content

Commit

Permalink
Merge branch 'v2-dev' into v2
Browse files Browse the repository at this point in the history
  • Loading branch information
Hevin committed Oct 9, 2017
2 parents 97e26aa + d956c3e commit 41aa0c3
Show file tree
Hide file tree
Showing 4 changed files with 33 additions and 33 deletions.
Binary file modified Jiguang.JPush.dll
Binary file not shown.
2 changes: 1 addition & 1 deletion Jiguang.JPush/Jiguang.JPush.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
<Product>JPush</Product>
<Copyright>MIT</Copyright>
<PackageLicenseUrl></PackageLicenseUrl>
<Version>1.0.8</Version>
<Version>1.0.9</Version>
</PropertyGroup>

<ItemGroup>
Expand Down
62 changes: 31 additions & 31 deletions Jiguang.JPush/Model/Options.cs
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; }
}
}
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# JPush Library for .NET

[![NuGet](https://img.shields.io/badge/NuGet-v1.0.8-blue.svg)](https://preview.nuget.org/packages/Jiguang.JPush/)
[![NuGet](https://img.shields.io/badge/NuGet-v1.0.9-blue.svg)](https://preview.nuget.org/packages/Jiguang.JPush/)

[极光](https://www.jiguang.cn/)官方支持的 JPush .NET API Client。

Expand Down

0 comments on commit 41aa0c3

Please sign in to comment.