]> git.basschouten.com Git - openhab-addons.git/blob
83128af3826ddbcdbd6db525153194be6fdcd00c
[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 for the HEOS commands
19  *
20  * @author Martin van Wingerden - Initial contribution
21  */
22 @NonNullByDefault
23 public enum HeosCommand {
24     BROWSE,
25     CHECK_ACCOUNT,
26     CHECK_UPDATE,
27     CLEAR_QUEUE,
28     DELETE_PLAYLIST,
29     GET_GROUPS,
30     GET_GROUP_INFO,
31     GET_MUSIC_SOURCES,
32     GET_NOW_PLAYING_MEDIA,
33     GET_PLAYERS,
34     GET_PLAYER_INFO,
35     GET_PLAY_MODE,
36     GET_PLAY_STATE,
37     GET_SEARCH_CRITERIA,
38     GET_SOURCE_INFO,
39     GET_VOLUME,
40     HEART_BEAT,
41     PLAY_INPUT,
42     PLAY_NEXT,
43     PLAY_PRESET,
44     PLAY_PREVIOUS,
45
46     ADD_TO_QUEUE,
47     GET_QUEUE,
48     MOVE_QUEUE_ITEM,
49     PLAY_QUEUE,
50     SAVE_QUEUE,
51
52     GET_QUICKSELECTS,
53     PLAY_QUICKSELECT,
54     SET_QUICKSELECT,
55
56     PLAY_STREAM,
57     PRETTIFY_JSON_RESPONSE,
58     REGISTER_FOR_CHANGE_EVENTS,
59     REMOVE_FROM_QUEUE,
60     RENAME_PLAYLIST,
61     RETRIEVE_METADATA,
62     SEARCH,
63     SET_GROUP,
64
65     SET_MUTE,
66     GET_MUTE,
67     TOGGLE_MUTE,
68
69     SET_PLAY_MODE,
70     SET_PLAY_STATE,
71     SIGN_IN,
72     SIGN_OUT,
73
74     SET_VOLUME,
75     VOLUME_DOWN,
76     VOLUME_UP;
77
78     @Override
79     public String toString() {
80         return name().toLowerCase();
81     }
82 }