You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
17 lines
405 B
17 lines
405 B
const {query} = require("../client")
|
|
|
|
class Channel {
|
|
constructor(name, logged, hub, eventName, locationName) {
|
|
this.name = name
|
|
this.logged = logged
|
|
this.hub = hub
|
|
this.eventName = eventName
|
|
this.locationName = locationName
|
|
}
|
|
|
|
static fromData(data) {
|
|
return new Channel(data.name, data.logged, data.hub, data.eventName, data.locationName)
|
|
}
|
|
}
|
|
|
|
module.exports = { Channel }
|