shark-node-openid
Version:
shark-node-openid is used for netease's openid.
51 lines (39 loc) • 1.19 kB
JavaScript
function OpenIdLoginUserModel(){
this.user_email = "";
this.expires_time = 0;
this.full_name = "";
this.nick_name = "";
}
OpenIdLoginUserModel.prototype.setUserEmail = function(user_email){
this.user_email = user_email;
};
OpenIdLoginUserModel.prototype.getUserEmail = function(){
return this.user_email;
};
OpenIdLoginUserModel.prototype.setExpiresTime = function(expires_time){
this.expires_time = expires_time;
};
OpenIdLoginUserModel.prototype.getExpiresTime = function(){
return this.expires_time;
};
OpenIdLoginUserModel.prototype.setFullName = function(full_name){
this.full_name = full_name;
};
OpenIdLoginUserModel.prototype.getFullName = function(){
return this.full_name;
};
OpenIdLoginUserModel.prototype.setNickName = function(nick_name){
this.nick_name = nick_name;
};
OpenIdLoginUserModel.prototype.getNickName = function(){
return this.nick_name;
};
OpenIdLoginUserModel.prototype.toJSON = function(){
return {
'user_email' : this.user_email,
'expires_time': this.expires_time,
'full_name': this.full_name,
'nick_name': this.nick_name
}
};
module.exports = OpenIdLoginUserModel;