用户设备。
超过一周天没访问则视为超时,不再推送消息。
| Type | Name and description |
|---|---|
static Object |
constraints |
Date |
dateAccessed最近一次访问的日期 |
Date |
dateCreated创建日期 |
String |
deviceId设备ID |
static Object |
mapping |
String |
userAgent设备UA:可以拆出设备类型及版本,如 Android |
String |
username用户名 |
| Type | Name and description |
|---|---|
static void |
registerDevice(String username, String deviceId, String userAgent)注册一个设备 |
String |
toString() |
| Methods inherited from class | Name |
|---|---|
class Object |
Object#wait(long, int), Object#wait(long), Object#wait(), Object#equals(Object), Object#toString(), Object#hashCode(), Object#getClass(), Object#notify(), Object#notifyAll() |