2 * Copyright (c) 2010-2023 Contributors to the openHAB project
4 * See the NOTICE file(s) distributed with this work for additional
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
11 * SPDX-License-Identifier: EPL-2.0
13 package org.openhab.binding.yamahareceiver.internal.state;
15 import static org.openhab.binding.yamahareceiver.internal.YamahaReceiverBindingConstants.*;
18 * The play information state with current station, artist, song name
20 * @author David Graeff - Initial contribution
21 * @author Tomasz Maruszak - Spotify support
24 public class PlayInfoState implements Invalidateable {
26 public String station = VALUE_NA; // NET_RADIO. Will also be used for TUNER where Radio_Text_A/B will be used
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
33 public String playbackMode = "Stop"; // All inputs
36 public void invalidate() {
37 this.playbackMode = VALUE_NA;
38 this.station = VALUE_NA;
39 this.artist = VALUE_NA;
40 this.album = VALUE_NA;
42 this.songImageUrl = VALUE_EMPTY;