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