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 4de3608 commit 78fe790
Show file tree
Hide file tree
Showing 4 changed files with 94 additions and 1 deletion.
3 changes: 3 additions & 0 deletions CHANGELOG
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-08-07 Version: 2.1.8
- Add QueryData, ModifyCopilotEmbedConfig, QueryCopilotEmbedConfig and QueryDataRange APIs.

Expand Down
45 changes: 45 additions & 0 deletions aliyun-net-sdk-push/Push/Model/V20160801/MassPushRequest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,9 @@ public List<int?> PushTasks
DictionaryUtil.Add(BodyParameters,"PushTask." + (depth1 + 1), pushTasks[depth1]);
DictionaryUtil.Add(BodyParameters,"PushTask." + (depth1 + 1), pushTasks[depth1]);
DictionaryUtil.Add(BodyParameters,"PushTask." + (depth1 + 1), pushTasks[depth1]);
DictionaryUtil.Add(BodyParameters,"PushTask." + (depth1 + 1), pushTasks[depth1]);
DictionaryUtil.Add(BodyParameters,"PushTask." + (depth1 + 1), pushTasks[depth1]);
DictionaryUtil.Add(BodyParameters,"PushTask." + (depth1 + 1), pushTasks[depth1]);
}
}
}
Expand Down Expand Up @@ -232,6 +235,8 @@ public class PushTask

private string androidOpenUrl;

private int? androidBadgeSetNum;

private string androidXiaoMiNotifyBody;

private string iOSSubtitle;
Expand Down Expand Up @@ -274,12 +279,16 @@ public class PushTask

private string title;

private string androidBadgeClass;

private bool? harmonyTestMessage;

private string androidRenderStyle;

private string iOSExtParameters;

private int? androidBadgeAddNum;

private string androidHuaweiReceiptId;

private string androidNotificationHonorChannel;
Expand Down Expand Up @@ -746,6 +755,18 @@ public string AndroidOpenUrl
}
}

public int? AndroidBadgeSetNum
{
get
{
return androidBadgeSetNum;
}
set
{
androidBadgeSetNum = value;
}
}

public string AndroidXiaoMiNotifyBody
{
get
Expand Down Expand Up @@ -998,6 +1019,18 @@ public string Title
}
}

public string AndroidBadgeClass
{
get
{
return androidBadgeClass;
}
set
{
androidBadgeClass = value;
}
}

public bool? HarmonyTestMessage
{
get
Expand Down Expand Up @@ -1034,6 +1067,18 @@ public string IOSExtParameters
}
}

public int? AndroidBadgeAddNum
{
get
{
return androidBadgeAddNum;
}
set
{
androidBadgeAddNum = value;
}
}

public string AndroidHuaweiReceiptId
{
get
Expand Down
45 changes: 45 additions & 0 deletions aliyun-net-sdk-push/Push/Model/V20160801/PushRequest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,8 @@ public PushRequest()

private string harmonyRemindTitle;

private string androidBadgeClass;

private int? smsDelaySecs;

private int? androidRenderStyle;
Expand Down Expand Up @@ -177,6 +179,8 @@ public PushRequest()

private string androidOpenUrl;

private int? androidBadgeSetNum;

private string androidXiaoMiNotifyBody;

private string iOSSubtitle;
Expand All @@ -197,6 +201,8 @@ public PushRequest()

private bool? harmonyTestMessage;

private int? androidBadgeAddNum;

private string androidHuaweiReceiptId;

private string androidNotificationHonorChannel;
Expand Down Expand Up @@ -542,6 +548,19 @@ public string HarmonyRemindTitle
}
}

public string AndroidBadgeClass
{
get
{
return androidBadgeClass;
}
set
{
androidBadgeClass = value;
DictionaryUtil.Add(QueryParameters, "AndroidBadgeClass", value);
}
}

public int? SmsDelaySecs
{
get
Expand Down Expand Up @@ -1101,6 +1120,19 @@ public string AndroidOpenUrl
}
}

public int? AndroidBadgeSetNum
{
get
{
return androidBadgeSetNum;
}
set
{
androidBadgeSetNum = value;
DictionaryUtil.Add(QueryParameters, "AndroidBadgeSetNum", value.ToString());
}
}

public string AndroidXiaoMiNotifyBody
{
get
Expand Down Expand Up @@ -1231,6 +1263,19 @@ public bool? HarmonyTestMessage
}
}

public int? AndroidBadgeAddNum
{
get
{
return androidBadgeAddNum;
}
set
{
androidBadgeAddNum = value;
DictionaryUtil.Add(QueryParameters, "AndroidBadgeAddNum", value.ToString());
}
}

public string AndroidHuaweiReceiptId
{
get
Expand Down
2 changes: 1 addition & 1 deletion aliyun-net-sdk-push/aliyun-net-sdk-push.vs2017.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<PropertyGroup>
<TargetFrameworks>netstandard2.0;net45</TargetFrameworks>
<RootNamespace>Aliyun.Acs.Push</RootNamespace>
<Version>3.13.15</Version>
<Version>3.13.16</Version>
<Authors>Alibaba Cloud</Authors>
<Copyright>©2009-2019 Alibaba Cloud</Copyright>
<GeneratePackageOnBuild>false</GeneratePackageOnBuild>
Expand Down

0 comments on commit 78fe790

Please sign in to comment.