Repository navigation
Expand file tree
/
Copy pathClassSchemaTypes.cs
More file actions
57 lines (49 loc) · 1.5 KB
/
Copy pathClassSchemaTypes.cs
File metadata and controls
57 lines (49 loc) · 1.5 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
using Octokit.GraphQL.Core;
using Octokit.GraphQL.Core.Introspection;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace GraphQL_Schema_Types
{
public class ClassSchemaTypes
{
public Data data { get; set; }
}
public class Data
{
public GitHubSchema __schema { get; set; }
}
public class GitHubSchema
{
public List<GitHubSchemaType> types { get; set; }
}
public class GitHubSchemaType
{
public string name { get; set; }
public string kind { get; set; }
public string description { get; set; }
public List<Field> fields { get; set; }
public List<GitHubSchemaType> Interfaces { get; set; }
public List<GitHubSchemaType> PossibleTypes { get; set; }
public List<ArgInputValue> InputFields { get; set; }
public GitHubSchemaType OfType { get; set; }
}
public class Field
{
public string Name { get; set; }
public string Description { get; set; }
public List<ArgInputValue> Args { get; set; }
public GitHubSchemaType Type { get; set; }
public bool IsDeprecated { get; set; }
public string DeprecationReason { get; set; }
}
public class ArgInputValue
{
public string Name { get; set; }
public string Description { get; set; }
public string GitHubSchemaType { get; set; }
public string DefaultValue { get; set; }
}
}