// Path: lib/src/main/java/com/github/niqdev/openwebnet/OpenWebNet.java
// public static OpenGateway defaultGateway(String host) {
//     return gateway(host, OpenGateway.DEFAULT_PORT);
// }
// 
// Path: lib/src/main/java/com/github/niqdev/openwebnet/OpenWebNet.java
// public static OpenGateway gateway(final String host, final int port, final String password) {
//     return new OpenGateway() {
// 
//         @Override
//         public String getHost() {
//             return host;
//         }
// 
//         @Override
//         public int getPort() {
//             return port;
//         }
// 
//         @Override
//         public String getPassword() {
//             return password;
//         }
//     };
// }


import com.github.niqdev.openwebnet.message.*;
import rx.schedulers.Schedulers;
import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;
import static com.github.niqdev.openwebnet.OpenWebNet.defaultGateway;
import static com.github.niqdev.openwebnet.OpenWebNet.gateway;
import static java.util.Arrays.asList;
package com.github.niqdev.openwebnet;




/**
 * ./gradlew runOpenWebNetExample
 */
public class OpenWebNetExample {

    private static final String LOCALHOST = "localhost";
    private static final String LOCALHOST_ANDROID = "10.0.2.2";
    private static final String HOST = "192.168.1.41";
    private static final String HOST_DOMAIN = "vpn.home.it";
    private static final String HOST_PWD = "192.168.1.35";
    private static final String HOST_HTTP = "http://192.168.1.41";
    private static final String PASSWORD = "12345";
    private static final int PORT = 20000;

    private static final ExecutorService executor = Executors.newSingleThreadExecutor();

    public static void main(String[] args) {
        //example1();
        //example2();
        //exampleLightStatus();
        //exampleLightTurnOn();
        //exampleHeating();
        //exampleSoundSystem();
        //exampleSoundSystemStatus();
        //exampleScenario();
        //exampleScenarioStatus();
        //exampleEnergy();
        //exampleSoundSystemVolume();
        //exampleSoundSystemStation();
    }

    private static void example1() {
        OpenWebNet
// Path: lib/src/main/java/com/github/niqdev/openwebnet/OpenWebNet.java
// public static OpenGateway defaultGateway(String host) {
//     return gateway(host, OpenGateway.DEFAULT_PORT);
// }
// 
// Path: lib/src/main/java/com/github/niqdev/openwebnet/OpenWebNet.java
// public static OpenGateway gateway(final String host, final int port, final String password) {
//     return new OpenGateway() {
// 
//         @Override
//         public String getHost() {
//             return host;
//         }
// 
//         @Override
//         public int getPort() {
//             return port;
//         }
// 
//         @Override
//         public String getPassword() {
//             return password;
//         }
//     };
// }


// Path: example/src/main/java/com/github/niqdev/openwebnet/OpenWebNetExample.java
import com.github.niqdev.openwebnet.message.*;
import rx.schedulers.Schedulers;
import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;
import static com.github.niqdev.openwebnet.OpenWebNet.defaultGateway;
import static com.github.niqdev.openwebnet.OpenWebNet.gateway;
import static java.util.Arrays.asList;

package com.github.niqdev.openwebnet;




/**
 * ./gradlew runOpenWebNetExample
 */
public class OpenWebNetExample {

    private static final String LOCALHOST = "localhost";
    private static final String LOCALHOST_ANDROID = "10.0.2.2";
    private static final String HOST = "192.168.1.41";
    private static final String HOST_DOMAIN = "vpn.home.it";
    private static final String HOST_PWD = "192.168.1.35";
    private static final String HOST_HTTP = "http://192.168.1.41";
    private static final String PASSWORD = "12345";
    private static final int PORT = 20000;

    private static final ExecutorService executor = Executors.newSingleThreadExecutor();

    public static void main(String[] args) {
        //example1();
        //example2();
        //exampleLightStatus();
        //exampleLightTurnOn();
        //exampleHeating();
        //exampleSoundSystem();
        //exampleSoundSystemStatus();
        //exampleScenario();
        //exampleScenarioStatus();
        //exampleEnergy();
        //exampleSoundSystemVolume();
        //exampleSoundSystemStation();
    }

    private static void example1() {
        OpenWebNet
            .newClient(defaultGateway(LOCALHOST))