Skip to content
New issue

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

Specify requisite identifiers on plugins #27

Open
joel99 opened this issue Mar 16, 2018 · 0 comments
Open

Specify requisite identifiers on plugins #27

joel99 opened this issue Mar 16, 2018 · 0 comments
Labels
enhancement New feature or request

Comments

@joel99
Copy link
Contributor

joel99 commented Mar 16, 2018

Plugins that use individual identifiers (e.g. email, sms) should specify so with a target() function and a needs attribute that specifies which identifier they want (e.g. email addresses, phone numbers) as a string. target will take an array of needed identifiers provided by the server and adjust plugin config accordingly. When sendMessage is called on the plugin, it should check if config has target info, and dispatch notification to all targets, otherwise have default behavior. Fail appropriately if target is called with invalid values.

Part of #13 epic.

@joel99 joel99 added the enhancement New feature or request label Mar 16, 2018
@joel99 joel99 self-assigned this Mar 16, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant