forked from loafle/openapi-generator-original
Merge pull request #2071 from delenius/prototype-tests
Modify JS PetStore tests for prototypes change
This commit is contained in:
commit
cabe003e02
@ -20,27 +20,27 @@
|
||||
|
||||
|
||||
var Category = function Category() {
|
||||
var self = this;
|
||||
|
||||
/**
|
||||
* datatype: Integer
|
||||
**/
|
||||
self['id'] = null;
|
||||
this['id'] = null;
|
||||
|
||||
/**
|
||||
* datatype: String
|
||||
**/
|
||||
self['name'] = null;
|
||||
this['name'] = null;
|
||||
|
||||
};
|
||||
|
||||
self.constructFromObject = function(data) {
|
||||
Category.prototype.constructFromObject = function(data) {
|
||||
if (!data) {
|
||||
return this;
|
||||
}
|
||||
|
||||
self['id'] = ApiClient.convertToType(data['id'], 'Integer');
|
||||
this['id'] = ApiClient.convertToType(data['id'], 'Integer');
|
||||
|
||||
self['name'] = ApiClient.convertToType(data['name'], 'String');
|
||||
this['name'] = ApiClient.convertToType(data['name'], 'String');
|
||||
|
||||
return this;
|
||||
}
|
||||
@ -49,36 +49,35 @@
|
||||
/**
|
||||
* @return {Integer}
|
||||
**/
|
||||
self.getId = function() {
|
||||
return self['id'];
|
||||
Category.prototype.getId = function() {
|
||||
return this['id'];
|
||||
}
|
||||
|
||||
/**
|
||||
* @param {Integer} id
|
||||
**/
|
||||
self.setId = function(id) {
|
||||
self['id'] = id;
|
||||
Category.prototype.setId = function(id) {
|
||||
this['id'] = id;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return {String}
|
||||
**/
|
||||
self.getName = function() {
|
||||
return self['name'];
|
||||
Category.prototype.getName = function() {
|
||||
return this['name'];
|
||||
}
|
||||
|
||||
/**
|
||||
* @param {String} name
|
||||
**/
|
||||
self.setName = function(name) {
|
||||
self['name'] = name;
|
||||
Category.prototype.setName = function(name) {
|
||||
this['name'] = name;
|
||||
}
|
||||
|
||||
|
||||
self.toJson = function() {
|
||||
return JSON.stringify(self);
|
||||
Category.prototype.toJson = function() {
|
||||
return JSON.stringify(this);
|
||||
}
|
||||
};
|
||||
|
||||
if (module) {
|
||||
module.Category = Category;
|
||||
|
@ -48,56 +48,56 @@ var StatusEnum = function StatusEnum() {
|
||||
|
||||
|
||||
var Order = function Order() {
|
||||
var self = this;
|
||||
|
||||
/**
|
||||
* datatype: Integer
|
||||
**/
|
||||
self['id'] = null;
|
||||
this['id'] = null;
|
||||
|
||||
/**
|
||||
* datatype: Integer
|
||||
**/
|
||||
self['petId'] = null;
|
||||
this['petId'] = null;
|
||||
|
||||
/**
|
||||
* datatype: Integer
|
||||
**/
|
||||
self['quantity'] = null;
|
||||
this['quantity'] = null;
|
||||
|
||||
/**
|
||||
* datatype: Date
|
||||
**/
|
||||
self['shipDate'] = null;
|
||||
this['shipDate'] = null;
|
||||
|
||||
/**
|
||||
* Order Status
|
||||
* datatype: StatusEnum
|
||||
**/
|
||||
self['status'] = null;
|
||||
this['status'] = null;
|
||||
|
||||
/**
|
||||
* datatype: Boolean
|
||||
**/
|
||||
self['complete'] = null;
|
||||
this['complete'] = null;
|
||||
|
||||
};
|
||||
|
||||
self.constructFromObject = function(data) {
|
||||
Order.prototype.constructFromObject = function(data) {
|
||||
if (!data) {
|
||||
return this;
|
||||
}
|
||||
|
||||
self['id'] = ApiClient.convertToType(data['id'], 'Integer');
|
||||
this['id'] = ApiClient.convertToType(data['id'], 'Integer');
|
||||
|
||||
self['petId'] = ApiClient.convertToType(data['petId'], 'Integer');
|
||||
this['petId'] = ApiClient.convertToType(data['petId'], 'Integer');
|
||||
|
||||
self['quantity'] = ApiClient.convertToType(data['quantity'], 'Integer');
|
||||
this['quantity'] = ApiClient.convertToType(data['quantity'], 'Integer');
|
||||
|
||||
self['shipDate'] = ApiClient.convertToType(data['shipDate'], 'Date');
|
||||
this['shipDate'] = ApiClient.convertToType(data['shipDate'], 'Date');
|
||||
|
||||
self['status'] = ApiClient.convertToType(data['status'], 'String');
|
||||
this['status'] = ApiClient.convertToType(data['status'], 'String');
|
||||
|
||||
self['complete'] = ApiClient.convertToType(data['complete'], 'Boolean');
|
||||
this['complete'] = ApiClient.convertToType(data['complete'], 'Boolean');
|
||||
|
||||
return this;
|
||||
}
|
||||
@ -106,94 +106,93 @@ var StatusEnum = function StatusEnum() {
|
||||
/**
|
||||
* @return {Integer}
|
||||
**/
|
||||
self.getId = function() {
|
||||
return self['id'];
|
||||
Order.prototype.getId = function() {
|
||||
return this['id'];
|
||||
}
|
||||
|
||||
/**
|
||||
* @param {Integer} id
|
||||
**/
|
||||
self.setId = function(id) {
|
||||
self['id'] = id;
|
||||
Order.prototype.setId = function(id) {
|
||||
this['id'] = id;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return {Integer}
|
||||
**/
|
||||
self.getPetId = function() {
|
||||
return self['petId'];
|
||||
Order.prototype.getPetId = function() {
|
||||
return this['petId'];
|
||||
}
|
||||
|
||||
/**
|
||||
* @param {Integer} petId
|
||||
**/
|
||||
self.setPetId = function(petId) {
|
||||
self['petId'] = petId;
|
||||
Order.prototype.setPetId = function(petId) {
|
||||
this['petId'] = petId;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return {Integer}
|
||||
**/
|
||||
self.getQuantity = function() {
|
||||
return self['quantity'];
|
||||
Order.prototype.getQuantity = function() {
|
||||
return this['quantity'];
|
||||
}
|
||||
|
||||
/**
|
||||
* @param {Integer} quantity
|
||||
**/
|
||||
self.setQuantity = function(quantity) {
|
||||
self['quantity'] = quantity;
|
||||
Order.prototype.setQuantity = function(quantity) {
|
||||
this['quantity'] = quantity;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return {Date}
|
||||
**/
|
||||
self.getShipDate = function() {
|
||||
return self['shipDate'];
|
||||
Order.prototype.getShipDate = function() {
|
||||
return this['shipDate'];
|
||||
}
|
||||
|
||||
/**
|
||||
* @param {Date} shipDate
|
||||
**/
|
||||
self.setShipDate = function(shipDate) {
|
||||
self['shipDate'] = shipDate;
|
||||
Order.prototype.setShipDate = function(shipDate) {
|
||||
this['shipDate'] = shipDate;
|
||||
}
|
||||
|
||||
/**
|
||||
* get Order Status
|
||||
* @return {StatusEnum}
|
||||
**/
|
||||
self.getStatus = function() {
|
||||
return self['status'];
|
||||
Order.prototype.getStatus = function() {
|
||||
return this['status'];
|
||||
}
|
||||
|
||||
/**
|
||||
* set Order Status
|
||||
* @param {StatusEnum} status
|
||||
**/
|
||||
self.setStatus = function(status) {
|
||||
self['status'] = status;
|
||||
Order.prototype.setStatus = function(status) {
|
||||
this['status'] = status;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return {Boolean}
|
||||
**/
|
||||
self.getComplete = function() {
|
||||
return self['complete'];
|
||||
Order.prototype.getComplete = function() {
|
||||
return this['complete'];
|
||||
}
|
||||
|
||||
/**
|
||||
* @param {Boolean} complete
|
||||
**/
|
||||
self.setComplete = function(complete) {
|
||||
self['complete'] = complete;
|
||||
Order.prototype.setComplete = function(complete) {
|
||||
this['complete'] = complete;
|
||||
}
|
||||
|
||||
|
||||
self.toJson = function() {
|
||||
return JSON.stringify(self);
|
||||
Order.prototype.toJson = function() {
|
||||
return JSON.stringify(this);
|
||||
}
|
||||
};
|
||||
|
||||
if (module) {
|
||||
module.Order = Order;
|
||||
|
@ -48,58 +48,58 @@ var StatusEnum = function StatusEnum() {
|
||||
|
||||
|
||||
var Pet = function Pet(photoUrls, name) {
|
||||
var self = this;
|
||||
|
||||
/**
|
||||
* datatype: Integer
|
||||
**/
|
||||
self['id'] = null;
|
||||
this['id'] = null;
|
||||
|
||||
/**
|
||||
* datatype: Category
|
||||
**/
|
||||
self['category'] = new Category();
|
||||
this['category'] = new Category();
|
||||
|
||||
/**
|
||||
* datatype: String
|
||||
* required
|
||||
**/
|
||||
self['name'] = name;
|
||||
this['name'] = name;
|
||||
|
||||
/**
|
||||
* datatype: [String]
|
||||
* required
|
||||
**/
|
||||
self['photoUrls'] = photoUrls;
|
||||
this['photoUrls'] = photoUrls;
|
||||
|
||||
/**
|
||||
* datatype: [Tag]
|
||||
**/
|
||||
self['tags'] = [];
|
||||
this['tags'] = [];
|
||||
|
||||
/**
|
||||
* pet status in the store
|
||||
* datatype: StatusEnum
|
||||
**/
|
||||
self['status'] = null;
|
||||
this['status'] = null;
|
||||
|
||||
};
|
||||
|
||||
self.constructFromObject = function(data) {
|
||||
Pet.prototype.constructFromObject = function(data) {
|
||||
if (!data) {
|
||||
return this;
|
||||
}
|
||||
|
||||
self['id'] = ApiClient.convertToType(data['id'], 'Integer');
|
||||
this['id'] = ApiClient.convertToType(data['id'], 'Integer');
|
||||
|
||||
self['category'].constructFromObject(data['category']);
|
||||
this['category'].constructFromObject(data['category']);
|
||||
|
||||
self['name'] = ApiClient.convertToType(data['name'], 'String');
|
||||
this['name'] = ApiClient.convertToType(data['name'], 'String');
|
||||
|
||||
self['photoUrls'] = ApiClient.convertToType(data['photoUrls'], ['String']);
|
||||
this['photoUrls'] = ApiClient.convertToType(data['photoUrls'], ['String']);
|
||||
|
||||
self['tags'] = ApiClient.convertToType(data['tags'], [Tag]);
|
||||
this['tags'] = ApiClient.convertToType(data['tags'], [Tag]);
|
||||
|
||||
self['status'] = ApiClient.convertToType(data['status'], 'String');
|
||||
this['status'] = ApiClient.convertToType(data['status'], 'String');
|
||||
|
||||
return this;
|
||||
}
|
||||
@ -108,94 +108,93 @@ var StatusEnum = function StatusEnum() {
|
||||
/**
|
||||
* @return {Integer}
|
||||
**/
|
||||
self.getId = function() {
|
||||
return self['id'];
|
||||
Pet.prototype.getId = function() {
|
||||
return this['id'];
|
||||
}
|
||||
|
||||
/**
|
||||
* @param {Integer} id
|
||||
**/
|
||||
self.setId = function(id) {
|
||||
self['id'] = id;
|
||||
Pet.prototype.setId = function(id) {
|
||||
this['id'] = id;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return {Category}
|
||||
**/
|
||||
self.getCategory = function() {
|
||||
return self['category'];
|
||||
Pet.prototype.getCategory = function() {
|
||||
return this['category'];
|
||||
}
|
||||
|
||||
/**
|
||||
* @param {Category} category
|
||||
**/
|
||||
self.setCategory = function(category) {
|
||||
self['category'] = category;
|
||||
Pet.prototype.setCategory = function(category) {
|
||||
this['category'] = category;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return {String}
|
||||
**/
|
||||
self.getName = function() {
|
||||
return self['name'];
|
||||
Pet.prototype.getName = function() {
|
||||
return this['name'];
|
||||
}
|
||||
|
||||
/**
|
||||
* @param {String} name
|
||||
**/
|
||||
self.setName = function(name) {
|
||||
self['name'] = name;
|
||||
Pet.prototype.setName = function(name) {
|
||||
this['name'] = name;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return {[String]}
|
||||
**/
|
||||
self.getPhotoUrls = function() {
|
||||
return self['photoUrls'];
|
||||
Pet.prototype.getPhotoUrls = function() {
|
||||
return this['photoUrls'];
|
||||
}
|
||||
|
||||
/**
|
||||
* @param {[String]} photoUrls
|
||||
**/
|
||||
self.setPhotoUrls = function(photoUrls) {
|
||||
self['photoUrls'] = photoUrls;
|
||||
Pet.prototype.setPhotoUrls = function(photoUrls) {
|
||||
this['photoUrls'] = photoUrls;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return {[Tag]}
|
||||
**/
|
||||
self.getTags = function() {
|
||||
return self['tags'];
|
||||
Pet.prototype.getTags = function() {
|
||||
return this['tags'];
|
||||
}
|
||||
|
||||
/**
|
||||
* @param {[Tag]} tags
|
||||
**/
|
||||
self.setTags = function(tags) {
|
||||
self['tags'] = tags;
|
||||
Pet.prototype.setTags = function(tags) {
|
||||
this['tags'] = tags;
|
||||
}
|
||||
|
||||
/**
|
||||
* get pet status in the store
|
||||
* @return {StatusEnum}
|
||||
**/
|
||||
self.getStatus = function() {
|
||||
return self['status'];
|
||||
Pet.prototype.getStatus = function() {
|
||||
return this['status'];
|
||||
}
|
||||
|
||||
/**
|
||||
* set pet status in the store
|
||||
* @param {StatusEnum} status
|
||||
**/
|
||||
self.setStatus = function(status) {
|
||||
self['status'] = status;
|
||||
Pet.prototype.setStatus = function(status) {
|
||||
this['status'] = status;
|
||||
}
|
||||
|
||||
|
||||
self.toJson = function() {
|
||||
return JSON.stringify(self);
|
||||
Pet.prototype.toJson = function() {
|
||||
return JSON.stringify(this);
|
||||
}
|
||||
};
|
||||
|
||||
if (module) {
|
||||
module.Pet = Pet;
|
||||
|
@ -20,27 +20,27 @@
|
||||
|
||||
|
||||
var Tag = function Tag() {
|
||||
var self = this;
|
||||
|
||||
/**
|
||||
* datatype: Integer
|
||||
**/
|
||||
self['id'] = null;
|
||||
this['id'] = null;
|
||||
|
||||
/**
|
||||
* datatype: String
|
||||
**/
|
||||
self['name'] = null;
|
||||
this['name'] = null;
|
||||
|
||||
};
|
||||
|
||||
self.constructFromObject = function(data) {
|
||||
Tag.prototype.constructFromObject = function(data) {
|
||||
if (!data) {
|
||||
return this;
|
||||
}
|
||||
|
||||
self['id'] = ApiClient.convertToType(data['id'], 'Integer');
|
||||
this['id'] = ApiClient.convertToType(data['id'], 'Integer');
|
||||
|
||||
self['name'] = ApiClient.convertToType(data['name'], 'String');
|
||||
this['name'] = ApiClient.convertToType(data['name'], 'String');
|
||||
|
||||
return this;
|
||||
}
|
||||
@ -49,36 +49,35 @@
|
||||
/**
|
||||
* @return {Integer}
|
||||
**/
|
||||
self.getId = function() {
|
||||
return self['id'];
|
||||
Tag.prototype.getId = function() {
|
||||
return this['id'];
|
||||
}
|
||||
|
||||
/**
|
||||
* @param {Integer} id
|
||||
**/
|
||||
self.setId = function(id) {
|
||||
self['id'] = id;
|
||||
Tag.prototype.setId = function(id) {
|
||||
this['id'] = id;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return {String}
|
||||
**/
|
||||
self.getName = function() {
|
||||
return self['name'];
|
||||
Tag.prototype.getName = function() {
|
||||
return this['name'];
|
||||
}
|
||||
|
||||
/**
|
||||
* @param {String} name
|
||||
**/
|
||||
self.setName = function(name) {
|
||||
self['name'] = name;
|
||||
Tag.prototype.setName = function(name) {
|
||||
this['name'] = name;
|
||||
}
|
||||
|
||||
|
||||
self.toJson = function() {
|
||||
return JSON.stringify(self);
|
||||
Tag.prototype.toJson = function() {
|
||||
return JSON.stringify(this);
|
||||
}
|
||||
};
|
||||
|
||||
if (module) {
|
||||
module.Tag = Tag;
|
||||
|
@ -20,70 +20,70 @@
|
||||
|
||||
|
||||
var User = function User() {
|
||||
var self = this;
|
||||
|
||||
/**
|
||||
* datatype: Integer
|
||||
**/
|
||||
self['id'] = null;
|
||||
this['id'] = null;
|
||||
|
||||
/**
|
||||
* datatype: String
|
||||
**/
|
||||
self['username'] = null;
|
||||
this['username'] = null;
|
||||
|
||||
/**
|
||||
* datatype: String
|
||||
**/
|
||||
self['firstName'] = null;
|
||||
this['firstName'] = null;
|
||||
|
||||
/**
|
||||
* datatype: String
|
||||
**/
|
||||
self['lastName'] = null;
|
||||
this['lastName'] = null;
|
||||
|
||||
/**
|
||||
* datatype: String
|
||||
**/
|
||||
self['email'] = null;
|
||||
this['email'] = null;
|
||||
|
||||
/**
|
||||
* datatype: String
|
||||
**/
|
||||
self['password'] = null;
|
||||
this['password'] = null;
|
||||
|
||||
/**
|
||||
* datatype: String
|
||||
**/
|
||||
self['phone'] = null;
|
||||
this['phone'] = null;
|
||||
|
||||
/**
|
||||
* User Status
|
||||
* datatype: Integer
|
||||
**/
|
||||
self['userStatus'] = null;
|
||||
this['userStatus'] = null;
|
||||
|
||||
};
|
||||
|
||||
self.constructFromObject = function(data) {
|
||||
User.prototype.constructFromObject = function(data) {
|
||||
if (!data) {
|
||||
return this;
|
||||
}
|
||||
|
||||
self['id'] = ApiClient.convertToType(data['id'], 'Integer');
|
||||
this['id'] = ApiClient.convertToType(data['id'], 'Integer');
|
||||
|
||||
self['username'] = ApiClient.convertToType(data['username'], 'String');
|
||||
this['username'] = ApiClient.convertToType(data['username'], 'String');
|
||||
|
||||
self['firstName'] = ApiClient.convertToType(data['firstName'], 'String');
|
||||
this['firstName'] = ApiClient.convertToType(data['firstName'], 'String');
|
||||
|
||||
self['lastName'] = ApiClient.convertToType(data['lastName'], 'String');
|
||||
this['lastName'] = ApiClient.convertToType(data['lastName'], 'String');
|
||||
|
||||
self['email'] = ApiClient.convertToType(data['email'], 'String');
|
||||
this['email'] = ApiClient.convertToType(data['email'], 'String');
|
||||
|
||||
self['password'] = ApiClient.convertToType(data['password'], 'String');
|
||||
this['password'] = ApiClient.convertToType(data['password'], 'String');
|
||||
|
||||
self['phone'] = ApiClient.convertToType(data['phone'], 'String');
|
||||
this['phone'] = ApiClient.convertToType(data['phone'], 'String');
|
||||
|
||||
self['userStatus'] = ApiClient.convertToType(data['userStatus'], 'Integer');
|
||||
this['userStatus'] = ApiClient.convertToType(data['userStatus'], 'Integer');
|
||||
|
||||
return this;
|
||||
}
|
||||
@ -92,122 +92,121 @@
|
||||
/**
|
||||
* @return {Integer}
|
||||
**/
|
||||
self.getId = function() {
|
||||
return self['id'];
|
||||
User.prototype.getId = function() {
|
||||
return this['id'];
|
||||
}
|
||||
|
||||
/**
|
||||
* @param {Integer} id
|
||||
**/
|
||||
self.setId = function(id) {
|
||||
self['id'] = id;
|
||||
User.prototype.setId = function(id) {
|
||||
this['id'] = id;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return {String}
|
||||
**/
|
||||
self.getUsername = function() {
|
||||
return self['username'];
|
||||
User.prototype.getUsername = function() {
|
||||
return this['username'];
|
||||
}
|
||||
|
||||
/**
|
||||
* @param {String} username
|
||||
**/
|
||||
self.setUsername = function(username) {
|
||||
self['username'] = username;
|
||||
User.prototype.setUsername = function(username) {
|
||||
this['username'] = username;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return {String}
|
||||
**/
|
||||
self.getFirstName = function() {
|
||||
return self['firstName'];
|
||||
User.prototype.getFirstName = function() {
|
||||
return this['firstName'];
|
||||
}
|
||||
|
||||
/**
|
||||
* @param {String} firstName
|
||||
**/
|
||||
self.setFirstName = function(firstName) {
|
||||
self['firstName'] = firstName;
|
||||
User.prototype.setFirstName = function(firstName) {
|
||||
this['firstName'] = firstName;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return {String}
|
||||
**/
|
||||
self.getLastName = function() {
|
||||
return self['lastName'];
|
||||
User.prototype.getLastName = function() {
|
||||
return this['lastName'];
|
||||
}
|
||||
|
||||
/**
|
||||
* @param {String} lastName
|
||||
**/
|
||||
self.setLastName = function(lastName) {
|
||||
self['lastName'] = lastName;
|
||||
User.prototype.setLastName = function(lastName) {
|
||||
this['lastName'] = lastName;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return {String}
|
||||
**/
|
||||
self.getEmail = function() {
|
||||
return self['email'];
|
||||
User.prototype.getEmail = function() {
|
||||
return this['email'];
|
||||
}
|
||||
|
||||
/**
|
||||
* @param {String} email
|
||||
**/
|
||||
self.setEmail = function(email) {
|
||||
self['email'] = email;
|
||||
User.prototype.setEmail = function(email) {
|
||||
this['email'] = email;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return {String}
|
||||
**/
|
||||
self.getPassword = function() {
|
||||
return self['password'];
|
||||
User.prototype.getPassword = function() {
|
||||
return this['password'];
|
||||
}
|
||||
|
||||
/**
|
||||
* @param {String} password
|
||||
**/
|
||||
self.setPassword = function(password) {
|
||||
self['password'] = password;
|
||||
User.prototype.setPassword = function(password) {
|
||||
this['password'] = password;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return {String}
|
||||
**/
|
||||
self.getPhone = function() {
|
||||
return self['phone'];
|
||||
User.prototype.getPhone = function() {
|
||||
return this['phone'];
|
||||
}
|
||||
|
||||
/**
|
||||
* @param {String} phone
|
||||
**/
|
||||
self.setPhone = function(phone) {
|
||||
self['phone'] = phone;
|
||||
User.prototype.setPhone = function(phone) {
|
||||
this['phone'] = phone;
|
||||
}
|
||||
|
||||
/**
|
||||
* get User Status
|
||||
* @return {Integer}
|
||||
**/
|
||||
self.getUserStatus = function() {
|
||||
return self['userStatus'];
|
||||
User.prototype.getUserStatus = function() {
|
||||
return this['userStatus'];
|
||||
}
|
||||
|
||||
/**
|
||||
* set User Status
|
||||
* @param {Integer} userStatus
|
||||
**/
|
||||
self.setUserStatus = function(userStatus) {
|
||||
self['userStatus'] = userStatus;
|
||||
User.prototype.setUserStatus = function(userStatus) {
|
||||
this['userStatus'] = userStatus;
|
||||
}
|
||||
|
||||
|
||||
self.toJson = function() {
|
||||
return JSON.stringify(self);
|
||||
User.prototype.toJson = function() {
|
||||
return JSON.stringify(this);
|
||||
}
|
||||
};
|
||||
|
||||
if (module) {
|
||||
module.User = User;
|
||||
|
Loading…
x
Reference in New Issue
Block a user