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.heos.internal.json.payload;
15 import org.eclipse.jdt.annotation.NonNullByDefault;
16 import org.eclipse.jdt.annotation.Nullable;
18 import com.google.gson.annotations.SerializedName;
21 * Data class for response payloads when retrieving players
23 * @author Martin van Wingerden - Initial contribution
27 public String name = "";
28 @SerializedName("pid")
30 @SerializedName("gid")
31 public @Nullable Integer playerIdOfGroupLeader;
32 public String model = "";
33 public String version = "";
34 public String ip = "";
35 public String network = "";
37 public @Nullable String serial;
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 + '\'' + '}';