The frontend/UI server, written in JS using the MarkoJS library
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.

16 lines
405 B

  1. const {query} = require("../client")
  2. class Channel {
  3. constructor(name, logged, hub, eventName, locationName) {
  4. this.name = name
  5. this.logged = logged
  6. this.hub = hub
  7. this.eventName = eventName
  8. this.locationName = locationName
  9. }
  10. static fromData(data) {
  11. return new Channel(data.name, data.logged, data.hub, data.eventName, data.locationName)
  12. }
  13. }
  14. module.exports = { Channel }