@@ -18,6 +18,13 @@ public class AndroidInfo implements Serializable {
1818 @ JsonProperty ("Sound" )
1919 private String sound ;
2020
21+ /**
22+ * Android通知栏样式,“0”代表默认样式,“1”代表大文本样式,不填默认为0。仅对
23+ * 华为/荣耀/OPPO生效。
24+ */
25+ @ JsonProperty ("PushStyle" )
26+ private Integer pushStyle ;
27+
2128 /**
2229 * 华为手机 EMUI 10.0 及以上的通知渠道字段。
2330 * 该字段不为空时,会覆盖控制台配置的 ChannelID 值;该字段为空时,不会覆盖控制台配置的 ChannelID 值。
@@ -52,6 +59,12 @@ public class AndroidInfo implements Serializable {
5259 @ JsonProperty ("VIVOClassification" )
5360 private Integer vivoClassification ;
5461
62+ /**
63+ * vivo 手机用来标识消息类型,该字段不为空时,会覆盖控制台配置的 category 值;该字段为空时,不会覆盖控制台配置的 category 值。
64+ */
65+ @ JsonProperty ("VIVOCategory" )
66+ private String vivoCategory ;
67+
5568 /**
5669 * 华为推送通知消息分类,取值为 LOW、NORMAL,不填默认为 NORMAL。
5770 */
@@ -65,15 +78,56 @@ public class AndroidInfo implements Serializable {
6578 @ JsonProperty ("ExtAsHuaweiIntentParam" )
6679 private Integer extAsHuaweiIntentParam ;
6780
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+
68115 private AndroidInfo (Builder builder ) {
69116 this .sound = builder .sound ;
117+ this .pushStyle = builder .pushStyle ;
70118 this .huaweiChannelId = builder .huaweiChannelId ;
71119 this .xiaomiChannelId = builder .xiaomiChannelId ;
72120 this .oppoChannelId = builder .oppoChannelId ;
73121 this .googleChannelId = builder .googleChannelId ;
74122 this .vivoClassification = builder .vivoClassification ;
123+ this .vivoCategory = builder .vivoCategory ;
75124 this .huaweiImportance = builder .huaweiImportance ;
76125 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 ;
77131 }
78132
79133 public static Builder builder () {
@@ -88,6 +142,14 @@ public void setSound(String sound) {
88142 this .sound = sound ;
89143 }
90144
145+ public Integer getPushStyle () {
146+ return pushStyle ;
147+ }
148+
149+ public void setPushStyle (Integer pushStyle ) {
150+ this .pushStyle = pushStyle ;
151+ }
152+
91153 public String getHuaweiChannelId () {
92154 return huaweiChannelId ;
93155 }
@@ -128,6 +190,14 @@ public void setVivoClassification(Integer vivoClassification) {
128190 this .vivoClassification = vivoClassification ;
129191 }
130192
193+ public String getVivoCategory () {
194+ return vivoCategory ;
195+ }
196+
197+ public void setVivoCategory (String vivoCategory ) {
198+ this .vivoCategory = vivoCategory ;
199+ }
200+
131201 public String getHuaweiImportance () {
132202 return huaweiImportance ;
133203 }
@@ -144,16 +214,63 @@ public void setExtAsHuaweiIntentParam(Integer extAsHuaweiIntentParam) {
144214 this .extAsHuaweiIntentParam = extAsHuaweiIntentParam ;
145215 }
146216
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+ }
147256
148257 public static final class Builder {
149258 private String sound ;
259+ private Integer pushStyle ;
150260 private String huaweiChannelId ;
151261 private String xiaomiChannelId ;
152262 private String oppoChannelId ;
153263 private String googleChannelId ;
154264 private Integer vivoClassification ;
265+ private String vivoCategory ;
155266 private String huaweiImportance ;
156267 private Integer extAsHuaweiIntentParam ;
268+ private String huaweiCategory ;
269+ private String huaweiImage ;
270+ private String honorImage ;
271+ private String honorImportance ;
272+ private String googleImage ;
273+
157274
158275 private Builder () {
159276 }
@@ -201,5 +318,40 @@ public Builder extAsHuaweiIntentParam(Integer extAsHuaweiIntentParam) {
201318 this .extAsHuaweiIntentParam = extAsHuaweiIntentParam ;
202319 return this ;
203320 }
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+ }
204356 }
205357}
0 commit comments