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.neeo.internal.models;
15 import org.eclipse.jdt.annotation.NonNullByDefault;
16 import org.eclipse.jdt.annotation.Nullable;
19 * The model representing a forward actions request (serialize/deserialize json use only).
21 * @author Tim Roberts - Initial contribution
24 public class NeeoForwardActions {
25 /** The host to forward actions to */
27 private final String host;
29 /** The port to use */
30 private final int port;
32 /** The path the actions should go to */
34 private final String path;
37 * Creates the forward actions from the given parms
39 * @param host the host name
40 * @param port the port
41 * @param path the path
43 public NeeoForwardActions(String host, int port, String path) {
50 * Returns the host name to forward actions to
52 * @return the hostname
55 public String getHost() {
60 * Returns the port number
62 * @return the port number
64 public int getPort() {
69 * Returns the path to use
74 public String getPath() {
79 public String toString() {
80 return "NeeoForwardActions [host=" + host + ", port=" + port + ", path=" + path + "]";