Snaparazzi/Assets/Scripts/DatabaseClasses/Question.cs
2024-01-28 11:56:16 +01:00

24 lines
450 B
C#

using Newtonsoft.Json;
using System;
using System.Collections.Generic;
[Serializable]
[JsonObject]
public class Question
{
public string id;
public string promptId;
public Dictionary<string, Proposition> propositions;
public double creationDate;
public Proposition GetFirstProposition()
{
return propositions["0"];
}
public Proposition GetSecondProposition()
{
return propositions["1"];
}
}