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