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.amplipi.internal.model;
15 import com.google.gson.annotations.SerializedName;
17 import io.swagger.v3.oas.annotations.media.Schema;
20 * Information about the settings used by the controller
22 @Schema(description = "Information about the settings used by the controller ")
26 @SerializedName("config_file")
27 private String configFile = "Unknown";
30 private String version = "Unknown";
33 @SerializedName("mock_ctrl")
34 private Boolean mockCtrl = false;
37 @SerializedName("mock_streams")
38 private Boolean mockStreams = false;
45 public String getConfigFile() {
49 public void setConfigFile(String configFile) {
50 this.configFile = configFile;
53 public Info configFile(String configFile) {
54 this.configFile = configFile;
63 public String getVersion() {
67 public void setVersion(String version) {
68 this.version = version;
71 public Info version(String version) {
72 this.version = version;
81 public Boolean getMockCtrl() {
85 public void setMockCtrl(Boolean mockCtrl) {
86 this.mockCtrl = mockCtrl;
89 public Info mockCtrl(Boolean mockCtrl) {
90 this.mockCtrl = mockCtrl;
99 public Boolean getMockStreams() {
103 public void setMockStreams(Boolean mockStreams) {
104 this.mockStreams = mockStreams;
107 public Info mockStreams(Boolean mockStreams) {
108 this.mockStreams = mockStreams;
113 public String toString() {
114 StringBuilder sb = new StringBuilder();
115 sb.append("class Info {\n");
117 sb.append(" configFile: ").append(toIndentedString(configFile)).append("\n");
118 sb.append(" version: ").append(toIndentedString(version)).append("\n");
119 sb.append(" mockCtrl: ").append(toIndentedString(mockCtrl)).append("\n");
120 sb.append(" mockStreams: ").append(toIndentedString(mockStreams)).append("\n");
122 return sb.toString();
126 * Convert the given object to string with each line indented by 4 spaces
127 * (except the first line).
129 private static String toIndentedString(Object o) {
133 return o.toString().replace("\n", "\n ");