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

Make interface WarningTypeCommandDescriptionProvider and related enums API #405

Conversation

hsudbrock
Copy link
Contributor

@hsudbrock hsudbrock commented Mar 8, 2019

Currently, the interface WarningTypeCommandDescriptionProvider is not exported. The interface should, however, be exported, because it is intended to be implemented by providers that might be in other bundles.

For this reason, I have moved the interface to the subpackage warningdevice of the non-internal converter package. Likewise, I have added related enums into the exported subpackage, as they can be used to create warning type command options in a type-safe way.

Currently, this interface is not exported. It should be imported,
because it is intended to be implemented by providers in other bundles.

Signed-off-by: Henning Sudbrock <henning.sudbrock@telekom.de>
@hsudbrock hsudbrock requested a review from cdjackson March 8, 2019 08:57
@hsudbrock hsudbrock added the bug label Mar 8, 2019
The reason for making those API is to allow implementors of
WarningTypeCommandDescriptionProviders to use them to construct warning
types in a type-safe way.

Signed-off-by: Henning Sudbrock <henning.sudbrock@telekom.de>
@hsudbrock hsudbrock changed the title Make interface WarningTypeCommandDescriptionProvider API Make interface WarningTypeCommandDescriptionProvider and related enums API Mar 8, 2019
Copy link
Contributor

@cdjackson cdjackson left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@cdjackson cdjackson merged commit a28fcaf into openhab:master Mar 10, 2019
@hsudbrock
Copy link
Contributor Author

Thanks Chris!

@hsudbrock hsudbrock deleted the make-warningtypecommanddescriptionprovider-api branch March 11, 2019 08:15
@cdjackson cdjackson added this to the 2.5 milestone Dec 8, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants