Skip to content

Commit a1cb36a

Browse files
authored
Merge pull request #57 from littleKIDex8657503/main
[feature] 1.修改定时任务查询返回状态字段;2 2..strategy支持设置荣耀ho、鸿蒙华为hoshw; 3.3.settings支持亮…
2 parents 9b8a20a + 94c1429 commit a1cb36a

File tree

7 files changed

+67
-12
lines changed

7 files changed

+67
-12
lines changed

CHANGES.md

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

3+
## 1.0.7.0
4+
5+
### update
6+
7+
* 修改定时任务查询返回状态字段
8+
* strategy支持设置荣耀ho、鸿蒙华为hoshw
9+
* settings支持亮屏推送参数active_push、lst
10+
311
## 1.0.6.0
412

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

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

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,12 +48,23 @@ public class Settings {
4848
* 活跃行为的自定义天数,近${activate_filter_day}天活跃/非活跃用户
4949
*/
5050
private Integer activateFilterDay;
51+
5152
/**
5253
* @see CommonEnum.ActivateFilterTypeEnum
5354
* 活跃行为的类型
5455
*/
5556
private Integer activateFilterType;
5657

58+
/**
59+
* 亮屏推送截止时间,单位毫秒,大于0且小于ttl
60+
*/
61+
private Integer lst;
62+
63+
/**
64+
* 是否亮屏推送,false表示不亮屏推送,true表示亮屏推送
65+
*/
66+
private Boolean activePush;
67+
5768
public Integer getTtl() {
5869
return ttl;
5970
}
@@ -134,6 +145,22 @@ public void setActivateFilterType(CommonEnum.ActivateFilterTypeEnum activateFilt
134145
this.activateFilterType = activateFilterTypeEnum.type;
135146
}
136147

148+
public Integer getLst() {
149+
return lst;
150+
}
151+
152+
public void setLst(Integer lst) {
153+
this.lst = lst;
154+
}
155+
156+
public Boolean getActivePush() {
157+
return activePush;
158+
}
159+
160+
public void setActivePush(Boolean activePush) {
161+
this.activePush = activePush;
162+
}
163+
137164
@Override
138165
public String toString() {
139166
return "Settings{" +
@@ -147,6 +174,8 @@ public String toString() {
147174
", needBackup=" + needBackup +
148175
", activateFilterDay=" + activateFilterDay +
149176
", activateFilterType=" + activateFilterType +
177+
", lst=" + lst +
178+
", activePush=" + activePush +
150179
'}';
151180
}
152181
}

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

Lines changed: 20 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ public class Strategy extends HashMap<String, Integer> {
1313
public final static String st = "st";
1414
public final static String hx = "hx";
1515
public final static String hwq = "hwq";
16+
public final static String ho = "ho";
17+
public final static String hoshw = "hoshw";
1618

1719
public Integer getDef() {
1820
return super.get(Strategy.def);
@@ -79,19 +81,35 @@ public void setSt(Integer st) {
7981
}
8082

8183
public Integer getHx() {
82-
return (Integer) super.get(Strategy.hx);
84+
return super.get(Strategy.hx);
8385
}
8486

8587
public void setHx(Integer hx) {
8688
super.put(Strategy.hx, hx);
8789
}
8890

8991
public Integer getHwq() {
90-
return (Integer) super.get(Strategy.hwq);
92+
return super.get(Strategy.hwq);
9193
}
9294

9395
public void setHwq(Integer hwq) {
9496
super.put(Strategy.hwq, hwq);
9597
}
9698

99+
public Integer getHo() {
100+
return super.get(Strategy.ho);
101+
}
102+
103+
public void setHo(Integer ho) {
104+
super.put(Strategy.ho, ho);
105+
}
106+
107+
public Integer getHoshw() {
108+
return super.get(Strategy.hoshw);
109+
}
110+
111+
public void setHoshw(Integer hoshw) {
112+
super.put(Strategy.hoshw, hoshw);
113+
}
114+
97115
}

src/main/java/com/getui/push/v2/sdk/dto/res/ScheduleTaskDTO.java

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@ public class ScheduleTaskDTO {
1111
*/
1212
private String createTime;
1313
/**
14-
* 定时任务状态:success/failed
14+
* 定时任务状态:send_success/do_not_send/send_failed/has_delete
1515
*/
16-
private String status;
16+
private String sendResult;
1717
/**
1818
* 透传内容
1919
*/
@@ -31,12 +31,12 @@ public void setCreateTime(String createTime) {
3131
this.createTime = createTime;
3232
}
3333

34-
public String getStatus() {
35-
return status;
34+
public String getSendResult() {
35+
return sendResult;
3636
}
3737

38-
public void setStatus(String status) {
39-
this.status = status;
38+
public void setSendResult(String sendResult) {
39+
this.sendResult = sendResult;
4040
}
4141

4242
public String getTransmissionContent() {
@@ -59,7 +59,7 @@ public void setPushTime(String pushTime) {
5959
public String toString() {
6060
return "ScheduleTaskDTO{" +
6161
"createTime='" + createTime + '\'' +
62-
", status='" + status + '\'' +
62+
", sendResult='" + sendResult + '\'' +
6363
", transmissionContent='" + transmissionContent + '\'' +
6464
", pushTime='" + pushTime + '\'' +
6565
'}';

0 commit comments

Comments
 (0)