]> git.basschouten.com Git - openhab-addons.git/blob
b2154ea3bcc7fc4b1db2e4dfb99085bc0c441d0f
[openhab-addons.git] /
1 /**
2  * Copyright (c) 2010-2022 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.oppo.internal.communication;
14
15 import java.util.HashMap;
16 import java.util.Map;
17
18 import org.eclipse.jdt.annotation.NonNullByDefault;
19
20 /**
21  * Provides mapping of various Oppo query status codes to the corresponding set codes
22  *
23  * @author Michael Lobstein - Initial contribution
24  */
25
26 @NonNullByDefault
27 public class OppoStatusCodes {
28     // map to lookup random mode
29     public static final Map<String, String> REPEAT_MODE = new HashMap<>();
30     static {
31         REPEAT_MODE.put("00", "OFF");
32         REPEAT_MODE.put("01", "ONE"); // maybe?"
33         REPEAT_MODE.put("02", "CH");
34         REPEAT_MODE.put("03", "ALL");
35         REPEAT_MODE.put("04", "TT");
36         REPEAT_MODE.put("05", "SHF");
37         REPEAT_MODE.put("06", "RND");
38     }
39
40     // map to lookup zoom mode
41     public static final Map<String, String> ZOOM_MODE = new HashMap<>();
42     static {
43         ZOOM_MODE.put("00", "1"); // Off (zoom 1x)
44         ZOOM_MODE.put("01", "AR"); // Stretch
45         ZOOM_MODE.put("02", "FS"); // Full screen
46         ZOOM_MODE.put("03", "US"); // Underscan
47         ZOOM_MODE.put("04", "1.2");
48         ZOOM_MODE.put("05", "1.3");
49         ZOOM_MODE.put("06", "1.5");
50         ZOOM_MODE.put("07", "2");
51         ZOOM_MODE.put("08", "3");
52         ZOOM_MODE.put("09", "4");
53         ZOOM_MODE.put("10", "1/2");
54         ZOOM_MODE.put("11", "1/3");
55         ZOOM_MODE.put("12", "1/4");
56     }
57 }