]> git.basschouten.com Git - openhab-addons.git/blob
def7c3e07a39f510016e5d578f2d286b556feeb3
[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.heos.internal.json.payload;
14
15 import org.eclipse.jdt.annotation.NonNullByDefault;
16 import org.eclipse.jdt.annotation.Nullable;
17
18 import com.google.gson.annotations.SerializedName;
19
20 /**
21  * Data class for response payloads when retrieving players
22  *
23  * @author Martin van Wingerden - Initial contribution
24  */
25 @NonNullByDefault
26 public class Player {
27     public String name = "";
28     @SerializedName("pid")
29     public int playerId;
30     @SerializedName("gid")
31     public @Nullable Integer playerIdOfGroupLeader;
32     public String model = "";
33     public String version = "";
34     public String ip = "";
35     public String network = "";
36     public int lineout;
37     public @Nullable String serial;
38
39     @Override
40     public String toString() {
41         return "Player{" + "name='" + name + '\'' + ", playerId=" + playerId + ", playerIdOfGroupLeader="
42                 + playerIdOfGroupLeader + ", model='" + model + '\'' + ", version='" + version + '\'' + ", ip='" + ip
43                 + '\'' + ", network='" + network + '\'' + ", lineout=" + lineout + ", serial='" + serial + '\'' + '}';
44     }
45 }