| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125 |
- package cn.com.lzt.common.push;
- import java.util.ArrayList;
- import java.util.Map;
- public class PushReq {
- /**
- * 推送携带的参数
- */
- private Map<String, String> extras;
- /**
- * 通知内容
- */
- private String alert;
- /**
- * 通知标题
- */
- private String title;
- /**
- * 推送目标方式: 0:别名,1:标签(只要在任何一个标签范围内都满足) , 2:标签(需要同时在多个标签范围内),3:广播,4:分群,5:注册ID
- */
- private int audiencetype;
- /**
- * 推送对象
- */
- private ArrayList<String> audiences;
- /**
- * 推送平台类型:0:Android和ios,1:Android,2:ios,3:windows phone,4:all
- */
- private int platformtype;
- /**
- * 如果不填,表示不改变角标数字;否则把角标数字改为指定的数字;为 0 表示清除。
- */
- private int badge = 1;
- /**
- * 点击打开的页面。会填充到推送信息的 param 字段上,表示由哪个 App 页面打开该通知。可不填,则由默认的首页打开。
- */
- private String _open_page;
- /**
- * app类型:1:XXX端,2:XXX端,当有多个手机客户端时使用
- */
- private int apptype;
- public Map<String, String> getExtras() {
- return extras;
- }
- public void setExtras(Map<String, String> extras) {
- this.extras = extras;
- }
- public String getAlert() {
- return alert;
- }
- public void setAlert(String alert) {
- this.alert = alert;
- }
- public String getTitle() {
- return title;
- }
- public void setTitle(String title) {
- this.title = title;
- }
- public int getAudiencetype() {
- return audiencetype;
- }
- public void setAudiencetype(int audiencetype) {
- this.audiencetype = audiencetype;
- }
- public ArrayList<String> getAudiences() {
- return audiences;
- }
- public void setAudiences(ArrayList<String> audiences) {
- this.audiences = audiences;
- }
- public int getPlatformtype() {
- return platformtype;
- }
- public void setPlatformtype(int platformtype) {
- this.platformtype = platformtype;
- }
- public int getBadge() {
- return badge;
- }
- public void setBadge(int badge) {
- this.badge = badge;
- }
- public String get_open_page() {
- return _open_page;
- }
- public void set_open_page(String _open_page) {
- this._open_page = _open_page;
- }
- public int getApptype() {
- return apptype;
- }
- public void setApptype(int apptype) {
- this.apptype = apptype;
- }
- }
|