]> git.basschouten.com Git - openhab-addons.git/blob
7fb6f4b461ae6674a8fe2aec86275f55b0c77ad4
[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.yamahareceiver.internal.state;
14
15 import static org.openhab.binding.yamahareceiver.internal.YamahaReceiverBindingConstants.*;
16
17 /**
18  * The play information state with current station, artist, song name
19  *
20  * @author David Graeff - Initial contribution
21  * @author Tomasz Maruszak - Spotify support
22  *
23  */
24 public class PlayInfoState implements Invalidateable {
25
26     public String station = VALUE_NA; // NET_RADIO. Will also be used for TUNER where Radio_Text_A/B will be used
27                                       // instead.
28     public String artist = VALUE_NA; // USB, iPOD, PC
29     public String album = VALUE_NA; // USB, iPOD, PC
30     public String song = VALUE_NA; // USB, iPOD, PC
31     public String songImageUrl = VALUE_EMPTY; // Spotify
32
33     public String playbackMode = "Stop"; // All inputs
34
35     @Override
36     public void invalidate() {
37         this.playbackMode = VALUE_NA;
38         this.station = VALUE_NA;
39         this.artist = VALUE_NA;
40         this.album = VALUE_NA;
41         this.song = VALUE_NA;
42         this.songImageUrl = VALUE_EMPTY;
43     }
44 }