Skip to content

Commit

Permalink
Support Android badge.
Browse files Browse the repository at this point in the history
  • Loading branch information
sdk-team committed Aug 9, 2024
1 parent 6680d11 commit ed86a1f
Show file tree
Hide file tree
Showing 4 changed files with 76 additions and 1 deletion.
3 changes: 3 additions & 0 deletions aliyun-java-sdk-push/ChangeLog.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
2024-08-09 Version: 3.13.16
- Support Android badge.

2024-06-26 Version: 3.13.15
- Support harmony app.
- QueryPushRecords API Source parameter support OpenAPIExplorer.
Expand Down
2 changes: 1 addition & 1 deletion aliyun-java-sdk-push/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<groupId>com.aliyun</groupId>
<artifactId>aliyun-java-sdk-push</artifactId>
<packaging>jar</packaging>
<version>3.13.15</version>
<version>3.13.16</version>
<name>aliyun-java-sdk-push</name>
<url>http://www.aliyun.com</url>
<description>Aliyun Open API SDK for Java
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@ public void setPushTasks(List<PushTask> pushTasks) {
putBodyParameter("PushTask." + (depth1 + 1) + ".JobKey" , pushTasks.get(depth1).getJobKey());
putBodyParameter("PushTask." + (depth1 + 1) + ".HarmonyReceiptId" , pushTasks.get(depth1).getHarmonyReceiptId());
putBodyParameter("PushTask." + (depth1 + 1) + ".AndroidOpenUrl" , pushTasks.get(depth1).getAndroidOpenUrl());
putBodyParameter("PushTask." + (depth1 + 1) + ".AndroidBadgeSetNum" , pushTasks.get(depth1).getAndroidBadgeSetNum());
putBodyParameter("PushTask." + (depth1 + 1) + ".AndroidXiaoMiNotifyBody" , pushTasks.get(depth1).getAndroidXiaoMiNotifyBody());
putBodyParameter("PushTask." + (depth1 + 1) + ".iOSSubtitle" , pushTasks.get(depth1).getIOSSubtitle());
putBodyParameter("PushTask." + (depth1 + 1) + ".AndroidXiaomiBigPictureUrl" , pushTasks.get(depth1).getAndroidXiaomiBigPictureUrl());
Expand All @@ -102,9 +103,11 @@ public void setPushTasks(List<PushTask> pushTasks) {
putBodyParameter("PushTask." + (depth1 + 1) + ".AndroidOpenType" , pushTasks.get(depth1).getAndroidOpenType());
putBodyParameter("PushTask." + (depth1 + 1) + ".HarmonyRemindTitle" , pushTasks.get(depth1).getHarmonyRemindTitle());
putBodyParameter("PushTask." + (depth1 + 1) + ".Title" , pushTasks.get(depth1).getTitle());
putBodyParameter("PushTask." + (depth1 + 1) + ".AndroidBadgeClass" , pushTasks.get(depth1).getAndroidBadgeClass());
putBodyParameter("PushTask." + (depth1 + 1) + ".HarmonyTestMessage" , pushTasks.get(depth1).getHarmonyTestMessage());
putBodyParameter("PushTask." + (depth1 + 1) + ".AndroidRenderStyle" , pushTasks.get(depth1).getAndroidRenderStyle());
putBodyParameter("PushTask." + (depth1 + 1) + ".iOSExtParameters" , pushTasks.get(depth1).getIOSExtParameters());
putBodyParameter("PushTask." + (depth1 + 1) + ".AndroidBadgeAddNum" , pushTasks.get(depth1).getAndroidBadgeAddNum());
putBodyParameter("PushTask." + (depth1 + 1) + ".AndroidHuaweiReceiptId" , pushTasks.get(depth1).getAndroidHuaweiReceiptId());
putBodyParameter("PushTask." + (depth1 + 1) + ".AndroidNotificationHonorChannel" , pushTasks.get(depth1).getAndroidNotificationHonorChannel());
putBodyParameter("PushTask." + (depth1 + 1) + ".AndroidXiaomiImageUrl" , pushTasks.get(depth1).getAndroidXiaomiImageUrl());
Expand Down Expand Up @@ -215,6 +218,8 @@ public static class PushTask {

private String androidOpenUrl;

private Integer androidBadgeSetNum;

private String androidXiaoMiNotifyBody;

private String iOSSubtitle;
Expand Down Expand Up @@ -257,12 +262,16 @@ public static class PushTask {

private String title;

private String androidBadgeClass;

private Boolean harmonyTestMessage;

private String androidRenderStyle;

private String iOSExtParameters;

private Integer androidBadgeAddNum;

private String androidHuaweiReceiptId;

private String androidNotificationHonorChannel;
Expand Down Expand Up @@ -589,6 +598,14 @@ public void setAndroidOpenUrl(String androidOpenUrl) {
this.androidOpenUrl = androidOpenUrl;
}

public Integer getAndroidBadgeSetNum() {
return this.androidBadgeSetNum;
}

public void setAndroidBadgeSetNum(Integer androidBadgeSetNum) {
this.androidBadgeSetNum = androidBadgeSetNum;
}

public String getAndroidXiaoMiNotifyBody() {
return this.androidXiaoMiNotifyBody;
}
Expand Down Expand Up @@ -757,6 +774,14 @@ public void setTitle(String title) {
this.title = title;
}

public String getAndroidBadgeClass() {
return this.androidBadgeClass;
}

public void setAndroidBadgeClass(String androidBadgeClass) {
this.androidBadgeClass = androidBadgeClass;
}

public Boolean getHarmonyTestMessage() {
return this.harmonyTestMessage;
}
Expand All @@ -781,6 +806,14 @@ public void setIOSExtParameters(String iOSExtParameters) {
this.iOSExtParameters = iOSExtParameters;
}

public Integer getAndroidBadgeAddNum() {
return this.androidBadgeAddNum;
}

public void setAndroidBadgeAddNum(Integer androidBadgeAddNum) {
this.androidBadgeAddNum = androidBadgeAddNum;
}

public String getAndroidHuaweiReceiptId() {
return this.androidHuaweiReceiptId;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,8 @@ public class PushRequest extends RpcAcsRequest<PushResponse> {

private String harmonyRemindTitle;

private String androidBadgeClass;

private Integer smsDelaySecs;

private Integer androidRenderStyle;
Expand Down Expand Up @@ -161,6 +163,8 @@ public class PushRequest extends RpcAcsRequest<PushResponse> {

private String androidOpenUrl;

private Integer androidBadgeSetNum;

private String androidXiaoMiNotifyBody;

private String iOSSubtitle;
Expand All @@ -181,6 +185,8 @@ public class PushRequest extends RpcAcsRequest<PushResponse> {

private Boolean harmonyTestMessage;

private Integer androidBadgeAddNum;

private String androidHuaweiReceiptId;

private String androidNotificationHonorChannel;
Expand Down Expand Up @@ -484,6 +490,17 @@ public void setHarmonyRemindTitle(String harmonyRemindTitle) {
}
}

public String getAndroidBadgeClass() {
return this.androidBadgeClass;
}

public void setAndroidBadgeClass(String androidBadgeClass) {
this.androidBadgeClass = androidBadgeClass;
if(androidBadgeClass != null){
putQueryParameter("AndroidBadgeClass", androidBadgeClass);
}
}

public Integer getSmsDelaySecs() {
return this.smsDelaySecs;
}
Expand Down Expand Up @@ -957,6 +974,17 @@ public void setAndroidOpenUrl(String androidOpenUrl) {
}
}

public Integer getAndroidBadgeSetNum() {
return this.androidBadgeSetNum;
}

public void setAndroidBadgeSetNum(Integer androidBadgeSetNum) {
this.androidBadgeSetNum = androidBadgeSetNum;
if(androidBadgeSetNum != null){
putQueryParameter("AndroidBadgeSetNum", androidBadgeSetNum.toString());
}
}

public String getAndroidXiaoMiNotifyBody() {
return this.androidXiaoMiNotifyBody;
}
Expand Down Expand Up @@ -1067,6 +1095,17 @@ public void setHarmonyTestMessage(Boolean harmonyTestMessage) {
}
}

public Integer getAndroidBadgeAddNum() {
return this.androidBadgeAddNum;
}

public void setAndroidBadgeAddNum(Integer androidBadgeAddNum) {
this.androidBadgeAddNum = androidBadgeAddNum;
if(androidBadgeAddNum != null){
putQueryParameter("AndroidBadgeAddNum", androidBadgeAddNum.toString());
}
}

public String getAndroidHuaweiReceiptId() {
return this.androidHuaweiReceiptId;
}
Expand Down

0 comments on commit ed86a1f

Please sign in to comment.