package com.yeshi.buwan.domain.push;
|
|
import org.springframework.data.annotation.Id;
|
import org.springframework.data.mongodb.core.index.Indexed;
|
import org.springframework.data.mongodb.core.mapping.Document;
|
|
import java.util.Date;
|
|
@Document(collection = "pushDeviceToken")
|
public class PushDeviceToken {
|
|
public final static String TYPE_HUAWEI = "hw";
|
public final static String TYPE_OPPO = "oppo";
|
public final static String TYPE_VIVO = "vivo";
|
public final static String TYPE_XM = "xm";
|
public final static String TYPE_MZ = "mz";
|
|
@Id
|
private String id;
|
private String detailSystemId;
|
private String utdId;
|
@Indexed
|
private String type;
|
private String token;
|
private Date createTime;
|
private Date updateTime;
|
private Integer version;
|
private String buildModel;//手机型号
|
private String buildVersion;//手机系统版本
|
|
private String loginUid;
|
|
|
public String getLoginUid() {
|
return loginUid;
|
}
|
|
public void setLoginUid(String loginUid) {
|
this.loginUid = loginUid;
|
}
|
|
public Integer getVersion() {
|
return version;
|
}
|
|
public void setVersion(Integer version) {
|
this.version = version;
|
}
|
|
public static String createId(String detailSystemId, String utdId) {
|
|
return detailSystemId + "-" + utdId;
|
|
}
|
|
public String getId() {
|
return id;
|
}
|
|
public void setId(String id) {
|
this.id = id;
|
}
|
|
public String getDetailSystemId() {
|
return detailSystemId;
|
}
|
|
public void setDetailSystemId(String detailSystemId) {
|
this.detailSystemId = detailSystemId;
|
}
|
|
public String getUtdId() {
|
return utdId;
|
}
|
|
public void setUtdId(String utdId) {
|
this.utdId = utdId;
|
}
|
|
public String getToken() {
|
return token;
|
}
|
|
public void setToken(String token) {
|
this.token = token;
|
}
|
|
public Date getCreateTime() {
|
return createTime;
|
}
|
|
public void setCreateTime(Date createTime) {
|
this.createTime = createTime;
|
}
|
|
public Date getUpdateTime() {
|
return updateTime;
|
}
|
|
public void setUpdateTime(Date updateTime) {
|
this.updateTime = updateTime;
|
}
|
|
|
public String getType() {
|
return type;
|
}
|
|
public void setType(String type) {
|
this.type = type;
|
}
|
|
|
public String getBuildModel() {
|
return buildModel;
|
}
|
|
public void setBuildModel(String buildModel) {
|
this.buildModel = buildModel;
|
}
|
|
public String getBuildVersion() {
|
return buildVersion;
|
}
|
|
public void setBuildVersion(String buildVersion) {
|
this.buildVersion = buildVersion;
|
}
|
}
|