2 * Copyright (c) 2010-2020 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.teleinfo.internal.dto;
15 import java.io.Serializable;
16 import java.time.LocalDate;
17 import java.util.UUID;
20 * The {@link Frame} class defines common attributes for any Teleinfo frames.
22 * @author Nicolas SIBERIL - Initial contribution
24 public abstract class Frame implements Serializable {
26 private static final long serialVersionUID = -1934715078822532494L;
29 private LocalDate timestamp; // UTC timestamp
32 // default constructor
39 public void setId(UUID id) {
43 public LocalDate getTimestamp() {
47 public void setTimestamp(LocalDate timestamp) {
48 this.timestamp = timestamp;