added "birthdate", addresses #253
parent
6ef4dc817e
commit
0ab4ad4bbe
|
@ -55,6 +55,7 @@ public class DefaultUserInfo implements UserInfo {
|
||||||
private String phoneNumber;
|
private String phoneNumber;
|
||||||
private Address address;
|
private Address address;
|
||||||
private String updatedTime;
|
private String updatedTime;
|
||||||
|
private String birthdate;
|
||||||
|
|
||||||
|
|
||||||
/* (non-Javadoc)
|
/* (non-Javadoc)
|
||||||
|
@ -340,6 +341,21 @@ public class DefaultUserInfo implements UserInfo {
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
* @return the birthdate
|
||||||
|
*/
|
||||||
|
@Basic
|
||||||
|
@Column(name="birthdate")
|
||||||
|
public String getBirthdate() {
|
||||||
|
return birthdate;
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* @param birthdate the birthdate to set
|
||||||
|
*/
|
||||||
|
public void setBirthdate(String birthdate) {
|
||||||
|
this.birthdate = birthdate;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
* Parse a JsonObject into a UserInfo.
|
* Parse a JsonObject into a UserInfo.
|
||||||
* @param o
|
* @param o
|
||||||
* @return
|
* @return
|
||||||
|
@ -362,6 +378,7 @@ public class DefaultUserInfo implements UserInfo {
|
||||||
ui.setZoneinfo(obj.has("zone_info") ? obj.get("zone_info").getAsString() : null);
|
ui.setZoneinfo(obj.has("zone_info") ? obj.get("zone_info").getAsString() : null);
|
||||||
ui.setLocale(obj.has("locale") ? obj.get("locale").getAsString() : null);
|
ui.setLocale(obj.has("locale") ? obj.get("locale").getAsString() : null);
|
||||||
ui.setUpdatedTime(obj.has("updated_time") ? obj.get("updated_time").getAsString() : null);
|
ui.setUpdatedTime(obj.has("updated_time") ? obj.get("updated_time").getAsString() : null);
|
||||||
|
ui.setBirthdate(obj.has("birthdate") ? obj.get("birthdate").getAsString() : null);
|
||||||
|
|
||||||
ui.setEmail(obj.has("email") ? obj.get("email").getAsString() : null);
|
ui.setEmail(obj.has("email") ? obj.get("email").getAsString() : null);
|
||||||
ui.setEmailVerified(obj.has("email_verified") ? obj.get("email_verified").getAsBoolean() : null);
|
ui.setEmailVerified(obj.has("email_verified") ? obj.get("email_verified").getAsBoolean() : null);
|
||||||
|
@ -386,4 +403,5 @@ public class DefaultUserInfo implements UserInfo {
|
||||||
return ui;
|
return ui;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -221,4 +221,18 @@ public interface UserInfo {
|
||||||
*/
|
*/
|
||||||
public abstract void setUpdatedTime(String updatedTime);
|
public abstract void setUpdatedTime(String updatedTime);
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* @return
|
||||||
|
*/
|
||||||
|
@Basic
|
||||||
|
@Column(name="birthdate")
|
||||||
|
public abstract String getBirthdate();
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* @param birthdate
|
||||||
|
*/
|
||||||
|
public abstract void setBirthdate(String birthdate);
|
||||||
}
|
}
|
|
@ -107,6 +107,7 @@ public class JSONUserInfoView extends AbstractView {
|
||||||
obj.addProperty("zone_info", ui.getZoneinfo());
|
obj.addProperty("zone_info", ui.getZoneinfo());
|
||||||
obj.addProperty("locale", ui.getLocale());
|
obj.addProperty("locale", ui.getLocale());
|
||||||
obj.addProperty("updated_time", ui.getUpdatedTime());
|
obj.addProperty("updated_time", ui.getUpdatedTime());
|
||||||
|
obj.addProperty("birthdate", ui.getBirthdate());
|
||||||
}
|
}
|
||||||
|
|
||||||
if (scope.contains("email")) {
|
if (scope.contains("email")) {
|
||||||
|
|
|
@ -179,7 +179,8 @@ CREATE TABLE IF NOT EXISTS user_info (
|
||||||
locale VARCHAR(256),
|
locale VARCHAR(256),
|
||||||
phone_number VARCHAR(256),
|
phone_number VARCHAR(256),
|
||||||
address_id VARCHAR(256),
|
address_id VARCHAR(256),
|
||||||
updated_time VARCHAR(256)
|
updated_time VARCHAR(256),
|
||||||
|
birthdate VARCHAR(256)
|
||||||
);
|
);
|
||||||
|
|
||||||
CREATE TABLE IF NOT EXISTS whitelisted_site (
|
CREATE TABLE IF NOT EXISTS whitelisted_site (
|
||||||
|
|
|
@ -32,7 +32,8 @@ CREATE TEMPORARY TABLE IF NOT EXISTS user_info_TEMP (
|
||||||
locale VARCHAR(256),
|
locale VARCHAR(256),
|
||||||
phone_number VARCHAR(256),
|
phone_number VARCHAR(256),
|
||||||
address_id VARCHAR(256),
|
address_id VARCHAR(256),
|
||||||
updated_time VARCHAR(256)
|
updated_time VARCHAR(256),
|
||||||
|
birthdate VARCHAR(256)
|
||||||
);
|
);
|
||||||
|
|
||||||
CREATE TEMPORARY TABLE IF NOT EXISTS client_details_TEMP (
|
CREATE TEMPORARY TABLE IF NOT EXISTS client_details_TEMP (
|
||||||
|
|
|
@ -174,7 +174,8 @@ CREATE TABLE user_info (
|
||||||
locale VARCHAR(256),
|
locale VARCHAR(256),
|
||||||
phone_number VARCHAR(256),
|
phone_number VARCHAR(256),
|
||||||
address_id VARCHAR(256),
|
address_id VARCHAR(256),
|
||||||
updated_time VARCHAR(256)
|
updated_time VARCHAR(256),
|
||||||
|
birthdate VARCHAR(256)
|
||||||
);
|
);
|
||||||
|
|
||||||
CREATE TABLE whitelisted_site (
|
CREATE TABLE whitelisted_site (
|
||||||
|
|
Loading…
Reference in New Issue