]> git.basschouten.com Git - openhab-addons.git/blob
17b158848d52f415e74eaba89b0399a42ff9e846
[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.model;
14
15 import org.eclipse.jdt.annotation.NonNullByDefault;
16
17 /**
18  * Class representing a Kodi audio stream (see https://kodi.wiki/view/JSON-RPC_API/v9#Player.Audio.Stream)
19  *
20  * @author Christoph Weitkamp - Initial contribution
21  */
22 @NonNullByDefault
23 public class KodiAudioStream {
24     private int bitrate;
25     private int channels;
26     private @NonNullByDefault({}) String codec;
27     private int index;
28     private @NonNullByDefault({}) String language;
29     private @NonNullByDefault({}) String name;
30
31     public int getBitrate() {
32         return bitrate;
33     }
34
35     public void setBitrate(int bitrate) {
36         this.bitrate = bitrate;
37     }
38
39     public int getChannels() {
40         return channels;
41     }
42
43     public void setChannels(int channels) {
44         this.channels = channels;
45     }
46
47     public String getCodec() {
48         return codec;
49     }
50
51     public void setCodec(String codec) {
52         this.codec = codec;
53     }
54
55     public int getIndex() {
56         return index;
57     }
58
59     public void setIndex(int index) {
60         this.index = index;
61     }
62
63     public String getLanguage() {
64         return language;
65     }
66
67     public void setLanguage(String language) {
68         this.language = language;
69     }
70
71     public String getName() {
72         return name;
73     }
74
75     public void setName(String name) {
76         this.name = name;
77     }
78 }