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;
18 import com.google.gson.annotations.SerializedName;
21 * The model representing a forward actions result (serialize/deserialize json use only).
23 * @author Tim Roberts - Initial contribution
27 public class NeeoAction {
28 /** The action - can be null */
30 private String action;
32 /** The action parameter - generally null */
34 @SerializedName("actionparameter")
35 private String actionParameter;
37 /** The recipe name - only valid on launch of recipe */
39 private String recipe;
41 /** The device name - usually filled */
43 private String device;
45 /** The room name - usually filled */
52 * @return a possibly null, possibly empty action
55 public String getAction() {
60 * Returns the action parameter
62 * @return a possibly null, possibly empty action parameter
65 public String getActionParameter() {
66 return actionParameter;
70 * Returns the recipe name
72 * @return a possibly null, possibly empty recipe name
75 public String getRecipe() {
80 * Returns the device name
82 * @return a possibly null, possibly empty device name
85 public String getDevice() {
90 * Returns the room name
92 * @return a possibly null, possibly room name
95 public String getRoom() {
100 public String toString() {
101 return "NeeoAction [action=" + action + ", actionParameter=" + actionParameter + ", recipe=" + recipe
102 + ", device=" + device + ", room=" + room + "]";