View Javadoc
1   package com.foxinmy.weixin4j.mp.model.shakearound;
2   
3   import com.alibaba.fastjson.annotation.JSONField;
4   
5   /**
6    * 摇一摇设备信息。device_id 和 uuid  major minor 可以2者选一
7    * @auther: Feng Yapeng
8    * @since: 2016/10/13 9:59
9    */
10  public class Device {
11  
12      /**
13       * 设备编号
14       */
15      @JSONField(name = "device_id")
16      private Integer deviceId;
17  
18  
19      private String uuid;
20  
21      private Integer major;
22  
23      private Integer minor;
24  
25      /**
26       * 激活状态,0:未激活,1:已激活
27       */
28      private int status;
29  
30      /**
31       * 设备最近一次被摇到的日期(最早只能获取前一天的数据);新申请的设备该字段值为0
32       */
33      @JSONField(name = "last_active_time")
34      private String lastActiveTime;
35  
36      /**
37       * 若配置了设备与其他公众账号门店关联关系,则返回配置门店归属的公众账号appid。
38       * <a href=
39       * "https://mp.weixin.qq.com/wiki?t=resource/res_main&id=mp1459246251">查看配置设备与其他公众账号门店关联关系接口</a>
40       */
41      @JSONField(name = "poi_appid")
42      private String poiAppId;
43  
44      /**
45       * 设备关联的门店ID,关联门店后,在门店1KM的范围内有优先摇出信息的机会。
46       * <a href="https://mp.weixin.qq.com/zh_CN/htmledition/comm_htmledition/res/store_manage/store_manage_file.zip"></a>门店相关信息具体可查看门店相关的接口文档
47       */
48      @JSONField(name = "poi_id")
49      private String poiId;
50  
51      /**
52       * 设备的备注信息
53       */
54      private String comment;
55  
56  
57      public Device() {
58      }
59  
60      /**
61       *
62       * @param deviceId
63       */
64      public Device(Integer deviceId) {
65          this.deviceId = deviceId;
66      }
67  
68      public Device(String uuid, Integer major, Integer minor) {
69          this.uuid = uuid;
70          this.major = major;
71          this.minor = minor;
72      }
73  
74      public Integer getDeviceId() {
75          return deviceId;
76      }
77  
78      public void setDeviceId(int deviceId) {
79          this.deviceId = deviceId;
80      }
81  
82      public String getUuid() {
83          return uuid;
84      }
85  
86      public void setUuid(String uuid) {
87          this.uuid = uuid;
88      }
89  
90      public Integer getMajor() {
91          return major;
92      }
93  
94      public void setMajor(int major) {
95          this.major = major;
96      }
97  
98      public Integer getMinor() {
99          return minor;
100     }
101 
102     public void setMinor(int minor) {
103         this.minor = minor;
104     }
105 
106     public void setDeviceId(Integer deviceId) {
107         this.deviceId = deviceId;
108     }
109 
110     public void setMajor(Integer major) {
111         this.major = major;
112     }
113 
114     public void setMinor(Integer minor) {
115         this.minor = minor;
116     }
117 
118     public int getStatus() {
119         return status;
120     }
121 
122     public void setStatus(int status) {
123         this.status = status;
124     }
125 
126     public String getLastActiveTime() {
127         return lastActiveTime;
128     }
129 
130     public void setLastActiveTime(String lastActiveTime) {
131         this.lastActiveTime = lastActiveTime;
132     }
133 
134     public String getPoiAppId() {
135         return poiAppId;
136     }
137 
138     public void setPoiAppId(String poiAppId) {
139         this.poiAppId = poiAppId;
140     }
141 
142     public String getPoiId() {
143         return poiId;
144     }
145 
146     public void setPoiId(String poiId) {
147         this.poiId = poiId;
148     }
149 
150     public String getComment() {
151         return comment;
152     }
153 
154     public void setComment(String comment) {
155         this.comment = comment;
156     }
157 
158 }