]> git.basschouten.com Git - openhab-addons.git/blob
a3c316cffdef6f6addb0b6a520691935ca35a09e
[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.heos.internal.json.dto;
14
15 import org.eclipse.jdt.annotation.NonNullByDefault;
16
17 /**
18  * Enum to reference the attributes of the HEOS response
19  *
20  * @author Martin van Wingerden - Initial contribution
21  */
22 @NonNullByDefault
23 public enum HeosCommunicationAttribute {
24     COMMAND_UNDER_PROCESS("command under process"),
25     COUNT("count"),
26     CURRENT_POSITION("cur_pos"),
27     DURATION("duration"),
28     ERROR_ID("eid"),
29     GROUP_ID("gid"),
30     LEVEL("level"),
31     MUTE("mute"),
32     PLAYER_ID("pid"),
33     REPEAT("repeat"),
34     RETURNED("returned"),
35     SHUFFLE("shuffle"),
36     SIGNED_IN("signed_in"),
37     SOURCE_ID("sid"),
38     STATE("state"),
39     SYSTEM_ERROR_NUMBER("syserrno"),
40     USERNAME("un"),
41     ERROR("error"),
42     TEXT("text");
43
44     private final String label;
45
46     HeosCommunicationAttribute(String label) {
47         this.label = label;
48     }
49
50     public String getLabel() {
51         return label;
52     }
53 }