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.kodi.internal;
15 import org.openhab.binding.kodi.internal.KodiEventListener.KodiState;
18 * The {@link KodiPlayerState} is responsible for saving the state of a player.
20 * @author Christoph Weitkamp - Initial contribution
22 public class KodiPlayerState {
23 private int savedPlaylistID;
24 private int savedVolume;
25 private KodiState savedState;
27 public int getSavedPlaylistID() {
28 return savedPlaylistID;
31 public void setPlaylistID(int savedPlaylistID) {
32 this.savedPlaylistID = savedPlaylistID;
35 public int getSavedVolume() {
39 public void setSavedVolume(int savedVolume) {
40 this.savedVolume = savedVolume;
43 public KodiState getSavedState() {
47 public void setSavedState(KodiState savedState) {
48 this.savedState = savedState;