@@ -85,6 +85,20 @@ public class GTNotification {
8585 @ SerializedName ("thread_id" )
8686 private String threadId ;
8787
88+ /**
89+ * 消息重弹次数,0代表不重弹,若要设置消息重弹则必须大于1,上限3次。
90+ */
91+ @ SerializedName ("redisplay_freq" )
92+ private Integer redisplayFreq ;
93+
94+ /**
95+ * 消息重弹间隔(单位小时),仅当重弹次数大于0时才生效,代表每次消息重弹之间的最小间隔。
96+ * 由于重弹依赖SDK登录动作,因此实际的重弹间隔可能会大于设置的最小间隔。
97+ * 0代表登录即弹,大于0即忽略在最小间隔内的登录重弹动作,上限为24小时
98+ */
99+ @ SerializedName ("redisplay_duration" )
100+ private Integer redisplayDuration ;
101+
88102 public String getTitle () {
89103 return title ;
90104 }
@@ -221,6 +235,22 @@ public void setThreadId(String threadId) {
221235 this .threadId = threadId ;
222236 }
223237
238+ public Integer getRedisplayFreq () {
239+ return redisplayFreq ;
240+ }
241+
242+ public void setRedisplayFreq (Integer redisplayFreq ) {
243+ this .redisplayFreq = redisplayFreq ;
244+ }
245+
246+ public Integer getRedisplayDuration () {
247+ return redisplayDuration ;
248+ }
249+
250+ public void setRedisplayDuration (Integer redisplayDuration ) {
251+ this .redisplayDuration = redisplayDuration ;
252+ }
253+
224254 @ Override
225255 public String toString () {
226256 return "GTNotification{" +
@@ -241,6 +271,8 @@ public String toString() {
241271 ", ringName='" + ringName + '\'' +
242272 ", badgeAddNum='" + badgeAddNum + '\'' +
243273 ", threadId='" + threadId + '\'' +
274+ ", redisplayFreq=" + redisplayFreq +
275+ ", redisplayDuration=" + redisplayDuration +
244276 '}' ;
245277 }
246278}
0 commit comments