]> git.basschouten.com Git - openhab-addons.git/blob
9024b8c1346010258de77e9aa0483bed0a545f4a
[openhab-addons.git] /
1 /**
2  * Copyright (c) 2010-2024 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.volumio.internal.mapping;
14
15 import org.eclipse.jdt.annotation.NonNullByDefault;
16
17 /**
18  * @see <a href="https://github.com/volumio/Volumio2-UI/blob/master/src/app/services/player.service.js">
19  *      https://github.com/volumio/Volumio2-UI/blob/master/src/app/services/player.service.js</a>
20  * @see <a href="https://github.com/volumio/Volumio2/blob/master/app/plugins/user_interface/websocket/index.js">
21  *      https://github.com/volumio/Volumio2/blob/master/app/plugins/user_interface/websocket/index.js</a>
22  *
23  * @author Patrick Sernetz - Initial Contribution
24  * @author Chris Wohlbrecht - Adaption for openHAB 3
25  * @author Michael Loercher - Adaption for openHAB 3
26  *
27  */
28 @NonNullByDefault
29 public class VolumioCommands {
30
31     /* Player Status */
32
33     public static final String GET_STATE = "get-state";
34
35     /* Player Controls */
36
37     public static final String PLAY = "play";
38
39     public static final String PAUSE = "pause";
40
41     public static final String STOP = "stop";
42
43     public static final String PREVIOUS = "prev";
44
45     public static final String NEXT = "next";
46
47     public static final String SEEK = "seek";
48
49     public static final String RANDOM = "set-random";
50
51     public static final String REPEAT = "set-repeat";
52
53     /* Search */
54
55     public static final String SEARCH = "search";
56
57     /* Volume */
58
59     public static final String VOLUME = "volume";
60
61     public static final String MUTE = "mute";
62
63     public static final String UNMUTE = "unmute";
64
65     /* MultiRoom */
66
67     public static final String GET_MULTIROOM_DEVICES = "get-multi-room-devices";
68
69     /* Queue */
70
71     /**
72      * Replace the complete queue and play add/play the delivered entry.
73      */
74     public static final String REPLACE_AND_PLAY = "replace-and-play";
75
76     public static final String ADD_PLAY = "addPlay";
77
78     public static final String CLEAR_QUEUE = "clear-queue";
79
80     /* ... */
81     public static final String SHUTDOWN = "shutdown";
82
83     public static final String REBOOT = "reboot";
84
85     public static final String PLAY_PLAYLIST = "play-playlist";
86
87     public static final String PLAY_FAVOURITES = "play-favourites";
88
89     public static final String PLAY_RADIO_FAVOURITES = "play-radio-favourites";
90 }