From 146a80c4e91b8d2fce18a87d7a2bd6d00b641a8f Mon Sep 17 00:00:00 2001 From: Morgan - 6 Freedom Date: Sun, 28 Jan 2024 11:56:16 +0100 Subject: [PATCH] can get first or second proposition --- Assets/Scripts/DatabaseClasses/Question.cs | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/Assets/Scripts/DatabaseClasses/Question.cs b/Assets/Scripts/DatabaseClasses/Question.cs index 364fa76..216b3f9 100644 --- a/Assets/Scripts/DatabaseClasses/Question.cs +++ b/Assets/Scripts/DatabaseClasses/Question.cs @@ -10,4 +10,14 @@ public class Question public string promptId; public Dictionary propositions; public double creationDate; + + public Proposition GetFirstProposition() + { + return propositions["0"]; + } + public Proposition GetSecondProposition() + { + return propositions["1"]; + } } +