2017-04-13 08:38:01 +02:00
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
|
|
2016-09-24 15:38:26 +02:00
|
|
|
|
namespace TeleSharp.Generator
|
|
|
|
|
|
{
|
2017-04-13 08:38:01 +02:00
|
|
|
|
internal class Method
|
2016-09-24 15:38:26 +02:00
|
|
|
|
{
|
|
|
|
|
|
public int id { get; set; }
|
|
|
|
|
|
public string method { get; set; }
|
2017-04-13 08:38:01 +02:00
|
|
|
|
|
2016-09-24 15:38:26 +02:00
|
|
|
|
[Newtonsoft.Json.JsonProperty("params")]
|
|
|
|
|
|
public List<Param> Params { get; set; }
|
|
|
|
|
|
|
2017-04-13 08:38:01 +02:00
|
|
|
|
public string type { get; set; }
|
2016-09-24 15:38:26 +02:00
|
|
|
|
}
|
2017-04-13 08:38:01 +02:00
|
|
|
|
|
|
|
|
|
|
internal class Param
|
2016-09-24 15:38:26 +02:00
|
|
|
|
{
|
|
|
|
|
|
public string name { get; set; }
|
|
|
|
|
|
public string type { get; set; }
|
|
|
|
|
|
}
|
2017-04-13 08:38:01 +02:00
|
|
|
|
|
|
|
|
|
|
internal class Constructor
|
2016-09-24 15:38:26 +02:00
|
|
|
|
{
|
|
|
|
|
|
public int id { get; set; }
|
|
|
|
|
|
public string predicate { get; set; }
|
2017-04-13 08:38:01 +02:00
|
|
|
|
|
2016-09-24 15:38:26 +02:00
|
|
|
|
[Newtonsoft.Json.JsonProperty("params")]
|
|
|
|
|
|
public List<Param> Params { get; set; }
|
2017-04-13 08:38:01 +02:00
|
|
|
|
|
2016-09-24 15:38:26 +02:00
|
|
|
|
public string type { get; set; }
|
|
|
|
|
|
}
|
2017-04-13 08:38:01 +02:00
|
|
|
|
|
|
|
|
|
|
internal class Schema
|
2016-09-24 15:38:26 +02:00
|
|
|
|
{
|
|
|
|
|
|
public List<Constructor> constructors { get; set; }
|
|
|
|
|
|
public List<Method> methods { get; set; }
|
|
|
|
|
|
}
|
2017-04-13 08:38:01 +02:00
|
|
|
|
}
|