]> git.basschouten.com Git - openhab-addons.git/blob
31d26c21105ea0ce8ddc0e2e1c552e59ecd2b58f
[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.kodi.internal;
14
15 import org.openhab.binding.kodi.internal.KodiEventListener.KodiState;
16
17 /**
18  * The {@link KodiPlayerState} is responsible for saving the state of a player.
19  *
20  * @author Christoph Weitkamp - Initial contribution
21  */
22 public class KodiPlayerState {
23     private int savedPlaylistID;
24     private int savedVolume;
25     private KodiState savedState;
26
27     public int getSavedPlaylistID() {
28         return savedPlaylistID;
29     }
30
31     public void setPlaylistID(int savedPlaylistID) {
32         this.savedPlaylistID = savedPlaylistID;
33     }
34
35     public int getSavedVolume() {
36         return savedVolume;
37     }
38
39     public void setSavedVolume(int savedVolume) {
40         this.savedVolume = savedVolume;
41     }
42
43     public KodiState getSavedState() {
44         return savedState;
45     }
46
47     public void setSavedState(KodiState savedState) {
48         this.savedState = savedState;
49     }
50 }