2 * Copyright (c) 2010-2022 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.amplipi.internal.model;
15 import io.swagger.v3.oas.annotations.media.Schema;
20 @Schema(description = "An audio source ")
29 @Schema(required = true)
37 * Connected audio source * Digital Stream ('stream=SID') where SID is the ID of the connected stream * Analog RCA
38 * Input ('local') connects to the RCA inputs associated * Nothing ('') behind the scenes this is muxed to a digital
41 private String input = "";
48 public Integer getId() {
52 public void setId(Integer id) {
56 public Source id(Integer id) {
66 public String getName() {
70 public void setName(String name) {
74 public Source name(String name) {
80 * Connected audio source * Digital Stream ('stream=SID') where SID is the ID of the connected stream *
81 * Analog RCA Input ('local') connects to the RCA inputs associated * Nothing ('') behind the scenes
82 * this is muxed to a digital output
86 public String getInput() {
90 public void setInput(String input) {
94 public Source input(String input) {
100 public String toString() {
101 StringBuilder sb = new StringBuilder();
102 sb.append("class Source {\n");
104 sb.append(" id: ").append(toIndentedString(id)).append("\n");
105 sb.append(" name: ").append(toIndentedString(name)).append("\n");
106 sb.append(" input: ").append(toIndentedString(input)).append("\n");
108 return sb.toString();
112 * Convert the given object to string with each line indented by 4 spaces
113 * (except the first line).
115 private static String toIndentedString(Object o) {
119 return o.toString().replace("\n", "\n ");