io.github.zeroone3010.yahueapi.v2.SwitchImpl Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of yetanotherhueapi Show documentation
Show all versions of yetanotherhueapi Show documentation
A library for controlling Philips Hue lights.
The newest version!
package io.github.zeroone3010.yahueapi.v2;
import java.util.Map;
import java.util.Optional;
import java.util.UUID;
public class SwitchImpl implements Switch {
private final UUID id;
private final Map buttons;
private final String name;
public SwitchImpl(final UUID id, final Map buttons, final String name) {
this.id = id;
this.buttons = buttons;
this.name = name;
}
@Override
public UUID getId() {
return id;
}
@Override
public Map getButtons() {
return buttons;
}
@Override
public String getName() {
return name;
}
@Override
public Optional