Skip to content

Commit 15de074

Browse files
authored
Merge pull request #45 from xelloss00x/main
[update] 鸿蒙在线支持传参want
2 parents a56bf89 + 5515dec commit 15de074

File tree

4 files changed

+26
-4
lines changed

4 files changed

+26
-4
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.17
4+
5+
### update
6+
7+
* 鸿蒙在线支持传参want
8+
39
## 1.0.0.16
410

511
### update

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,10 @@
1919
推荐通过Maven来管理项目依赖,您只需在项目的`pom.xml`文件中声明如下依赖
2020

2121
```xml
22-
<dependency>
23-
<groupId>com.getui.push</groupId>
22+
<dependency>
23+
<groupId>com.getui.push</groupId>
2424
<artifactId>restful-sdk</artifactId>
25-
<version>1.0.0.16</version>
25+
<version>1.0.0.17</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.16</version>
10+
<version>1.0.0.17</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/dto/req/message/android/GTNotification.java

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,13 @@ public class GTNotification {
4848
* 示例:intent:#Intent;component=你的包名/你要打开的 activity 全路径;S.parm1=value1;S.parm2=value2;end
4949
*/
5050
private String intent;
51+
52+
/**
53+
* 鸿蒙平台点击动作 <br><br/>
54+
* 示例:{"deviceId":"","bundleName":"com.getui.push","abilityName":"TestAbility","uri":"https://www.test.com:8080/push/test","action":"com.test.action","parameters":{"name":"Getui","age":12}}
55+
*/
56+
private String want;
57+
5158
/**
5259
* 点击通知打开链接,长度 ≤ 1024
5360
*/
@@ -192,6 +199,14 @@ public void setIntent(String intent) {
192199
this.intent = intent;
193200
}
194201

202+
public String getWant() {
203+
return want;
204+
}
205+
206+
public void setWant(String want) {
207+
this.want = want;
208+
}
209+
195210
public String getUrl() {
196211
return url;
197212
}
@@ -278,6 +293,7 @@ public String toString() {
278293
", channelLevel='" + channelLevel + '\'' +
279294
", clickType='" + clickType + '\'' +
280295
", intent='" + intent + '\'' +
296+
", want='" + want + '\'' +
281297
", url='" + url + '\'' +
282298
", payload='" + payload + '\'' +
283299
", notifyId='" + notifyId + '\'' +

0 commit comments

Comments
 (0)