]> git.basschouten.com Git - openhab-addons.git/blob
494d33ba4e3772ecdc1ffa82f5bfc6bb8c12fbb3
[openhab-addons.git] /
1 /**
2  * Copyright (c) 2010-2023 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.groupepsa.internal.rest.api.dto;
14
15 import java.time.ZonedDateTime;
16
17 import org.eclipse.jdt.annotation.NonNullByDefault;
18 import org.eclipse.jdt.annotation.Nullable;
19
20 /**
21  * @author Arjan Mels - Initial contribution
22  */
23 @NonNullByDefault
24 public class Environment {
25
26     private @Nullable ZonedDateTime updatedAt;
27     private @Nullable ZonedDateTime createdAt;
28     private @Nullable Air air;
29     private @Nullable Luminosity luminosity;
30
31     public @Nullable ZonedDateTime getUpdatedAt() {
32         return updatedAt;
33     }
34
35     public @Nullable ZonedDateTime getCreatedAt() {
36         return createdAt;
37     }
38
39     public @Nullable Air getAir() {
40         return air;
41     }
42
43     public @Nullable Luminosity getLuminosity() {
44         return luminosity;
45     }
46
47     @Override
48     public String toString() {
49         return new ToStringBuilder(this).append("updatedAt", updatedAt).append("createdAt", createdAt)
50                 .append("air", air).append("luminosity", luminosity).toString();
51     }
52 }