72 lines
1.2 KiB
Java
Executable File
72 lines
1.2 KiB
Java
Executable File
package com.windchat.im.business.bean;
|
|
|
|
import org.apache.commons.lang3.StringUtils;
|
|
|
|
import com.akaxin.common.utils.GsonUtils;
|
|
|
|
public class PlatformPhoneBean {
|
|
|
|
private String phoneId;
|
|
private String countryCode;
|
|
private String userIdPubk;
|
|
|
|
/**
|
|
* @return the phoneId
|
|
*/
|
|
public String getPhoneId() {
|
|
return phoneId;
|
|
}
|
|
|
|
/**
|
|
* @param phoneId
|
|
* the phoneId to set
|
|
*/
|
|
public void setPhoneId(String phoneId) {
|
|
this.phoneId = phoneId;
|
|
}
|
|
|
|
/**
|
|
* @return the countryCode
|
|
*/
|
|
public String getCountryCode() {
|
|
return countryCode;
|
|
}
|
|
|
|
/**
|
|
* @param countryCode
|
|
* the countryCode to set
|
|
*/
|
|
public void setCountryCode(String countryCode) {
|
|
this.countryCode = countryCode;
|
|
}
|
|
|
|
/**
|
|
* @return the countryCode_phoneId
|
|
*/
|
|
public String getFullPhoneId() {
|
|
if (StringUtils.isNotEmpty(this.countryCode)) {
|
|
return this.countryCode + "_" + phoneId;
|
|
}
|
|
return "+86_" + phoneId;
|
|
}
|
|
|
|
/**
|
|
* @return the userIdPubk
|
|
*/
|
|
public String getUserIdPubk() {
|
|
return userIdPubk;
|
|
}
|
|
|
|
/**
|
|
* @param userIdPubk
|
|
* the userIdPubk to set
|
|
*/
|
|
public void setUserIdPubk(String userIdPubk) {
|
|
this.userIdPubk = userIdPubk;
|
|
}
|
|
|
|
public String toString() {
|
|
return GsonUtils.toJson(this);
|
|
}
|
|
}
|