From 2c600b65a6997739bbafbf2e956758b3c01033c1 Mon Sep 17 00:00:00 2001 From: Stian Lyng <stianlyng@protonmail.com> Date: Tue, 18 Apr 2023 13:52:13 +0200 Subject: [PATCH] add model --- .../ntnu/idatt2016/v233/SmartMat/model/Allergy.java | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 src/main/java/ntnu/idatt2016/v233/SmartMat/model/Allergy.java diff --git a/src/main/java/ntnu/idatt2016/v233/SmartMat/model/Allergy.java b/src/main/java/ntnu/idatt2016/v233/SmartMat/model/Allergy.java new file mode 100644 index 00000000..845d776c --- /dev/null +++ b/src/main/java/ntnu/idatt2016/v233/SmartMat/model/Allergy.java @@ -0,0 +1,13 @@ +package ntnu.idatt2016.v233.SmartMat.model; + +/** + * This is a record class representing an allergy + * + * @author Stian Lyng + * @version 1.0 + * + * @param name The name of the allergy + * @param description The description of the allergy + */ +public record Allergy(String name, String description) { +} \ No newline at end of file -- GitLab