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.model;
15 import org.eclipse.jdt.annotation.NonNullByDefault;
18 * Class representing a Kodi audio stream (see https://kodi.wiki/view/JSON-RPC_API/v9#Player.Audio.Stream)
20 * @author Christoph Weitkamp - Initial contribution
23 public class KodiAudioStream {
26 private @NonNullByDefault({}) String codec;
28 private @NonNullByDefault({}) String language;
29 private @NonNullByDefault({}) String name;
31 public int getBitrate() {
35 public void setBitrate(int bitrate) {
36 this.bitrate = bitrate;
39 public int getChannels() {
43 public void setChannels(int channels) {
44 this.channels = channels;
47 public String getCodec() {
51 public void setCodec(String codec) {
55 public int getIndex() {
59 public void setIndex(int index) {
63 public String getLanguage() {
67 public void setLanguage(String language) {
68 this.language = language;
71 public String getName() {
75 public void setName(String name) {