2 * Copyright (c) 2010-2022 Contributors to the openHAB project
4 * See the NOTICE file(s) distributed with this work for additional
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
11 * SPDX-License-Identifier: EPL-2.0
13 package org.openhab.binding.oppo.internal.communication;
15 import java.util.HashMap;
18 import org.eclipse.jdt.annotation.NonNullByDefault;
21 * Provides mapping of various Oppo query status codes to the corresponding set codes
23 * @author Michael Lobstein - Initial contribution
27 public class OppoStatusCodes {
28 // map to lookup random mode
29 public static final Map<String, String> REPEAT_MODE = new HashMap<>();
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");
40 // map to lookup zoom mode
41 public static final Map<String, String> ZOOM_MODE = new HashMap<>();
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");