2 * Copyright (c) 2010-2021 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.plugwiseha.internal.api.model.dto;
15 import java.time.ZonedDateTime;
17 import com.thoughtworks.xstream.annotations.XStreamAlias;
20 * The {@link PlugwiseBaseModel} abstract class contains
21 * methods and properties that similar for all object model classes.
23 * @author B. van Wetten - Initial contribution
25 public abstract class PlugwiseBaseModel {
29 @XStreamAlias("created_date")
30 private ZonedDateTime createdDate;
32 @XStreamAlias("modified_date")
33 private ZonedDateTime modifiedDate;
35 @XStreamAlias("updated_date")
36 private ZonedDateTime updateDate;
38 @XStreamAlias("deleted_date")
39 private ZonedDateTime deletedDate;
41 public String getId() {
45 public ZonedDateTime getCreatedDate() {
49 public ZonedDateTime getModifiedDate() {
53 public ZonedDateTime getUpdatedDate() {
57 public ZonedDateTime getDeletedDate() {