bmw-js
Version:
BMW javascript REST client for the BMW i3 hackathon.
45 lines (31 loc) • 1.17 kB
JavaScript
// Generated by CoffeeScript 1.8.0
(function() {
var Location, 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 = Location = (function(_super) {
__extends(Location, _super);
Location.prototype._schema = {
"Lat": "Float",
"Lng": "Float",
"FromLockedGPS": "Boolean",
"Dilution": "Float",
"IsValid": "Boolean"
};
Location.prototype._resource = 'Locations';
Location.prototype._model = 'Location';
function Location(json) {
Location.__super__.constructor.call(this, json);
}
Location._resource = 'Locations';
Location._model = 'Location';
Location.resource = function() {
return Location._resource;
};
Location.model = function() {
return Location._model;
};
return Location;
})(MojioModel);
}).call(this);