All Downloads are FREE. Search and download functionalities are using the official Maven repository.

net.yudichev.jiotty.appliance.Appliance Maven / Gradle / Ivy

package net.yudichev.jiotty.appliance;

import net.yudichev.jiotty.common.lang.HasName;

import java.util.Set;
import java.util.concurrent.CompletableFuture;

public interface Appliance extends HasName {
    CompletableFuture execute(Command command);

    Set getAllSupportedCommands();

    default CompletableFuture turnOn() {
        return execute(PowerCommand.ON);
    }

    default CompletableFuture turnOff() {
        return execute(PowerCommand.OFF);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy