2020-01-04 14:51:46 +08:00
|
|
|
package cn.wildfirechat.pojos;
|
|
|
|
|
|
|
|
|
|
public class UserOnlineStatus {
|
|
|
|
|
public static final int ONLINE = 0;
|
|
|
|
|
public static final int OFFLINE = 1;
|
|
|
|
|
public static final int LOGOUT = -1;
|
2020-01-04 17:04:43 +08:00
|
|
|
|
2020-01-04 14:51:46 +08:00
|
|
|
public String userId;
|
|
|
|
|
public String clientId;
|
|
|
|
|
public int platform;
|
|
|
|
|
public int status;
|
|
|
|
|
public long timestamp;
|
2020-08-20 08:54:59 +08:00
|
|
|
public String packageName;
|
2020-01-04 14:51:46 +08:00
|
|
|
|
2020-10-19 09:09:53 +08:00
|
|
|
public UserOnlineStatus() {
|
|
|
|
|
}
|
|
|
|
|
|
2020-08-20 08:54:59 +08:00
|
|
|
public UserOnlineStatus(String userId, String clientId, int platform, int status, String packageName) {
|
2020-01-04 14:51:46 +08:00
|
|
|
this.userId = userId;
|
|
|
|
|
this.clientId = clientId;
|
|
|
|
|
this.platform = platform;
|
|
|
|
|
this.status = status;
|
2020-08-20 08:54:59 +08:00
|
|
|
this.packageName = packageName;
|
2020-01-04 14:51:46 +08:00
|
|
|
this.timestamp = System.currentTimeMillis();
|
|
|
|
|
}
|
|
|
|
|
}
|