UNPKG

bmw-js

Version:

BMW javascript REST client for the BMW i3 hackathon.

66 lines (52 loc) 1.74 kB
// Generated by CoffeeScript 1.8.0 (function() { var MojioModel, Trip, __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 = Trip = (function(_super) { __extends(Trip, _super); Trip.prototype._schema = { "Type": "String", "MojioId": "String", "VehicleId": "String", "StartTime": "String", "LastUpdatedTime": "String", "EndTime": "String", "MaxSpeed": "Float", "MaxAcceleration": "Float", "MaxDeceleration": "Float", "MaxRPM": "Integer", "FuelLevel": "Float", "FuelEfficiency": "Float", "Distance": "Float", "MovingTime": "Float", "IdleTime": "Float", "StopTime": "Float", "StartLocation": "Object", "LastKnownLocation": "Object", "EndLocation": "Object", "StartAddress": "Object", "EndAddress": "Object", "ForcefullyEnded": "Boolean", "StartMilage": "Float", "EndMilage": "Float", "_id": "String", "_deleted": "Boolean" }; Trip.prototype._resource = 'Trips'; Trip.prototype._model = 'Trip'; function Trip(json) { Trip.__super__.constructor.call(this, json); } Trip._resource = 'Trips'; Trip._model = 'Trip'; Trip.resource = function() { return Trip._resource; }; Trip.model = function() { return Trip._model; }; return Trip; })(MojioModel); }).call(this);