mirror of
https://gitlab.com/Kwoth/nadekobot.git
synced 2025-09-11 01:38:27 -04:00
43 lines
937 B
C#
43 lines
937 B
C#
using Newtonsoft.Json;
|
|
using System.Collections.Generic;
|
|
|
|
namespace NadekoBot.Modules.Searches.Common
|
|
{
|
|
public class Audio
|
|
{
|
|
public string Url { get; set; }
|
|
}
|
|
|
|
public class Example
|
|
{
|
|
public List<Audio> Audio { get; set; }
|
|
public string Text { get; set; }
|
|
}
|
|
|
|
public class GramaticalInfo
|
|
{
|
|
public string Type { get; set; }
|
|
}
|
|
|
|
public class Sens
|
|
{
|
|
public object Definition { get; set; }
|
|
public List<Example> Examples { get; set; }
|
|
[JsonProperty("gramatical_info")]
|
|
public GramaticalInfo GramaticalInfo { get; set; }
|
|
}
|
|
|
|
public class Result
|
|
{
|
|
[JsonProperty("part_of_speech")]
|
|
public string PartOfSpeech { get; set; }
|
|
public List<Sens> Senses { get; set; }
|
|
public string Url { get; set; }
|
|
}
|
|
|
|
public class DefineModel
|
|
{
|
|
public List<Result> Results { get; set; }
|
|
}
|
|
}
|