]> git.basschouten.com Git - openhab-addons.git/blob
b73363d1fdfafc6b219dc9b568e03af15542829e
[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.minecraft.internal.message.data.commands;
14
15 /**
16  * A command that targets a sign.
17  *
18  * @author Mattias Markehed - Initial contribution
19  */
20 public class SignCommandData {
21
22     public static final String COMMAND_SIGN_ACTIVE = "COMMAND_SIGN_ACTIVE";
23
24     private String type;
25     private String signName;
26     private String value;
27
28     public SignCommandData() {
29     }
30
31     public SignCommandData(String type, String signName, String value) {
32         this.type = type;
33         this.signName = signName;
34         this.value = value;
35     }
36
37     /**
38      * Get the type of command.
39      *
40      * @return the type of command.
41      */
42     public String getType() {
43         return type;
44     }
45
46     /**
47      * The name of the sign that the command targets.
48      *
49      * @return name of sign
50      */
51     public String getSignName() {
52         return signName;
53     }
54
55     /**
56      * The command value sent.
57      *
58      * @return command value.
59      */
60     public String getValue() {
61         return value;
62     }
63 }