]> git.basschouten.com Git - openhab-addons.git/blob
a90327a0b9711160c04e374e187d0ccd30fbaf0a
[openhab-addons.git] /
1 /**
2  * Copyright (c) 2010-2022 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.plugwiseha.internal.api.model.dto;
14
15 import java.time.ZonedDateTime;
16
17 import com.thoughtworks.xstream.annotations.XStreamAlias;
18 import com.thoughtworks.xstream.annotations.XStreamAsAttribute;
19
20 /**
21  * The {@link PlugwiseBaseModel} abstract class contains
22  * methods and properties that similar for all object model classes.
23  * 
24  * @author B. van Wetten - Initial contribution
25  */
26 public abstract class PlugwiseBaseModel {
27
28     @XStreamAsAttribute
29     private String id;
30
31     @XStreamAlias("created_date")
32     private ZonedDateTime createdDate;
33
34     @XStreamAlias("modified_date")
35     private ZonedDateTime modifiedDate;
36
37     @XStreamAlias("updated_date")
38     private ZonedDateTime updateDate;
39
40     @XStreamAlias("deleted_date")
41     private ZonedDateTime deletedDate;
42
43     public String getId() {
44         return id;
45     }
46
47     public ZonedDateTime getCreatedDate() {
48         return createdDate;
49     }
50
51     public ZonedDateTime getModifiedDate() {
52         return modifiedDate;
53     }
54
55     public ZonedDateTime getUpdatedDate() {
56         return updateDate;
57     }
58
59     public ZonedDateTime getDeletedDate() {
60         return deletedDate;
61     }
62
63     public void setId(String id) {
64         this.id = id;
65     }
66 }