diff --git a/src/main/java/com/gabriel_torelo/game_list/dto/GameMinDTO.java b/src/main/java/com/gabriel_torelo/game_list/dto/GameMinDTO.java new file mode 100644 index 0000000..7cbbcd0 --- /dev/null +++ b/src/main/java/com/gabriel_torelo/game_list/dto/GameMinDTO.java @@ -0,0 +1,36 @@ +package com.gabriel_torelo.game_list.dto; + +import com.gabriel_torelo.game_list.entities.Game; + +public class GameMinDTO { + private Long id; + private String title; + private Double score; + private String imgUrl; + + public GameMinDTO() { + } + + public GameMinDTO(Game entity) { + id = entity.getId(); + title = entity.getTitle(); + score = entity.getScore(); + imgUrl = entity.getImgUrl(); + } + + public Long getId() { + return id; + } + + public String getTitle() { + return title; + } + + public Double getScore() { + return score; + } + + public String getImgUrl() { + return imgUrl; + } +}