2 * Copyright (c) 2010-2023 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;
18 import com.thoughtworks.xstream.annotations.XStreamAsAttribute;
21 * The {@link PlugwiseBaseModel} abstract class contains
22 * methods and properties that similar for all object model classes.
24 * @author B. van Wetten - Initial contribution
26 public abstract class PlugwiseBaseModel {
31 @XStreamAlias("created_date")
32 private ZonedDateTime createdDate;
34 @XStreamAlias("modified_date")
35 private ZonedDateTime modifiedDate;
37 @XStreamAlias("updated_date")
38 private ZonedDateTime updateDate;
40 @XStreamAlias("deleted_date")
41 private ZonedDateTime deletedDate;
43 public String getId() {
47 public ZonedDateTime getCreatedDate() {
51 public ZonedDateTime getModifiedDate() {
55 public ZonedDateTime getUpdatedDate() {
59 public ZonedDateTime getDeletedDate() {
63 public void setId(String id) {