]> git.basschouten.com Git - openhab-addons.git/blob
2e55dc8659319bdef29335940afd2ba3734e0215
[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 video stream (see https://kodi.wiki/view/JSON-RPC_API/v9#Player.Video.Stream)
19  *
20  * @author Christoph Weitkamp - Initial contribution
21  */
22 @NonNullByDefault
23 public class KodiVideoStream {
24     private @NonNullByDefault({}) String codec;
25     private int height;
26     private int index;
27     private @NonNullByDefault({}) String language;
28     private @NonNullByDefault({}) String name;
29     private int width;
30
31     public String getCodec() {
32         return codec;
33     }
34
35     public void setCodec(String codec) {
36         this.codec = codec;
37     }
38
39     public int getHeight() {
40         return height;
41     }
42
43     public void setHeight(int height) {
44         this.height = height;
45     }
46
47     public int getIndex() {
48         return index;
49     }
50
51     public void setIndex(int index) {
52         this.index = index;
53     }
54
55     public String getLanguage() {
56         return language;
57     }
58
59     public void setLanguage(String language) {
60         this.language = language;
61     }
62
63     public String getName() {
64         return name;
65     }
66
67     public void setName(String name) {
68         this.name = name;
69     }
70
71     public int getWidth() {
72         return width;
73     }
74
75     public void setWidth(int width) {
76         this.width = width;
77     }
78 }