mirror of
https://github.com/appinfosapienza/so-un-bot.git
synced 2025-05-06 08:46:18 +02:00
Add JSON support ...finally!
This commit is contained in:
parent
391862b3fb
commit
276ae8af2e
3 changed files with 24 additions and 4 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue