23 lines
442 B
C#
Raw Normal View History

2024-01-27 20:05:24 +01:00
using Newtonsoft.Json;
2024-01-27 10:19:32 +01:00
using System;
2024-01-27 22:55:04 +01:00
using System.Collections.Generic;
2024-01-27 10:19:32 +01:00
2024-01-27 19:58:02 +01:00
[Serializable]
2024-01-27 20:05:24 +01:00
[JsonObject]
2024-01-27 10:19:32 +01:00
public class Question
{
2024-01-28 11:46:24 +01:00
public string id;
2024-01-27 10:19:32 +01:00
public string promptId;
2024-01-28 15:42:32 +01:00
public Dictionary<int, Proposition> propositions;
2024-01-27 22:55:04 +01:00
public double creationDate;
2024-01-28 11:56:16 +01:00
public Proposition GetFirstProposition()
{
2024-01-28 15:42:32 +01:00
return propositions[0];
2024-01-28 11:56:16 +01:00
}
public Proposition GetSecondProposition()
{
2024-01-28 15:42:32 +01:00
return propositions[1];
2024-01-28 11:56:16 +01:00
}
2024-01-27 10:19:32 +01:00
}