]> git.basschouten.com Git - openhab-addons.git/blob
748797493d842718c819363382f7deedaa716037
[openhab-addons.git] /
1 /**
2  * Copyright (c) 2010-2020 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.teleinfo.internal.dto;
14
15 import java.io.Serializable;
16 import java.time.LocalDate;
17 import java.util.UUID;
18
19 /**
20  * The {@link Frame} class defines common attributes for any Teleinfo frames.
21  *
22  * @author Nicolas SIBERIL - Initial contribution
23  */
24 public abstract class Frame implements Serializable {
25
26     private static final long serialVersionUID = -1934715078822532494L;
27
28     private UUID id;
29     private LocalDate timestamp; // UTC timestamp
30
31     public Frame() {
32         // default constructor
33     }
34
35     public UUID getId() {
36         return id;
37     }
38
39     public void setId(UUID id) {
40         this.id = id;
41     }
42
43     public LocalDate getTimestamp() {
44         return timestamp;
45     }
46
47     public void setTimestamp(LocalDate timestamp) {
48         this.timestamp = timestamp;
49     }
50 }