We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add actions to notifications (responses), like buttons/inputs.
Draft:
const Joi = require("joi"); module.exports = class Action { constructor(options, cb) { this.options = Object.assign({ }, options); Object.defineProperty(this, "callback", { value: cb, enumerable: false, configurable: false, writable: false }); } static schema() { return Joi.object({ title: Joi.string().required(), type: Joi.string().valid("boolean", "string", "number"), display: Joi.string().valid("input", "button") }); } static validate(data) { return Action.schema().validate(data); } apply(value) { this.callback(value); } };
Comparable to gotify actions: https://gotify.net/docs/msgextras#androidaction
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Add actions to notifications (responses), like buttons/inputs.
Draft:
Comparable to gotify actions: https://gotify.net/docs/msgextras#androidaction
The text was updated successfully, but these errors were encountered: