Skip to content

Commit 7e4fd14

Browse files
committed
Support Android badge.
1 parent 46ed1fe commit 7e4fd14

File tree

4 files changed

+128
-4
lines changed

4 files changed

+128
-4
lines changed

CHANGELOG

+5
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
2024-10-10 Version: 3.13.17
2+
- Support Android badge.
3+
- Support Harmony badge.
4+
- Support Harmony Extension Push Message.
5+
16
2024-10-08 Version: 1.0.4
27
- Generated 2022-12-01 for `ResourceCenter`.
38

aliyun-net-sdk-push/Push/Model/V20160801/MassPushRequest.cs

+60
Original file line numberDiff line numberDiff line change
@@ -144,6 +144,10 @@ public List<int?> PushTasks
144144
DictionaryUtil.Add(BodyParameters,"PushTask." + (depth1 + 1), pushTasks[depth1]);
145145
DictionaryUtil.Add(BodyParameters,"PushTask." + (depth1 + 1), pushTasks[depth1]);
146146
DictionaryUtil.Add(BodyParameters,"PushTask." + (depth1 + 1), pushTasks[depth1]);
147+
DictionaryUtil.Add(BodyParameters,"PushTask." + (depth1 + 1), pushTasks[depth1]);
148+
DictionaryUtil.Add(BodyParameters,"PushTask." + (depth1 + 1), pushTasks[depth1]);
149+
DictionaryUtil.Add(BodyParameters,"PushTask." + (depth1 + 1), pushTasks[depth1]);
150+
DictionaryUtil.Add(BodyParameters,"PushTask." + (depth1 + 1), pushTasks[depth1]);
147151
}
148152
}
149153
}
@@ -255,6 +259,8 @@ public class PushTask
255259

256260
private string androidMusic;
257261

262+
private bool? harmonyExtensionPush;
263+
258264
private string iOSNotificationCollapseId;
259265

260266
private string androidMessageHuaweiUrgency;
@@ -263,6 +269,8 @@ public class PushTask
263269

264270
private string iOSInterruptionLevel;
265271

272+
private string harmonyExtensionExtraData;
273+
266274
private string androidExtParameters;
267275

268276
private string harmonyImageUrl;
@@ -281,6 +289,8 @@ public class PushTask
281289

282290
private string androidBadgeClass;
283291

292+
private int? harmonyBadgeAddNum;
293+
284294
private bool? harmonyTestMessage;
285295

286296
private string androidRenderStyle;
@@ -331,6 +341,8 @@ public class PushTask
331341

332342
private string targetValue;
333343

344+
private int? harmonyBadgeSetNum;
345+
334346
private string androidXiaoMiNotifyTitle;
335347

336348
private string androidXiaoMiActivity;
@@ -875,6 +887,18 @@ public string AndroidMusic
875887
}
876888
}
877889

890+
public bool? HarmonyExtensionPush
891+
{
892+
get
893+
{
894+
return harmonyExtensionPush;
895+
}
896+
set
897+
{
898+
harmonyExtensionPush = value;
899+
}
900+
}
901+
878902
public string IOSNotificationCollapseId
879903
{
880904
get
@@ -923,6 +947,18 @@ public string IOSInterruptionLevel
923947
}
924948
}
925949

950+
public string HarmonyExtensionExtraData
951+
{
952+
get
953+
{
954+
return harmonyExtensionExtraData;
955+
}
956+
set
957+
{
958+
harmonyExtensionExtraData = value;
959+
}
960+
}
961+
926962
public string AndroidExtParameters
927963
{
928964
get
@@ -1031,6 +1067,18 @@ public string AndroidBadgeClass
10311067
}
10321068
}
10331069

1070+
public int? HarmonyBadgeAddNum
1071+
{
1072+
get
1073+
{
1074+
return harmonyBadgeAddNum;
1075+
}
1076+
set
1077+
{
1078+
harmonyBadgeAddNum = value;
1079+
}
1080+
}
1081+
10341082
public bool? HarmonyTestMessage
10351083
{
10361084
get
@@ -1331,6 +1379,18 @@ public string TargetValue
13311379
}
13321380
}
13331381

1382+
public int? HarmonyBadgeSetNum
1383+
{
1384+
get
1385+
{
1386+
return harmonyBadgeSetNum;
1387+
}
1388+
set
1389+
{
1390+
harmonyBadgeSetNum = value;
1391+
}
1392+
}
1393+
13341394
public string AndroidXiaoMiNotifyTitle
13351395
{
13361396
get

aliyun-net-sdk-push/Push/Model/V20160801/PushRequest.cs

+60
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,8 @@ public PushRequest()
129129

130130
private string targetValue;
131131

132+
private int? harmonyBadgeSetNum;
133+
132134
private string androidXiaoMiNotifyTitle;
133135

134136
private int? smsSendPolicy;
@@ -189,16 +191,22 @@ public PushRequest()
189191

190192
private string androidMusic;
191193

194+
private bool? harmonyExtensionPush;
195+
192196
private string iOSNotificationCollapseId;
193197

194198
private string pushType;
195199

200+
private string harmonyExtensionExtraData;
201+
196202
private string harmonyImageUrl;
197203

198204
private string androidBigBody;
199205

200206
private string title;
201207

208+
private int? harmonyBadgeAddNum;
209+
202210
private bool? harmonyTestMessage;
203211

204212
private int? androidBadgeAddNum;
@@ -795,6 +803,19 @@ public string TargetValue
795803
}
796804
}
797805

806+
public int? HarmonyBadgeSetNum
807+
{
808+
get
809+
{
810+
return harmonyBadgeSetNum;
811+
}
812+
set
813+
{
814+
harmonyBadgeSetNum = value;
815+
DictionaryUtil.Add(QueryParameters, "HarmonyBadgeSetNum", value.ToString());
816+
}
817+
}
818+
798819
public string AndroidXiaoMiNotifyTitle
799820
{
800821
get
@@ -1185,6 +1206,19 @@ public string AndroidMusic
11851206
}
11861207
}
11871208

1209+
public bool? HarmonyExtensionPush
1210+
{
1211+
get
1212+
{
1213+
return harmonyExtensionPush;
1214+
}
1215+
set
1216+
{
1217+
harmonyExtensionPush = value;
1218+
DictionaryUtil.Add(QueryParameters, "HarmonyExtensionPush", value.ToString());
1219+
}
1220+
}
1221+
11881222
public string IOSNotificationCollapseId
11891223
{
11901224
get
@@ -1211,6 +1245,19 @@ public string PushType
12111245
}
12121246
}
12131247

1248+
public string HarmonyExtensionExtraData
1249+
{
1250+
get
1251+
{
1252+
return harmonyExtensionExtraData;
1253+
}
1254+
set
1255+
{
1256+
harmonyExtensionExtraData = value;
1257+
DictionaryUtil.Add(QueryParameters, "HarmonyExtensionExtraData", value);
1258+
}
1259+
}
1260+
12141261
public string HarmonyImageUrl
12151262
{
12161263
get
@@ -1250,6 +1297,19 @@ public string Title
12501297
}
12511298
}
12521299

1300+
public int? HarmonyBadgeAddNum
1301+
{
1302+
get
1303+
{
1304+
return harmonyBadgeAddNum;
1305+
}
1306+
set
1307+
{
1308+
harmonyBadgeAddNum = value;
1309+
DictionaryUtil.Add(QueryParameters, "HarmonyBadgeAddNum", value.ToString());
1310+
}
1311+
}
1312+
12531313
public bool? HarmonyTestMessage
12541314
{
12551315
get

aliyun-net-sdk-push/aliyun-net-sdk-push.vs2017.csproj

+3-4
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<PropertyGroup>
44
<TargetFrameworks>netstandard2.0;net45</TargetFrameworks>
55
<RootNamespace>Aliyun.Acs.Push</RootNamespace>
6-
<Version>3.13.16</Version>
6+
<Version>3.13.17</Version>
77
<Authors>Alibaba Cloud</Authors>
88
<Copyright>©2009-2019 Alibaba Cloud</Copyright>
99
<GeneratePackageOnBuild>false</GeneratePackageOnBuild>
@@ -24,11 +24,10 @@
2424
<IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets>
2525
</PackageReference>
2626
</ItemGroup>
27-
<ItemGroup Condition=" '$(TargetFramework)' == 'netstandard2.0' ">
28-
<PackageReference Include="Newtonsoft.Json" Version="[9.0.1,)"/>
27+
<ItemGroup>
28+
<PackageReference Include="Newtonsoft.Json" Version="[13.0.1,)"/>
2929
</ItemGroup>
3030
<ItemGroup Condition=" '$(TargetFramework)' == 'net45' ">
31-
<PackageReference Include="Newtonsoft.Json" Version="[6.0.1,)"/>
3231
<Reference Include="mscorlib"/>
3332
<Reference Include="System"/>
3433
<Reference Include="System.Core"/>

0 commit comments

Comments
 (0)