From 9eb9c908738d495e5c05d9d8e37e4612419ce6df Mon Sep 17 00:00:00 2001 From: Gabriel Torelo <57268681+GabrielTorelo@users.noreply.github.com> Date: Mon, 17 Jul 2023 20:15:46 -0300 Subject: [PATCH] =?UTF-8?q?cria=20DTO=20com=20as=20informa=C3=A7=C3=B5es?= =?UTF-8?q?=20do=20corpo=20(body)=20da=20requisi=C3=A7=C3=A3o=20de=20troca?= =?UTF-8?q?=20de=20posi=C3=A7=C3=A3o=20na=20lista?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../game_list/dto/ChangePositionDTO.java | 22 +++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 src/main/java/com/gabriel_torelo/game_list/dto/ChangePositionDTO.java diff --git a/src/main/java/com/gabriel_torelo/game_list/dto/ChangePositionDTO.java b/src/main/java/com/gabriel_torelo/game_list/dto/ChangePositionDTO.java new file mode 100644 index 0000000..321642b --- /dev/null +++ b/src/main/java/com/gabriel_torelo/game_list/dto/ChangePositionDTO.java @@ -0,0 +1,22 @@ +package com.gabriel_torelo.game_list.dto; + +public class ChangePositionDTO { + private Integer currentIndex; + private Integer newIndex; + + public Integer getCurrentIndex() { + return currentIndex; + } + + public void setCurrentIndex(Integer currentIndex) { + this.currentIndex = currentIndex; + } + + public Integer getNewIndex() { + return newIndex; + } + + public void setNewIndex(Integer newIndex) { + this.newIndex = newIndex; + } +}