]> git.basschouten.com Git - openhab-addons.git/blob
53b8f9e8cc2910e2d3105c135a27e458e9b6dc13
[openhab-addons.git] /
1 /**
2  * Copyright (c) 2010-2023 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.yamahamusiccast.internal.dto;
14
15 import com.google.gson.annotations.SerializedName;
16
17 /**
18  * This class represents the DeviceInfo request requested from the Yamaha model/device via the API.
19  *
20  * @author Lennert Coopman - Initial contribution
21  */
22 public class DeviceInfo {
23
24     @SerializedName("response_code")
25     private String responseCode;
26
27     @SerializedName("model_name")
28     private String modelName;
29
30     @SerializedName("device_id")
31     private String deviceId;
32
33     public String getResponseCode() {
34         if (responseCode == null) {
35             responseCode = "";
36         }
37         return responseCode;
38     }
39
40     public String getModelName() {
41         if (modelName == null) {
42             modelName = "";
43         }
44         return modelName;
45     }
46
47     public String getDeviceId() {
48         if (deviceId == null) {
49             deviceId = "";
50         }
51         return deviceId;
52     }
53 }