@@ -18,6 +18,13 @@ public class AndroidInfo implements Serializable {
18
18
@ JsonProperty ("Sound" )
19
19
private String sound ;
20
20
21
+ /**
22
+ * Android通知栏样式,“0”代表默认样式,“1”代表大文本样式,不填默认为0。仅对
23
+ * 华为/荣耀/OPPO生效。
24
+ */
25
+ @ JsonProperty ("PushStyle" )
26
+ private Integer pushStyle ;
27
+
21
28
/**
22
29
* 华为手机 EMUI 10.0 及以上的通知渠道字段。
23
30
* 该字段不为空时,会覆盖控制台配置的 ChannelID 值;该字段为空时,不会覆盖控制台配置的 ChannelID 值。
@@ -52,6 +59,12 @@ public class AndroidInfo implements Serializable {
52
59
@ JsonProperty ("VIVOClassification" )
53
60
private Integer vivoClassification ;
54
61
62
+ /**
63
+ * vivo 手机用来标识消息类型,该字段不为空时,会覆盖控制台配置的 category 值;该字段为空时,不会覆盖控制台配置的 category 值。
64
+ */
65
+ @ JsonProperty ("VIVOCategory" )
66
+ private String vivoCategory ;
67
+
55
68
/**
56
69
* 华为推送通知消息分类,取值为 LOW、NORMAL,不填默认为 NORMAL。
57
70
*/
@@ -65,15 +78,56 @@ public class AndroidInfo implements Serializable {
65
78
@ JsonProperty ("ExtAsHuaweiIntentParam" )
66
79
private Integer extAsHuaweiIntentParam ;
67
80
81
+ /**
82
+ * 华为手机用来标识消息类型,该字段不为空时,会覆盖控制台配置的 category 值;该字段为空时,不会覆盖控制台配置的 category 值。
83
+ */
84
+ @ JsonProperty ("HuaWeiCategory" )
85
+ private String huaweiCategory ;
86
+
87
+ /**
88
+ * 华为推送通知栏消息右侧小图标URL,URL必须使用HTTPS协议,取值样例:https://example.com/image.png。
89
+ * 图片文件须小于512KB,规格建议为40dp x 40dp,弧角大小为8dp。超出建议规格的图片会存在图片压缩或图片显示不全的情况。
90
+ * 图片格式建议使用JPG/JPEG/PNG。
91
+ */
92
+ @ JsonProperty ("HuaWeiImage" )
93
+ private String huaweiImage ;
94
+
95
+ /**
96
+ * 荣耀推送通知栏消息右侧小图标 URL,URL 必须使用 HTTPS 协议,取值样例:https://example.com/image.png。
97
+ * 图标文件须小于512KB,图标建议规格大小:40dp x 40dp,弧角大小为8dp,超出建议规格大小的图标会存在图片压缩或显示不全的情况。
98
+ */
99
+ @ JsonProperty ("HonorImage" )
100
+ private String honorImage ;
101
+
102
+ /**
103
+ * 荣耀推送通知消息分类,取值为 LOW、NORMAL,不填默认为 NORMAL。
104
+ */
105
+ @ JsonProperty ("HonorImportance" )
106
+ private String honorImportance ;
107
+
108
+ /**
109
+ * Google 推送通知栏消息右侧图标 URL,图片资源不超过1M,支持 JPG/JPEG/PNG 格式,
110
+ * 取值样例:https://example.com/image.png。
111
+ */
112
+ @ JsonProperty ("GoogleImage" )
113
+ private String googleImage ;
114
+
68
115
private AndroidInfo (Builder builder ) {
69
116
this .sound = builder .sound ;
117
+ this .pushStyle = builder .pushStyle ;
70
118
this .huaweiChannelId = builder .huaweiChannelId ;
71
119
this .xiaomiChannelId = builder .xiaomiChannelId ;
72
120
this .oppoChannelId = builder .oppoChannelId ;
73
121
this .googleChannelId = builder .googleChannelId ;
74
122
this .vivoClassification = builder .vivoClassification ;
123
+ this .vivoCategory = builder .vivoCategory ;
75
124
this .huaweiImportance = builder .huaweiImportance ;
76
125
this .extAsHuaweiIntentParam = builder .extAsHuaweiIntentParam ;
126
+ this .huaweiCategory = builder .huaweiCategory ;
127
+ this .huaweiImage = builder .huaweiImage ;
128
+ this .honorImage = builder .honorImage ;
129
+ this .honorImportance = builder .honorImportance ;
130
+ this .googleImage = builder .googleImage ;
77
131
}
78
132
79
133
public static Builder builder () {
@@ -88,6 +142,14 @@ public void setSound(String sound) {
88
142
this .sound = sound ;
89
143
}
90
144
145
+ public Integer getPushStyle () {
146
+ return pushStyle ;
147
+ }
148
+
149
+ public void setPushStyle (Integer pushStyle ) {
150
+ this .pushStyle = pushStyle ;
151
+ }
152
+
91
153
public String getHuaweiChannelId () {
92
154
return huaweiChannelId ;
93
155
}
@@ -128,6 +190,14 @@ public void setVivoClassification(Integer vivoClassification) {
128
190
this .vivoClassification = vivoClassification ;
129
191
}
130
192
193
+ public String getVivoCategory () {
194
+ return vivoCategory ;
195
+ }
196
+
197
+ public void setVivoCategory (String vivoCategory ) {
198
+ this .vivoCategory = vivoCategory ;
199
+ }
200
+
131
201
public String getHuaweiImportance () {
132
202
return huaweiImportance ;
133
203
}
@@ -144,16 +214,63 @@ public void setExtAsHuaweiIntentParam(Integer extAsHuaweiIntentParam) {
144
214
this .extAsHuaweiIntentParam = extAsHuaweiIntentParam ;
145
215
}
146
216
217
+ public String getHuaweiCategory () {
218
+ return huaweiCategory ;
219
+ }
220
+
221
+ public void setHuaweiCategory (String huaweiCategory ) {
222
+ this .huaweiCategory = huaweiCategory ;
223
+ }
224
+
225
+ public String getHuaweiImage () {
226
+ return huaweiImage ;
227
+ }
228
+
229
+ public void setHuaweiImage (String huaweiImage ) {
230
+ this .huaweiImage = huaweiImage ;
231
+ }
232
+
233
+ public String getHonorImage () {
234
+ return honorImage ;
235
+ }
236
+
237
+ public void setHonorImage (String honorImage ) {
238
+ this .honorImage = honorImage ;
239
+ }
240
+
241
+ public String getHonorImportance () {
242
+ return honorImportance ;
243
+ }
244
+
245
+ public void setHonorImportance (String honorImportance ) {
246
+ this .honorImportance = honorImportance ;
247
+ }
248
+
249
+ public String getGoogleImage () {
250
+ return googleImage ;
251
+ }
252
+
253
+ public void setGoogleImage (String googleImage ) {
254
+ this .googleImage = googleImage ;
255
+ }
147
256
148
257
public static final class Builder {
149
258
private String sound ;
259
+ private Integer pushStyle ;
150
260
private String huaweiChannelId ;
151
261
private String xiaomiChannelId ;
152
262
private String oppoChannelId ;
153
263
private String googleChannelId ;
154
264
private Integer vivoClassification ;
265
+ private String vivoCategory ;
155
266
private String huaweiImportance ;
156
267
private Integer extAsHuaweiIntentParam ;
268
+ private String huaweiCategory ;
269
+ private String huaweiImage ;
270
+ private String honorImage ;
271
+ private String honorImportance ;
272
+ private String googleImage ;
273
+
157
274
158
275
private Builder () {
159
276
}
@@ -201,5 +318,40 @@ public Builder extAsHuaweiIntentParam(Integer extAsHuaweiIntentParam) {
201
318
this .extAsHuaweiIntentParam = extAsHuaweiIntentParam ;
202
319
return this ;
203
320
}
321
+
322
+ public Builder pushStyle (Integer pushStyle ) {
323
+ this .pushStyle = pushStyle ;
324
+ return this ;
325
+ }
326
+
327
+ public Builder vivoCategory (String vivoCategory ) {
328
+ this .vivoCategory = vivoCategory ;
329
+ return this ;
330
+ }
331
+
332
+ public Builder huaweiCategory (String huaweiCategory ) {
333
+ this .huaweiCategory = huaweiCategory ;
334
+ return this ;
335
+ }
336
+
337
+ public Builder huaweiImage (String huaweiImage ) {
338
+ this .huaweiImage = huaweiImage ;
339
+ return this ;
340
+ }
341
+
342
+ public Builder honorImage (String honorImage ) {
343
+ this .honorImage = honorImage ;
344
+ return this ;
345
+ }
346
+
347
+ public Builder honorImportance (String honorImportance ) {
348
+ this .honorImportance = honorImportance ;
349
+ return this ;
350
+ }
351
+
352
+ public Builder googleImage (String googleImage ) {
353
+ this .googleImage = googleImage ;
354
+ return this ;
355
+ }
204
356
}
205
357
}
0 commit comments