UNPKG

bmw-js

Version:

BMW javascript REST client for the BMW i3 hackathon.

48 lines (34 loc) 1.2 kB
// Generated by CoffeeScript 1.8.0 (function() { var Mojio, 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 = Mojio = (function(_super) { __extends(Mojio, _super); Mojio.prototype._schema = { "Type": "String", "OwnerId": "String", "Name": "String", "Imei": "String", "LastContactTime": "String", "VehicleId": "String", "_id": "String", "_deleted": "Boolean" }; Mojio.prototype._resource = 'Mojios'; Mojio.prototype._model = 'Mojio'; function Mojio(json) { Mojio.__super__.constructor.call(this, json); } Mojio._resource = 'Mojios'; Mojio._model = 'Mojio'; Mojio.resource = function() { return Mojio._resource; }; Mojio.model = function() { return Mojio._model; }; return Mojio; })(MojioModel); }).call(this);