From 6e8e63eb03bc2e435b69fa6c0e370fe3d42800c9 Mon Sep 17 00:00:00 2001 From: Stian Lyng <stianlyng@protonmail.com> Date: Fri, 21 Apr 2023 11:43:39 +0200 Subject: [PATCH] create dto --- .../SmartMat/dto/request/RecipeRequest.java | 29 +++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 src/main/java/ntnu/idatt2016/v233/SmartMat/dto/request/RecipeRequest.java diff --git a/src/main/java/ntnu/idatt2016/v233/SmartMat/dto/request/RecipeRequest.java b/src/main/java/ntnu/idatt2016/v233/SmartMat/dto/request/RecipeRequest.java new file mode 100644 index 00000000..fcc9451c --- /dev/null +++ b/src/main/java/ntnu/idatt2016/v233/SmartMat/dto/request/RecipeRequest.java @@ -0,0 +1,29 @@ +package ntnu.idatt2016.v233.SmartMat.dto.request; + +import lombok.AllArgsConstructor; +import lombok.Builder; +import lombok.Data; + +/** + * This class represents a recipe request + */ +@Data +@Builder +@AllArgsConstructor +public class RecipeRequest { + /** + * The unique id of the recipe + */ + private long id; + + /** + * The name of the recipe + */ + private String recipeName; + + /** + * The description of the recipe + */ + private String recipeDescription; + +} -- GitLab