Add JSON support ...finally!

This commit is contained in:
Marco Realacci 2024-01-31 03:24:59 +01:00
parent 391862b3fb
commit 276ae8af2e
3 changed files with 24 additions and 4 deletions

View file

@ -3,13 +3,17 @@ using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Newtonsoft.Json;
namespace SoUnBot.Modules.OttoLinux
{
public class Question
{
[JsonProperty("quest")]
public String Quest { get; set; }
[JsonProperty("answers")]
public List<string> Answers { get; }
[JsonProperty("correct")]
public int Correct { get; private set; }
public Question(String quest)