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

Memberitems type specific #131

Merged
merged 3 commits into from
Feb 19, 2023

Conversation

querdenker2k
Copy link
Collaborator

returning set of memberItems should be type specific
to do something like this

JRuleItems.G_Presence_Outside_Camera.memberItems()
                .forEach(i -> i.sendCommand(JRuleOnOffValue.OFF)
        );

and not this

JRuleItems.G_Presence_Outside_Camera.memberItems()
                .stream().map(i -> (JRuleSwitchItem) i)
                .forEach(i -> i.sendCommand(JRuleOnOffValue.OFF)
        );

@seime seime merged commit 87d0a4d into seaside1:main Feb 19, 2023
@querdenker2k querdenker2k deleted the memberitems_type_specific branch February 19, 2023 20:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants