-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
6 additions
and
14 deletions.
There are no files selected for viewing
20 changes: 6 additions & 14 deletions
20
server/src/main/java/org/cecd/server/dto/EnergyUsageResponse.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,10 @@ | ||
package org.cecd.server.dto; | ||
|
||
|
||
import lombok.AllArgsConstructor; | ||
import lombok.Getter; | ||
import lombok.Setter; | ||
|
||
import java.time.LocalDateTime; | ||
|
||
@Getter | ||
@Setter | ||
@AllArgsConstructor | ||
public class EnergyUsageResponse { | ||
private String sensorNumber; | ||
private LocalDateTime dateTime; | ||
private double result; | ||
private double percentage; | ||
} | ||
public record EnergyUsageResponse( | ||
String sensorNumber, | ||
LocalDateTime dateTime, | ||
double result, | ||
double percentage | ||
) {} |