bmw-js
Version:
BMW javascript REST client for the BMW i3 hackathon.
53 lines (39 loc) • 1.33 kB
JavaScript
// Generated by CoffeeScript 1.8.0
(function() {
var MojioModel, User,
__hasProp = {}.hasOwnProperty,
__extends = function(child, parent) { for (var key in parent) { if (__hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return child; };
MojioModel = require('./MojioModel');
module.exports = User = (function(_super) {
__extends(User, _super);
User.prototype._schema = {
"Type": "String",
"Name": "String",
"UserName": "String",
"FirstName": "String",
"LastName": "String",
"Email": "String",
"UserCount": "Integer",
"Credits": "Integer",
"CreationDate": "String",
"LastActivityDate": "String",
"LastLoginDate": "String",
"_id": "String",
"_deleted": "Boolean"
};
User.prototype._resource = 'Users';
User.prototype._model = 'User';
function User(json) {
User.__super__.constructor.call(this, json);
}
User._resource = 'Users';
User._model = 'User';
User.resource = function() {
return User._resource;
};
User.model = function() {
return User._model;
};
return User;
})(MojioModel);
}).call(this);