Skip to content

Commit 5f7581b

Browse files
authored
Merge pull request #38 from ZJUCJH/main
[feature] 支持消息重弹功能
2 parents 2185945 + 356f349 commit 5f7581b

File tree

5 files changed

+41
-3
lines changed

5 files changed

+41
-3
lines changed

CHANGES.md

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

3+
## 1.0.0.14
4+
5+
### update
6+
7+
* 支持消息重弹功能
8+
39
## 1.0.0.13
410

511
### 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.13</version>
25+
<version>1.0.0.14</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.13</version>
10+
<version>1.0.0.14</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.13";
16+
String SDK_VERSION = "1.0.0.14";
1717
/**
1818
* 预置域名列表
1919
*/

src/main/java/com/getui/push/v2/sdk/dto/req/message/android/GTNotification.java

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,20 @@ public class GTNotification {
8585
@SerializedName("thread_id")
8686
private String threadId;
8787

88+
/**
89+
* 消息重弹次数,0代表不重弹,若要设置消息重弹则必须大于1,上限3次。
90+
*/
91+
@SerializedName("redisplay_freq")
92+
private Integer redisplayFreq;
93+
94+
/**
95+
* 消息重弹间隔(单位小时),仅当重弹次数大于0时才生效,代表每次消息重弹之间的最小间隔。
96+
* 由于重弹依赖SDK登录动作,因此实际的重弹间隔可能会大于设置的最小间隔。
97+
* 0代表登录即弹,大于0即忽略在最小间隔内的登录重弹动作,上限为24小时
98+
*/
99+
@SerializedName("redisplay_duration")
100+
private Integer redisplayDuration;
101+
88102
public String getTitle() {
89103
return title;
90104
}
@@ -221,6 +235,22 @@ public void setThreadId(String threadId) {
221235
this.threadId = threadId;
222236
}
223237

238+
public Integer getRedisplayFreq() {
239+
return redisplayFreq;
240+
}
241+
242+
public void setRedisplayFreq(Integer redisplayFreq) {
243+
this.redisplayFreq = redisplayFreq;
244+
}
245+
246+
public Integer getRedisplayDuration() {
247+
return redisplayDuration;
248+
}
249+
250+
public void setRedisplayDuration(Integer redisplayDuration) {
251+
this.redisplayDuration = redisplayDuration;
252+
}
253+
224254
@Override
225255
public String toString() {
226256
return "GTNotification{" +
@@ -241,6 +271,8 @@ public String toString() {
241271
", ringName='" + ringName + '\'' +
242272
", badgeAddNum='" + badgeAddNum + '\'' +
243273
", threadId='" + threadId + '\'' +
274+
", redisplayFreq=" + redisplayFreq +
275+
", redisplayDuration=" + redisplayDuration +
244276
'}';
245277
}
246278
}

0 commit comments

Comments
 (0)