bmw-js
Version:
BMW javascript REST client for the BMW i3 hackathon.
37 lines (28 loc) • 937 B
text/coffeescript
MojioModel = require('./MojioModel')
module.exports = class Subscription extends MojioModel
# instance variables
_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"
}
_resource: 'Subscriptions'
_model: 'Subscription'
constructor: (json) ->
super(json)
# class variables and functions
@_resource: 'Subscriptions'
@_model: 'Subscription'
@resource: () ->
return Subscription._resource
@model: () ->
return Subscription._model