Skip to content

Commit 8e8254f

Browse files
author
陈嘉豪
committed
[feature] 1.厂商智能配额策略支持兜底;2.修复反参数据类型解析问题
Change-Id: Id86266b2e1d419ade5292b7149392c4a6a0f9052
1 parent 2af758d commit 8e8254f

File tree

6 files changed

+25
-4
lines changed

6 files changed

+25
-4
lines changed

CHANGES.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
11
# Release Notes
22

3+
## 1.0.0.13
4+
5+
### update
6+
7+
* 厂商智能配额策略支持兜底
8+
* 修复反参数据类型解析问题
9+
310
## 1.0.0.12
411

512
### update

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
<dependency>
2323
<groupId>com.getui.push</groupId>
2424
<artifactId>restful-sdk</artifactId>
25-
<version>1.0.0.12</version>
25+
<version>1.0.0.13</version>
2626
</dependency>
2727
```
2828

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<groupId>com.getui.push</groupId>
88
<artifactId>restful-sdk</artifactId>
99
<packaging>jar</packaging>
10-
<version>1.0.0.12</version>
10+
<version>1.0.0.13</version>
1111
<url>https://github.com/GetuiLaboratory/getui-pushapi-java-client-v2</url>
1212
<name>Getui Push API Java Client</name>
1313
<description>Getui's officially supported Java client library for accessing Getui APIs.</description>

src/main/java/com/getui/push/v2/sdk/core/Configs.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ public interface Configs {
1313

1414
String HEADER_DOMAIN_HASH_KEY = "domainHash";
1515
String HEADER_OPEN_STABLE_DOMAIN = "openStableDomain";
16-
String SDK_VERSION = "1.0.0.12";
16+
String SDK_VERSION = "1.0.0.13";
1717
/**
1818
* 预置域名列表
1919
*/

src/main/java/com/getui/push/v2/sdk/core/DefaultJson.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ public class DefaultJson implements IJson {
2121
public static Gson createGson() {
2222
GsonBuilder gsonBuilder = new GsonBuilder();
2323
gsonBuilder.setFieldNamingPolicy(FieldNamingPolicy.LOWER_CASE_WITH_UNDERSCORES);
24-
gsonBuilder.registerTypeAdapter(Map.class, new JsonDeserializer<StatisticDTO>() {
24+
gsonBuilder.registerTypeAdapter(StatisticDTO.class, new JsonDeserializer<StatisticDTO>() {
2525
@Override
2626
public StatisticDTO deserialize(JsonElement json, Type typeOfT, JsonDeserializationContext context) throws JsonParseException {
2727
StatisticDTO statisticDTO = new StatisticDTO();

src/main/java/com/getui/push/v2/sdk/dto/req/Settings.java

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,11 @@ public class Settings {
3737
*/
3838
private Integer activeDays;
3939

40+
/**
41+
* 厂商智能配额策略-是否需要兜底(离线消息到期时通过厂商通道下发),false表示不需要,true表示需要
42+
*/
43+
private Boolean needBackup;
44+
4045
public Integer getTtl() {
4146
return ttl;
4247
}
@@ -93,6 +98,14 @@ public void setActiveDays(Integer activeDays) {
9398
this.activeDays = activeDays;
9499
}
95100

101+
public Boolean getNeedBackup() {
102+
return needBackup;
103+
}
104+
105+
public void setNeedBackup(Boolean needBackup) {
106+
this.needBackup = needBackup;
107+
}
108+
96109
@Override
97110
public String toString() {
98111
return "Settings{" +
@@ -103,6 +116,7 @@ public String toString() {
103116
", customCallback='" + customCallback + '\'' +
104117
", filterNotifyOff=" + filterNotifyOff +
105118
", activeDays=" + activeDays +
119+
", needBackup=" + needBackup +
106120
'}';
107121
}
108122
}

0 commit comments

Comments
 (0)