You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
513 B
JavaScript
23 lines
513 B
JavaScript
const MessageManager = require("../MessageManager")
|
|
const PagerDevice = require("./Device")
|
|
const Str = require('@supercharge/strings')
|
|
|
|
class GenericPager extends PagerDevice {
|
|
constructor () {
|
|
super()
|
|
this.duplex = false
|
|
this.name = "generic"
|
|
}
|
|
RandID() {
|
|
return `G${ Str.random(8) }`
|
|
}
|
|
async formatTX(msg) {
|
|
msg.id = this.RandID()
|
|
await MessageManager.BindMsg(msg)
|
|
msg._routerData = {
|
|
duplexCapable: false,
|
|
}
|
|
// return msg
|
|
}
|
|
}
|
|
module.exports = GenericPager |