bmw-js
Version:
BMW javascript REST client for the BMW i3 hackathon.
52 lines (38 loc) • 1.45 kB
JavaScript
// Generated by CoffeeScript 1.8.0
(function() {
var MojioModel, Subscription,
__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 = Subscription = (function(_super) {
__extends(Subscription, _super);
Subscription.prototype._schema = {
"Type": "Integer",
"ChannelType": "Integer",
"ChannelTarget": "String",
"AppId": "String",
"OwnerId": "String",
"Event": "Integer",
"EntityType": "Integer",
"EntityId": "String",
"Interval": "Integer",
"LastMessage": "String",
"_id": "String",
"_deleted": "Boolean"
};
Subscription.prototype._resource = 'Subscriptions';
Subscription.prototype._model = 'Subscription';
function Subscription(json) {
Subscription.__super__.constructor.call(this, json);
}
Subscription._resource = 'Subscriptions';
Subscription._model = 'Subscription';
Subscription.resource = function() {
return Subscription._resource;
};
Subscription.model = function() {
return Subscription._model;
};
return Subscription;
})(MojioModel);
}).call(this);