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 Oct 10, 2024
1 parent c07c1d9 commit ec2f99e
Show file tree
Hide file tree
Showing 4 changed files with 102 additions and 1 deletion.
5 changes: 5 additions & 0 deletions aliyun-java-sdk-push/ChangeLog.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
2024-10-10 Version: 3.13.17
- Support Android badge.
- Support Harmony badge.
- Support Harmony Extension Push Message.

2024-08-09 Version: 3.13.16
- Support Android badge.

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.16</version>
<version>3.13.17</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 @@ -91,10 +91,12 @@ public void setPushTasks(List<PushTask> pushTasks) {
putBodyParameter("PushTask." + (depth1 + 1) + ".AndroidHuaweiTargetUserType" , pushTasks.get(depth1).getAndroidHuaweiTargetUserType());
putBodyParameter("PushTask." + (depth1 + 1) + ".HarmonyRemind" , pushTasks.get(depth1).getHarmonyRemind());
putBodyParameter("PushTask." + (depth1 + 1) + ".AndroidMusic" , pushTasks.get(depth1).getAndroidMusic());
putBodyParameter("PushTask." + (depth1 + 1) + ".HarmonyExtensionPush" , pushTasks.get(depth1).getHarmonyExtensionPush());
putBodyParameter("PushTask." + (depth1 + 1) + ".iOSNotificationCollapseId" , pushTasks.get(depth1).getIOSNotificationCollapseId());
putBodyParameter("PushTask." + (depth1 + 1) + ".AndroidMessageHuaweiUrgency" , pushTasks.get(depth1).getAndroidMessageHuaweiUrgency());
putBodyParameter("PushTask." + (depth1 + 1) + ".PushType" , pushTasks.get(depth1).getPushType());
putBodyParameter("PushTask." + (depth1 + 1) + ".iOSInterruptionLevel" , pushTasks.get(depth1).getIOSInterruptionLevel());
putBodyParameter("PushTask." + (depth1 + 1) + ".HarmonyExtensionExtraData" , pushTasks.get(depth1).getHarmonyExtensionExtraData());
putBodyParameter("PushTask." + (depth1 + 1) + ".AndroidExtParameters" , pushTasks.get(depth1).getAndroidExtParameters());
putBodyParameter("PushTask." + (depth1 + 1) + ".HarmonyImageUrl" , pushTasks.get(depth1).getHarmonyImageUrl());
putBodyParameter("PushTask." + (depth1 + 1) + ".iOSBadge" , pushTasks.get(depth1).getIOSBadge());
Expand All @@ -104,6 +106,7 @@ public void setPushTasks(List<PushTask> pushTasks) {
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) + ".HarmonyBadgeAddNum" , pushTasks.get(depth1).getHarmonyBadgeAddNum());
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());
Expand All @@ -129,6 +132,7 @@ public void setPushTasks(List<PushTask> pushTasks) {
putBodyParameter("PushTask." + (depth1 + 1) + ".AndroidActivity" , pushTasks.get(depth1).getAndroidActivity());
putBodyParameter("PushTask." + (depth1 + 1) + ".AndroidNotificationNotifyId" , pushTasks.get(depth1).getAndroidNotificationNotifyId());
putBodyParameter("PushTask." + (depth1 + 1) + ".TargetValue" , pushTasks.get(depth1).getTargetValue());
putBodyParameter("PushTask." + (depth1 + 1) + ".HarmonyBadgeSetNum" , pushTasks.get(depth1).getHarmonyBadgeSetNum());
putBodyParameter("PushTask." + (depth1 + 1) + ".AndroidXiaoMiNotifyTitle" , pushTasks.get(depth1).getAndroidXiaoMiNotifyTitle());
putBodyParameter("PushTask." + (depth1 + 1) + ".AndroidXiaoMiActivity" , pushTasks.get(depth1).getAndroidXiaoMiActivity());
}
Expand Down Expand Up @@ -238,6 +242,8 @@ public static class PushTask {

private String androidMusic;

private Boolean harmonyExtensionPush;

private String iOSNotificationCollapseId;

private String androidMessageHuaweiUrgency;
Expand All @@ -246,6 +252,8 @@ public static class PushTask {

private String iOSInterruptionLevel;

private String harmonyExtensionExtraData;

private String androidExtParameters;

private String harmonyImageUrl;
Expand All @@ -264,6 +272,8 @@ public static class PushTask {

private String androidBadgeClass;

private Integer harmonyBadgeAddNum;

private Boolean harmonyTestMessage;

private String androidRenderStyle;
Expand Down Expand Up @@ -314,6 +324,8 @@ public static class PushTask {

private String targetValue;

private Integer harmonyBadgeSetNum;

private String androidXiaoMiNotifyTitle;

private String androidXiaoMiActivity;
Expand Down Expand Up @@ -678,6 +690,14 @@ public void setAndroidMusic(String androidMusic) {
this.androidMusic = androidMusic;
}

public Boolean getHarmonyExtensionPush() {
return this.harmonyExtensionPush;
}

public void setHarmonyExtensionPush(Boolean harmonyExtensionPush) {
this.harmonyExtensionPush = harmonyExtensionPush;
}

public String getIOSNotificationCollapseId() {
return this.iOSNotificationCollapseId;
}
Expand Down Expand Up @@ -710,6 +730,14 @@ public void setIOSInterruptionLevel(String iOSInterruptionLevel) {
this.iOSInterruptionLevel = iOSInterruptionLevel;
}

public String getHarmonyExtensionExtraData() {
return this.harmonyExtensionExtraData;
}

public void setHarmonyExtensionExtraData(String harmonyExtensionExtraData) {
this.harmonyExtensionExtraData = harmonyExtensionExtraData;
}

public String getAndroidExtParameters() {
return this.androidExtParameters;
}
Expand Down Expand Up @@ -782,6 +810,14 @@ public void setAndroidBadgeClass(String androidBadgeClass) {
this.androidBadgeClass = androidBadgeClass;
}

public Integer getHarmonyBadgeAddNum() {
return this.harmonyBadgeAddNum;
}

public void setHarmonyBadgeAddNum(Integer harmonyBadgeAddNum) {
this.harmonyBadgeAddNum = harmonyBadgeAddNum;
}

public Boolean getHarmonyTestMessage() {
return this.harmonyTestMessage;
}
Expand Down Expand Up @@ -982,6 +1018,14 @@ public void setTargetValue(String targetValue) {
this.targetValue = targetValue;
}

public Integer getHarmonyBadgeSetNum() {
return this.harmonyBadgeSetNum;
}

public void setHarmonyBadgeSetNum(Integer harmonyBadgeSetNum) {
this.harmonyBadgeSetNum = harmonyBadgeSetNum;
}

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

private String targetValue;

private Integer harmonyBadgeSetNum;

private String androidXiaoMiNotifyTitle;

private Integer smsSendPolicy;
Expand Down Expand Up @@ -173,16 +175,22 @@ public class PushRequest extends RpcAcsRequest<PushResponse> {

private String androidMusic;

private Boolean harmonyExtensionPush;

private String iOSNotificationCollapseId;

private String pushType;

private String harmonyExtensionExtraData;

private String harmonyImageUrl;

private String androidBigBody;

private String title;

private Integer harmonyBadgeAddNum;

private Boolean harmonyTestMessage;

private Integer androidBadgeAddNum;
Expand Down Expand Up @@ -699,6 +707,17 @@ public void setTargetValue(String targetValue) {
}
}

public Integer getHarmonyBadgeSetNum() {
return this.harmonyBadgeSetNum;
}

public void setHarmonyBadgeSetNum(Integer harmonyBadgeSetNum) {
this.harmonyBadgeSetNum = harmonyBadgeSetNum;
if(harmonyBadgeSetNum != null){
putQueryParameter("HarmonyBadgeSetNum", harmonyBadgeSetNum.toString());
}
}

public String getAndroidXiaoMiNotifyTitle() {
return this.androidXiaoMiNotifyTitle;
}
Expand Down Expand Up @@ -1029,6 +1048,17 @@ public void setAndroidMusic(String androidMusic) {
}
}

public Boolean getHarmonyExtensionPush() {
return this.harmonyExtensionPush;
}

public void setHarmonyExtensionPush(Boolean harmonyExtensionPush) {
this.harmonyExtensionPush = harmonyExtensionPush;
if(harmonyExtensionPush != null){
putQueryParameter("HarmonyExtensionPush", harmonyExtensionPush.toString());
}
}

public String getIOSNotificationCollapseId() {
return this.iOSNotificationCollapseId;
}
Expand All @@ -1051,6 +1081,17 @@ public void setPushType(String pushType) {
}
}

public String getHarmonyExtensionExtraData() {
return this.harmonyExtensionExtraData;
}

public void setHarmonyExtensionExtraData(String harmonyExtensionExtraData) {
this.harmonyExtensionExtraData = harmonyExtensionExtraData;
if(harmonyExtensionExtraData != null){
putQueryParameter("HarmonyExtensionExtraData", harmonyExtensionExtraData);
}
}

public String getHarmonyImageUrl() {
return this.harmonyImageUrl;
}
Expand Down Expand Up @@ -1084,6 +1125,17 @@ public void setTitle(String title) {
}
}

public Integer getHarmonyBadgeAddNum() {
return this.harmonyBadgeAddNum;
}

public void setHarmonyBadgeAddNum(Integer harmonyBadgeAddNum) {
this.harmonyBadgeAddNum = harmonyBadgeAddNum;
if(harmonyBadgeAddNum != null){
putQueryParameter("HarmonyBadgeAddNum", harmonyBadgeAddNum.toString());
}
}

public Boolean getHarmonyTestMessage() {
return this.harmonyTestMessage;
}
Expand Down

0 comments on commit ec2f99e

Please sign in to comment.