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.groupepsa.internal.rest.api.dto;
15 import java.math.BigDecimal;
16 import java.time.ZonedDateTime;
18 import org.eclipse.jdt.annotation.NonNullByDefault;
19 import org.eclipse.jdt.annotation.Nullable;
22 * @author Arjan Mels - Initial contribution
27 private @Nullable ZonedDateTime updatedAt;
28 private @Nullable ZonedDateTime createdAt;
29 private @Nullable BigDecimal autonomy;
30 private @Nullable BatteryStatus battery;
31 private @Nullable Charging charging;
32 private @Nullable BigDecimal consumption;
33 private @Nullable BigDecimal level;
34 private @Nullable BigDecimal residual;
35 private @Nullable String type;
37 public @Nullable ZonedDateTime getUpdatedAt() {
41 public @Nullable ZonedDateTime getCreatedAt() {
45 public @Nullable BigDecimal getAutonomy() {
49 public @Nullable BatteryStatus getBattery() {
53 public @Nullable Charging getCharging() {
57 public @Nullable BigDecimal getConsumption() {
61 public @Nullable BigDecimal getLevel() {
65 public @Nullable BigDecimal getResidual() {
69 public @Nullable String getType() {
74 public String toString() {
75 return new ToStringBuilder(this).append("updatedAt", updatedAt).append("createdAt", createdAt)
76 .append("autonomy", autonomy).append("battery", battery).append("charging", charging)
77 .append("consumption", consumption).append("level", level).append("residual", residual)
78 .append("type", type).toString();