2 * Copyright (c) 2010-2024 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.androidtv.internal.protocol.philipstv.service.model.channel;
15 import java.util.List;
17 import org.eclipse.jdt.annotation.Nullable;
19 import com.fasterxml.jackson.annotation.JsonProperty;
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.
25 * @author Benjamin Meyer - Initial contribution
26 * @author Ben Rosenblum - Merged into AndroidTV
28 public class AvailableTvChannelsDTO {
30 @JsonProperty("Channel")
31 private @Nullable List<ChannelDTO> channel;
34 private String id = "";
36 @JsonProperty("medium")
37 private String medium = "";
39 @JsonProperty("version")
42 @JsonProperty("listType")
43 private String listType = "";
45 @JsonProperty("operator")
46 private String operator = "";
48 @JsonProperty("installCountry")
49 private String installCountry = "";
51 public AvailableTvChannelsDTO() {
54 public void setChannel(List<ChannelDTO> channel) {
55 this.channel = channel;
58 public @Nullable List<ChannelDTO> getChannel() {
62 public void setId(String id) {
66 public String getId() {
70 public void setMedium(String medium) {
74 public String getMedium() {
78 public void setVersion(int version) {
79 this.version = version;
82 public int getVersion() {
86 public void setListType(String listType) {
87 this.listType = listType;
90 public String getListType() {
94 public void setOperator(String operator) {
95 this.operator = operator;
98 public String getOperator() {
102 public void setInstallCountry(String installCountry) {
103 this.installCountry = installCountry;
106 public String getInstallCountry() {
107 return installCountry;
111 public String toString() {
112 return "AvailableTvChannelsDTO{" + "channel = '" + channel + '\'' + ",id = '" + id + '\'' + ",medium = '"
113 + medium + '\'' + ",version = '" + version + '\'' + ",listType = '" + listType + '\'' + ",operator = '"
114 + operator + '\'' + ",installCountry = '" + installCountry + '\'' + "}";