]> git.basschouten.com Git - openhab-addons.git/blob
fc10fd820cf76f66486fdf102ae6b7da619a80d9
[openhab-addons.git] /
1 /**
2  * Copyright (c) 2010-2024 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.androidtv.internal.protocol.philipstv.service.model.channel;
14
15 import java.util.List;
16
17 import org.eclipse.jdt.annotation.Nullable;
18
19 import com.fasterxml.jackson.annotation.JsonProperty;
20
21 /**
22  * The {@link AvailableTvChannelsDTO} class defines the Data Transfer Object
23  * for the Philips TV API channeldb/tv/channelLists/all endpoint for retrieving all tv channels.
24  *
25  * @author Benjamin Meyer - Initial contribution
26  * @author Ben Rosenblum - Merged into AndroidTV
27  */
28 public class AvailableTvChannelsDTO {
29
30     @JsonProperty("Channel")
31     private @Nullable List<ChannelDTO> channel;
32
33     @JsonProperty("id")
34     private String id = "";
35
36     @JsonProperty("medium")
37     private String medium = "";
38
39     @JsonProperty("version")
40     private int version;
41
42     @JsonProperty("listType")
43     private String listType = "";
44
45     @JsonProperty("operator")
46     private String operator = "";
47
48     @JsonProperty("installCountry")
49     private String installCountry = "";
50
51     public AvailableTvChannelsDTO() {
52     }
53
54     public void setChannel(List<ChannelDTO> channel) {
55         this.channel = channel;
56     }
57
58     public @Nullable List<ChannelDTO> getChannel() {
59         return channel;
60     }
61
62     public void setId(String id) {
63         this.id = id;
64     }
65
66     public String getId() {
67         return id;
68     }
69
70     public void setMedium(String medium) {
71         this.medium = medium;
72     }
73
74     public String getMedium() {
75         return medium;
76     }
77
78     public void setVersion(int version) {
79         this.version = version;
80     }
81
82     public int getVersion() {
83         return version;
84     }
85
86     public void setListType(String listType) {
87         this.listType = listType;
88     }
89
90     public String getListType() {
91         return listType;
92     }
93
94     public void setOperator(String operator) {
95         this.operator = operator;
96     }
97
98     public String getOperator() {
99         return operator;
100     }
101
102     public void setInstallCountry(String installCountry) {
103         this.installCountry = installCountry;
104     }
105
106     public String getInstallCountry() {
107         return installCountry;
108     }
109
110     @Override
111     public String toString() {
112         return "AvailableTvChannelsDTO{" + "channel = '" + channel + '\'' + ",id = '" + id + '\'' + ",medium = '"
113                 + medium + '\'' + ",version = '" + version + '\'' + ",listType = '" + listType + '\'' + ",operator = '"
114                 + operator + '\'' + ",installCountry = '" + installCountry + '\'' + "}";
115     }
116 }