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.playstation.internal;
15 import org.eclipse.jdt.annotation.NonNullByDefault;
18 * The {@link PS4Configuration} class contains fields mapping thing configuration parameters.
20 * @author Fredrik Ahlström - Initial contribution
23 public class PS4Configuration {
26 * User-credential for the PS4.
28 public String userCredential = "";
31 * pass code for user (4 digits).
33 public String passCode = "";
36 * pairing code for this device (8 digits).
38 public String pairingCode = "";
41 * Timeout of connection in seconds.
43 public int connectionTimeout = 60;
46 * Automatic connection as soon as PS4 is turned on.
48 public boolean autoConnect = false;
51 * Size of artwork for applications.
53 public int artworkSize = 320;
56 * IP-address of OpenHABs network interface.
57 * This should only be used if the PS4 is on a sub-net
58 * different from the one configured in OpenHAB.
60 public String outboundIP = "";
65 public String ipAddress = "";
70 public int ipPort = PlayStationBindingConstants.DEFAULT_COMMUNICATION_PORT;
75 public String hostId = "";
78 public String toString() {
79 return "IP" + ipAddress + ", User-credential" + userCredential + ", Port" + ipPort + ", HostId" + hostId + ".";