11package com .getui .push .v2 .sdk .dto .req .message .harmony ;
22
3+ import com .getui .push .v2 .sdk .dto .req .message .CustomBean ;
4+ import com .getui .push .v2 .sdk .dto .req .message .android .ThirdRevokeBean ;
5+
36import java .util .HashMap ;
47import java .util .Map ;
58
69public class HarmonyDTO {
710
811 /**
9- * 通知消息内容,与transmission 二选一,两个都填写时报错
12+ * 通知消息内容,与transmission、custom、revoke四选一,都填写时报错。
13+ * 若希望客户端离线时,直接在系统通知栏中展示通知栏消息,推荐使用此参数。
1014 */
1115 private HarmonyNotification notification ;
1216 /**
13- * 透传消息内容,与notification 二选一,两个都填写时报错 ,长度 ≤ 3072
17+ * 透传消息内容,与notification、custom、revoke四选一,都填写时报错 ,长度 ≤ 3072字
1418 */
1519 private String transmission ;
16-
20+ /**
21+ * 自定义消息内容,与notification、custom、revoke四选一,都填写时报错。
22+ */
23+ private Map <String , CustomBean > custom ;
24+ /**
25+ * 撤回消息时使用
26+ */
27+ private ThirdRevokeBean revoke ;
1728 /**
1829 * 第三方厂商扩展内容
1930 */
@@ -35,6 +46,22 @@ public void setTransmission(String transmission) {
3546 this .transmission = transmission ;
3647 }
3748
49+ public Map <String , CustomBean > getCustom () {
50+ return custom ;
51+ }
52+
53+ public void setCustom (Map <String , CustomBean > custom ) {
54+ this .custom = custom ;
55+ }
56+
57+ public ThirdRevokeBean getRevoke () {
58+ return revoke ;
59+ }
60+
61+ public void setRevoke (ThirdRevokeBean revoke ) {
62+ this .revoke = revoke ;
63+ }
64+
3865 public Map <String , Map <String , Object >> getOptions () {
3966 return options ;
4067 }
@@ -66,6 +93,8 @@ public String toString() {
6693 return "HarmonyDTO{" +
6794 "notification=" + notification +
6895 ", transmission='" + transmission + '\'' +
96+ ", custom=" + custom +
97+ ", revoke=" + revoke +
6998 ", options=" + options +
7099 '}' ;
71100 }
0 commit comments