]> git.basschouten.com Git - openhab-addons.git/blob
7de74361fd18695a0ae44c4e5145aff6d3708aef
[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.bosesoundtouch.internal;
14
15 import org.eclipse.jdt.annotation.NonNullByDefault;
16
17 /**
18  * The {@link APIRequest} class handles the API requests
19  *
20  * @author Thomas Traunbauer - Initial contribution
21  */
22
23 @NonNullByDefault
24 public enum APIRequest {
25     KEY("key"),
26     SELECT("select"),
27     SOURCES("sources"),
28     BASSCAPABILITIES("bassCapabilities"),
29     BASS("bass"),
30     GET_ZONE("getZone"),
31     SET_ZONE("setZone"),
32     ADD_ZONE_SLAVE("addZoneSlave"),
33     REMOVE_ZONE_SLAVE("removeZoneSlave"),
34     NOW_PLAYING("now_playing"),
35     TRACK_INFO("trackInfo"),
36     VOLUME("volume"),
37     PRESETS("presets"),
38     INFO("info"),
39     NAME("name"),
40     GET_GROUP("getGroup");
41
42     private String name;
43
44     private APIRequest(String name) {
45         this.name = name;
46     }
47
48     @Override
49     public String toString() {
50         return name;
51     }
52 }