]> git.basschouten.com Git - openhab-addons.git/blob
14157f47df747551016751435ba4d91e62bfe816
[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.innogysmarthome.internal.client.entity;
14
15 /**
16  * Defines a {@link Property}, that is a basic key/value structure used for several data types in the innogy API.
17  *
18  * @author Oliver Kuhl - Initial contribution
19  */
20 public class Property {
21
22     private String name;
23
24     private Object value;
25
26     private String lastchanged;
27
28     public Property() {
29         // used for serialization
30     }
31
32     /**
33      * Constructs a new {@link Property} with the given name and value.
34      *
35      * @param name
36      * @param value
37      */
38     public Property(String name, Object value) {
39         this.name = name;
40         this.value = value;
41     }
42
43     /**
44      * @return the name
45      */
46     public String getName() {
47         return name;
48     }
49
50     /**
51      * @param name the name to set
52      */
53     public void setName(String name) {
54         this.name = name;
55     }
56
57     /**
58      * @return the value
59      */
60     public Object getValue() {
61         return value;
62     }
63
64     /**
65      * @param value the value to set
66      */
67     public void setValue(Object value) {
68         this.value = value;
69     }
70
71     /**
72      * @return the lastchanged
73      */
74     public String getLastchanged() {
75         return lastchanged;
76     }
77
78     /**
79      * @param lastchanged the lastchanged to set
80      */
81     public void setLastchanged(String lastchanged) {
82         this.lastchanged = lastchanged;
83     }
84 }