]> git.basschouten.com Git - openhab-addons.git/blob
acd8a776007f366f3b30dfd4a0e2e332d404d3de
[openhab-addons.git] /
1 /**
2  * Copyright (c) 2010-2023 Contributors to the openHAB project
3  *
4  * See the NOTICE file(s) distributed with this work for additional
5  * information.
6  *
7  * This program and the accompanying materials are made available under the
8  * terms of the Eclipse Public License 2.0 which is available at
9  * http://www.eclipse.org/legal/epl-2.0
10  *
11  * SPDX-License-Identifier: EPL-2.0
12  */
13 package org.openhab.binding.androiddebugbridge.internal;
14
15 import org.eclipse.jdt.annotation.NonNullByDefault;
16 import org.eclipse.jdt.annotation.Nullable;
17
18 /**
19  * The {@link AndroidDebugBridgeConfiguration} class contains fields mapping thing configuration parameters.
20  *
21  * @author Miguel Álvarez - Initial contribution
22  */
23 @NonNullByDefault
24 public class AndroidDebugBridgeConfiguration {
25     /**
26      * The IP address to use for connecting to the Android device.
27      */
28     public String ip = "";
29     /**
30      * Sample configuration parameter. Replace with your own.
31      */
32     public int port;
33     /**
34      * Time for scheduled state check.
35      */
36     public int refreshTime = 30;
37     /**
38      * Command timeout seconds.
39      */
40     public int timeout = 5;
41     /**
42      * Record input duration in seconds.
43      */
44     public int recordDuration = 5;
45     /**
46      * Assumed max volume for devices with android versions that do not expose this value (>=android 11).
47      */
48     public int deviceMaxVolume = 25;
49     /**
50      * Settings key for android versions where volume is gather using settings command (>=android 11).
51      */
52     public String volumeSettingKey = "volume_music_hdmi";
53     /**
54      * Configure media state detection behavior by package
55      */
56     public @Nullable String mediaStateJSONConfig;
57 }