/
java56
/
Minesweeper
Обзор
Документация
Войти
/
java56
/
Minesweeper
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
src/main/java/com/mikhail/minesweeper/dto/response/GameInfoResponse.java
46 строк
1 KB
Mikhail Gorbatenkov
36 - edit the data transfer object that is intended for the response
18 фев 2025, 16:50
18 фев 2025, 16:50
baf71b1
Код
Авторство
О чём код?
package com.mikhail.minesweeper.dto.response; import com.fasterxml.jackson.annotation.JsonProperty; import io.swagger.v3.oas.annotations.media.Schema; import lombok.Getter; import lombok.Setter; import java.util.List; import java.util.UUID; @Schema(description = "DTO для ответа о состоянии игры") @Getter @Setter public class GameInfoResponse { @Schema(description = "Идентификатор игры", example = "01234567-89AB-CDEF-0123-456789ABCDEF") @JsonProperty("game_id") private UUID gameId; @Schema(description = "Ширина игрового поля", example = "10") private Integer width; @Schema(description = "Высота игрового поля", example = "10") private Integer height; @Schema(description = "Количество мин на поле", example = "10") @JsonProperty("mines_count") private Integer minesCount; @Schema(description = "Завершена ли игра", example = "false") private Boolean completed; @Schema(description = "Игровое поле") private List<List<String>> field; @Override public String toString() { return "GameInfoResponse{" + "gameId=" + gameId + ", width=" + width + ", height=" + height + ", minesCount=" + minesCount + ", completed=" + completed + '}'; } }