bmw-js
Version:
BMW javascript REST client for the BMW i3 hackathon.
49 lines (35 loc) • 1.2 kB
JavaScript
// Generated by CoffeeScript 1.8.0
(function() {
var App, MojioModel,
__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 = App = (function(_super) {
__extends(App, _super);
App.prototype._schema = {
"Type": "String",
"Name": "String",
"Description": "String",
"CreationDate": "String",
"Downloads": "Integer",
"RedirectUris": "String",
"ApplicationType": "String",
"_id": "String",
"_deleted": "Boolean"
};
App.prototype._resource = 'Apps';
App.prototype._model = 'App';
function App(json) {
App.__super__.constructor.call(this, json);
}
App._resource = 'Apps';
App._model = 'App';
App.resource = function() {
return App._resource;
};
App.model = function() {
return App._model;
};
return App;
})(MojioModel);
}).call(this);