PushReq.java 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125
  1. package cn.com.lzt.common.push;
  2. import java.util.ArrayList;
  3. import java.util.Map;
  4. public class PushReq {
  5. /**
  6. * 推送携带的参数
  7. */
  8. private Map<String, String> extras;
  9. /**
  10. * 通知内容
  11. */
  12. private String alert;
  13. /**
  14. * 通知标题
  15. */
  16. private String title;
  17. /**
  18. * 推送目标方式: 0:别名,1:标签(只要在任何一个标签范围内都满足) , 2:标签(需要同时在多个标签范围内),3:广播,4:分群,5:注册ID
  19. */
  20. private int audiencetype;
  21. /**
  22. * 推送对象
  23. */
  24. private ArrayList<String> audiences;
  25. /**
  26. * 推送平台类型:0:Android和ios,1:Android,2:ios,3:windows phone,4:all
  27. */
  28. private int platformtype;
  29. /**
  30. * 如果不填,表示不改变角标数字;否则把角标数字改为指定的数字;为 0 表示清除。
  31. */
  32. private int badge = 1;
  33. /**
  34. * 点击打开的页面。会填充到推送信息的 param 字段上,表示由哪个 App 页面打开该通知。可不填,则由默认的首页打开。
  35. */
  36. private String _open_page;
  37. /**
  38. * app类型:1:XXX端,2:XXX端,当有多个手机客户端时使用
  39. */
  40. private int apptype;
  41. public Map<String, String> getExtras() {
  42. return extras;
  43. }
  44. public void setExtras(Map<String, String> extras) {
  45. this.extras = extras;
  46. }
  47. public String getAlert() {
  48. return alert;
  49. }
  50. public void setAlert(String alert) {
  51. this.alert = alert;
  52. }
  53. public String getTitle() {
  54. return title;
  55. }
  56. public void setTitle(String title) {
  57. this.title = title;
  58. }
  59. public int getAudiencetype() {
  60. return audiencetype;
  61. }
  62. public void setAudiencetype(int audiencetype) {
  63. this.audiencetype = audiencetype;
  64. }
  65. public ArrayList<String> getAudiences() {
  66. return audiences;
  67. }
  68. public void setAudiences(ArrayList<String> audiences) {
  69. this.audiences = audiences;
  70. }
  71. public int getPlatformtype() {
  72. return platformtype;
  73. }
  74. public void setPlatformtype(int platformtype) {
  75. this.platformtype = platformtype;
  76. }
  77. public int getBadge() {
  78. return badge;
  79. }
  80. public void setBadge(int badge) {
  81. this.badge = badge;
  82. }
  83. public String get_open_page() {
  84. return _open_page;
  85. }
  86. public void set_open_page(String _open_page) {
  87. this._open_page = _open_page;
  88. }
  89. public int getApptype() {
  90. return apptype;
  91. }
  92. public void setApptype(int apptype) {
  93. this.apptype = apptype;
  94. }
  95. }