]> git.basschouten.com Git - openhab-addons.git/blob
4a011046a794ac4abfc24141053fa3be3513116d
[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.playstation.internal;
14
15 import org.eclipse.jdt.annotation.NonNullByDefault;
16
17 /**
18  * The {@link PS4Configuration} class contains fields mapping thing configuration parameters.
19  *
20  * @author Fredrik Ahlström - Initial contribution
21  */
22 @NonNullByDefault
23 public class PS4Configuration {
24
25     /**
26      * User-credential for the PS4.
27      */
28     public String userCredential = "";
29
30     /**
31      * pass code for user (4 digits).
32      */
33     public String passCode = "";
34
35     /**
36      * pairing code for this device (8 digits).
37      */
38     public String pairingCode = "";
39
40     /**
41      * Timeout of connection in seconds.
42      */
43     public int connectionTimeout = 60;
44
45     /**
46      * Automatic connection as soon as PS4 is turned on.
47      */
48     public boolean autoConnect = false;
49
50     /**
51      * Size of artwork for applications.
52      */
53     public int artworkSize = 320;
54
55     /**
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.
59      */
60     public String outboundIP = "";
61
62     /**
63      * IP-address of PS4.
64      */
65     public String ipAddress = "";
66
67     /**
68      * IP-port of PS4.
69      */
70     public int ipPort = PlayStationBindingConstants.DEFAULT_COMMUNICATION_PORT;
71
72     /**
73      * host-id of PS4.
74      */
75     public String hostId = "";
76
77     @Override
78     public String toString() {
79         return "IP" + ipAddress + ", User-credential" + userCredential + ", Port" + ipPort + ", HostId" + hostId + ".";
80     }
81 }