TLSharp/TeleSharp.Generator/Models.cs

38 lines
863 B
C#
Raw Normal View History

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