Skip to content

Commit 130baf5

Browse files
authored
Merge pull request #36 from ZJUCJH/main
[feature] 1.支持厂商智能配额策略;2.支持通知关闭过滤
2 parents b9b3e81 + 2af758d commit 130baf5

File tree

5 files changed

+41
-4
lines changed

5 files changed

+41
-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.12
4+
5+
### update
6+
7+
* 支持厂商智能配额策略
8+
* 支持通知关闭过滤
9+
310
## 1.0.0.11
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.11</version>
25+
<version>1.0.0.12</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.11</version>
10+
<version>1.0.0.12</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.11";
16+
String SDK_VERSION = "1.0.0.12";
1717
/**
1818
* 预置域名列表
1919
*/

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

Lines changed: 31 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,18 @@ public class Settings {
2525
*/
2626
private String customCallback;
2727

28+
/**
29+
* 是否过滤关闭通知用户
30+
* false表示不过滤,true表示过滤
31+
*/
32+
private Boolean filterNotifyOff;
33+
34+
/**
35+
* 厂商智能配额策略-用户连续活跃天数
36+
* 单位天,限制3 ~ 15天之间
37+
*/
38+
private Integer activeDays;
39+
2840
public Integer getTtl() {
2941
return ttl;
3042
}
@@ -65,14 +77,32 @@ public void setCustomCallback(String customCallback) {
6577
this.customCallback = customCallback;
6678
}
6779

80+
public Boolean getFilterNotifyOff() {
81+
return filterNotifyOff;
82+
}
83+
84+
public void setFilterNotifyOff(Boolean filterNotifyOff) {
85+
this.filterNotifyOff = filterNotifyOff;
86+
}
87+
88+
public Integer getActiveDays() {
89+
return activeDays;
90+
}
91+
92+
public void setActiveDays(Integer activeDays) {
93+
this.activeDays = activeDays;
94+
}
95+
6896
@Override
6997
public String toString() {
7098
return "Settings{" +
7199
"ttl=" + ttl +
72100
", strategy=" + strategy +
73101
", speed=" + speed +
74102
", scheduleTime=" + scheduleTime +
75-
", customCallback=" + customCallback +
103+
", customCallback='" + customCallback + '\'' +
104+
", filterNotifyOff=" + filterNotifyOff +
105+
", activeDays=" + activeDays +
76106
'}';
77107
}
78108
}

0 commit comments

Comments
 (0)