-
Notifications
You must be signed in to change notification settings - Fork 0
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
5 changed files
with
70 additions
and
13 deletions.
There are no files selected for viewing
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
35 changes: 35 additions & 0 deletions
35
src/main/java/sungdong29/backend/domain/walk/dto/response/TmapPathResponseDTO.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 |
---|---|---|
@@ -0,0 +1,35 @@ | ||
package sungdong29.backend.domain.walk.dto.response; | ||
|
||
import lombok.Builder; | ||
import lombok.Getter; | ||
|
||
import java.util.List; | ||
|
||
@Getter | ||
public class TmapPathResponseDTO { | ||
|
||
private int totalDistance; | ||
private int totalTime; | ||
private List<List<Double>> coordinates; | ||
|
||
@Builder | ||
private TmapPathResponseDTO( | ||
int totalDistance, | ||
int totalTime, | ||
List<List<Double>> coordinates) { | ||
this.totalDistance = totalDistance; | ||
this.totalTime = totalTime; | ||
this.coordinates = coordinates; | ||
} | ||
|
||
public static TmapPathResponseDTO of( | ||
int totalDistance, | ||
int totalTime, | ||
List<List<Double>> coordinates) { | ||
return TmapPathResponseDTO.builder() | ||
.totalDistance(totalDistance) | ||
.totalTime(totalTime) | ||
.coordinates(coordinates) | ||
.build(); | ||
} | ||
} |
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
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
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