]> git.basschouten.com Git - openhab-addons.git/blob
9e64d7a6d71cb60aa223035c3da1edd609f535d3
[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      * Percent to increase/decrease volume.
47      */
48     public int volumeStepPercent = 15;
49     /**
50      * Assumed max volume for devices with android versions that do not expose this value (>=android 11).
51      */
52     public int deviceMaxVolume = 25;
53     /**
54      * Max ADB command consecutive timeouts to force to reset the connection. (0 for disabled)
55      */
56     public int maxADBTimeouts;
57     /**
58      * Settings key for android versions where volume is gather using settings command (>=android 11).
59      */
60     public String volumeSettingKey = "volume_music_hdmi";
61     /**
62      * Configure media state detection behavior by package
63      */
64     public @Nullable String mediaStateJSONConfig;
65 }