|
| 1 | +package cn.jiguang.sdk.bean.push.message.notification; |
| 2 | + |
| 3 | +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; |
| 4 | +import com.fasterxml.jackson.annotation.JsonInclude; |
| 5 | +import com.fasterxml.jackson.annotation.JsonProperty; |
| 6 | +import lombok.Data; |
| 7 | + |
| 8 | +import java.util.Map; |
| 9 | + |
| 10 | +@Data |
| 11 | +@JsonIgnoreProperties(ignoreUnknown = true) |
| 12 | +public class ThirdNotificationMessage { |
| 13 | + |
| 14 | + @JsonProperty("title") |
| 15 | + @JsonInclude(JsonInclude.Include.NON_NULL) |
| 16 | + private String title; |
| 17 | + |
| 18 | + @JsonProperty("content") |
| 19 | + private String content; |
| 20 | + |
| 21 | + @JsonProperty("intent") |
| 22 | + @JsonInclude(JsonInclude.Include.NON_NULL) |
| 23 | + private Intent intent; |
| 24 | + |
| 25 | + @JsonProperty("uri_activity") |
| 26 | + @JsonInclude(JsonInclude.Include.NON_NULL) |
| 27 | + private String uriActivity; |
| 28 | + |
| 29 | + @JsonProperty("uri_action") |
| 30 | + @JsonInclude(JsonInclude.Include.NON_NULL) |
| 31 | + private String uriAction; |
| 32 | + |
| 33 | + @JsonProperty("badge_class") |
| 34 | + @JsonInclude(JsonInclude.Include.NON_NULL) |
| 35 | + private String badgeClass; |
| 36 | + |
| 37 | + @JsonProperty("badge_add_num") |
| 38 | + @JsonInclude(JsonInclude.Include.NON_NULL) |
| 39 | + private Integer badgeAddNumber; |
| 40 | + |
| 41 | + @JsonProperty("badge_set_num") |
| 42 | + @JsonInclude(JsonInclude.Include.NON_NULL) |
| 43 | + private Integer badgeSetNumber; |
| 44 | + |
| 45 | + @JsonProperty("sound") |
| 46 | + @JsonInclude(JsonInclude.Include.NON_NULL) |
| 47 | + private String sound; |
| 48 | + |
| 49 | + @JsonProperty("channel_id") |
| 50 | + @JsonInclude(JsonInclude.Include.NON_NULL) |
| 51 | + private String channelId; |
| 52 | + |
| 53 | + @JsonProperty("extras") |
| 54 | + @JsonInclude(JsonInclude.Include.NON_NULL) |
| 55 | + private Map<String, Object> extras; |
| 56 | + |
| 57 | + @Data |
| 58 | + public static class Intent { |
| 59 | + @JsonProperty("url") |
| 60 | + @JsonInclude(JsonInclude.Include.NON_NULL) |
| 61 | + private String url; |
| 62 | + } |
| 63 | + |
| 64 | +} |
0 commit comments