]> git.basschouten.com Git - openhab-addons.git/blob
5fae7305c929c8b938e3e59c53a39d944196ed3f
[openhab-addons.git] /
1 /**
2  * Copyright (c) 2010-2022 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.amplipi.internal.model;
14
15 import com.google.gson.annotations.SerializedName;
16
17 import io.swagger.v3.oas.annotations.media.Schema;
18
19 /**
20  * Information about the settings used by the controller
21  **/
22 @Schema(description = "Information about the settings used by the controller ")
23 public class Info {
24
25     @Schema
26     @SerializedName("config_file")
27     private String configFile = "Unknown";
28
29     @Schema
30     private String version = "Unknown";
31
32     @Schema
33     @SerializedName("mock_ctrl")
34     private Boolean mockCtrl = false;
35
36     @Schema
37     @SerializedName("mock_streams")
38     private Boolean mockStreams = false;
39
40     /**
41      * Get configFile
42      *
43      * @return configFile
44      **/
45     public String getConfigFile() {
46         return configFile;
47     }
48
49     public void setConfigFile(String configFile) {
50         this.configFile = configFile;
51     }
52
53     public Info configFile(String configFile) {
54         this.configFile = configFile;
55         return this;
56     }
57
58     /**
59      * Get version
60      *
61      * @return version
62      **/
63     public String getVersion() {
64         return version;
65     }
66
67     public void setVersion(String version) {
68         this.version = version;
69     }
70
71     public Info version(String version) {
72         this.version = version;
73         return this;
74     }
75
76     /**
77      * Get mockCtrl
78      *
79      * @return mockCtrl
80      **/
81     public Boolean getMockCtrl() {
82         return mockCtrl;
83     }
84
85     public void setMockCtrl(Boolean mockCtrl) {
86         this.mockCtrl = mockCtrl;
87     }
88
89     public Info mockCtrl(Boolean mockCtrl) {
90         this.mockCtrl = mockCtrl;
91         return this;
92     }
93
94     /**
95      * Get mockStreams
96      *
97      * @return mockStreams
98      **/
99     public Boolean getMockStreams() {
100         return mockStreams;
101     }
102
103     public void setMockStreams(Boolean mockStreams) {
104         this.mockStreams = mockStreams;
105     }
106
107     public Info mockStreams(Boolean mockStreams) {
108         this.mockStreams = mockStreams;
109         return this;
110     }
111
112     @Override
113     public String toString() {
114         StringBuilder sb = new StringBuilder();
115         sb.append("class Info {\n");
116
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");
121         sb.append("}");
122         return sb.toString();
123     }
124
125     /**
126      * Convert the given object to string with each line indented by 4 spaces
127      * (except the first line).
128      */
129     private static String toIndentedString(Object o) {
130         if (o == null) {
131             return "null";
132         }
133         return o.toString().replace("\n", "\n    ");
134     }
135 }