]> git.basschouten.com Git - openhab-addons.git/blob
a4638f1a2c008b5aa6ba18744c272d871db53c46
[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
19 /**
20  * The {@link PlugwiseBaseModel} abstract class contains
21  * methods and properties that similar for all object model classes.
22  * 
23  * @author B. van Wetten - Initial contribution
24  */
25 public abstract class PlugwiseBaseModel {
26
27     private String id;
28
29     @XStreamAlias("created_date")
30     private ZonedDateTime createdDate;
31
32     @XStreamAlias("modified_date")
33     private ZonedDateTime modifiedDate;
34
35     @XStreamAlias("updated_date")
36     private ZonedDateTime updateDate;
37
38     @XStreamAlias("deleted_date")
39     private ZonedDateTime deletedDate;
40
41     public String getId() {
42         return id;
43     }
44
45     public ZonedDateTime getCreatedDate() {
46         return createdDate;
47     }
48
49     public ZonedDateTime getModifiedDate() {
50         return modifiedDate;
51     }
52
53     public ZonedDateTime getUpdatedDate() {
54         return updateDate;
55     }
56
57     public ZonedDateTime getDeletedDate() {
58         return deletedDate;
59     }
60 }