|
| 1 | +//--------------------------------------------------------------------- |
| 2 | +// This code was automatically generated by Linq2GraphQL |
| 3 | +// Please don't edit this file |
| 4 | +// Github:https://github.com/linq2graphql/linq2graphql.client |
| 5 | +// Url: https://linq2graphql.com |
| 6 | +//--------------------------------------------------------------------- |
| 7 | + |
1 | 8 | using System; |
2 | 9 | using System.Collections.Generic; |
3 | 10 | using System.Text.Json.Serialization; |
|
6 | 13 |
|
7 | 14 | namespace StarWars.Client; |
8 | 15 |
|
| 16 | + |
9 | 17 | public static class FilmExtensions |
10 | 18 | { |
11 | | - [GraphMethod("speciesConnection")] |
12 | | - public static FilmSpeciesConnection SpeciesConnection(this Film film, [GraphArgument("String")] string after = null, [GraphArgument("Int")] int? first = null, [GraphArgument("String")] string before = null, [GraphArgument("Int")] int? last = null) |
| 19 | + [GraphQLMember("speciesConnection")] |
| 20 | + public static FilmSpeciesConnection SpeciesConnection(this Film film, [GraphQLArgument("after", "String")] string after = null, [GraphQLArgument("first", "Int")] int? first = null, [GraphQLArgument("before", "String")] string before = null, [GraphQLArgument("last", "Int")] int? last = null) |
13 | 21 | { |
14 | | - return film.GetMethodValue<FilmSpeciesConnection>("speciesConnection", after, first, before, last); |
| 22 | + return film.GetMethodValue<FilmSpeciesConnection>("speciesConnection", after, first, before, last); |
15 | 23 | } |
16 | 24 |
|
17 | | - [GraphMethod("starshipConnection")] |
18 | | - public static FilmStarshipsConnection StarshipConnection(this Film film, [GraphArgument("String")] string after = null, [GraphArgument("Int")] int? first = null, [GraphArgument("String")] string before = null, [GraphArgument("Int")] int? last = null) |
| 25 | + [GraphQLMember("starshipConnection")] |
| 26 | + public static FilmStarshipsConnection StarshipConnection(this Film film, [GraphQLArgument("after", "String")] string after = null, [GraphQLArgument("first", "Int")] int? first = null, [GraphQLArgument("before", "String")] string before = null, [GraphQLArgument("last", "Int")] int? last = null) |
19 | 27 | { |
20 | | - return film.GetMethodValue<FilmStarshipsConnection>("starshipConnection", after, first, before, last); |
| 28 | + return film.GetMethodValue<FilmStarshipsConnection>("starshipConnection", after, first, before, last); |
21 | 29 | } |
22 | 30 |
|
23 | | - [GraphMethod("vehicleConnection")] |
24 | | - public static FilmVehiclesConnection VehicleConnection(this Film film, [GraphArgument("String")] string after = null, [GraphArgument("Int")] int? first = null, [GraphArgument("String")] string before = null, [GraphArgument("Int")] int? last = null) |
| 31 | + [GraphQLMember("vehicleConnection")] |
| 32 | + public static FilmVehiclesConnection VehicleConnection(this Film film, [GraphQLArgument("after", "String")] string after = null, [GraphQLArgument("first", "Int")] int? first = null, [GraphQLArgument("before", "String")] string before = null, [GraphQLArgument("last", "Int")] int? last = null) |
25 | 33 | { |
26 | | - return film.GetMethodValue<FilmVehiclesConnection>("vehicleConnection", after, first, before, last); |
| 34 | + return film.GetMethodValue<FilmVehiclesConnection>("vehicleConnection", after, first, before, last); |
27 | 35 | } |
28 | 36 |
|
29 | | - [GraphMethod("characterConnection")] |
30 | | - public static FilmCharactersConnection CharacterConnection(this Film film, [GraphArgument("String")] string after = null, [GraphArgument("Int")] int? first = null, [GraphArgument("String")] string before = null, [GraphArgument("Int")] int? last = null) |
| 37 | + [GraphQLMember("characterConnection")] |
| 38 | + public static FilmCharactersConnection CharacterConnection(this Film film, [GraphQLArgument("after", "String")] string after = null, [GraphQLArgument("first", "Int")] int? first = null, [GraphQLArgument("before", "String")] string before = null, [GraphQLArgument("last", "Int")] int? last = null) |
31 | 39 | { |
32 | | - return film.GetMethodValue<FilmCharactersConnection>("characterConnection", after, first, before, last); |
| 40 | + return film.GetMethodValue<FilmCharactersConnection>("characterConnection", after, first, before, last); |
33 | 41 | } |
34 | 42 |
|
35 | | - [GraphMethod("planetConnection")] |
36 | | - public static FilmPlanetsConnection PlanetConnection(this Film film, [GraphArgument("String")] string after = null, [GraphArgument("Int")] int? first = null, [GraphArgument("String")] string before = null, [GraphArgument("Int")] int? last = null) |
| 43 | + [GraphQLMember("planetConnection")] |
| 44 | + public static FilmPlanetsConnection PlanetConnection(this Film film, [GraphQLArgument("after", "String")] string after = null, [GraphQLArgument("first", "Int")] int? first = null, [GraphQLArgument("before", "String")] string before = null, [GraphQLArgument("last", "Int")] int? last = null) |
37 | 45 | { |
38 | | - return film.GetMethodValue<FilmPlanetsConnection>("planetConnection", after, first, before, last); |
| 46 | + return film.GetMethodValue<FilmPlanetsConnection>("planetConnection", after, first, before, last); |
39 | 47 | } |
40 | 48 |
|
41 | 49 | } |
42 | 50 |
|
| 51 | +/// <summary> |
| 52 | +/// A single film. |
| 53 | +/// </summary> |
43 | 54 | public partial class Film : GraphQLTypeBase, Node |
44 | 55 | { |
| 56 | + /// <summary> |
| 57 | + /// The title of this film. |
| 58 | + /// </summary> |
| 59 | + [GraphQLMember("title")] |
45 | 60 | [JsonPropertyName("title")] |
46 | | - public string Title { get; set; } |
47 | | - |
| 61 | + public string Title { get; set; } |
48 | 62 |
|
| 63 | + /// <summary> |
| 64 | + /// The episode number of this film. |
| 65 | + /// </summary> |
| 66 | + [GraphQLMember("episodeID")] |
49 | 67 | [JsonPropertyName("episodeID")] |
50 | | - public int? EpisodeID { get; set; } |
51 | | - |
| 68 | + public int? EpisodeID { get; set; } |
52 | 69 |
|
| 70 | + /// <summary> |
| 71 | + /// The opening paragraphs at the beginning of this film. |
| 72 | + /// </summary> |
| 73 | + [GraphQLMember("openingCrawl")] |
53 | 74 | [JsonPropertyName("openingCrawl")] |
54 | | - public string OpeningCrawl { get; set; } |
55 | | - |
| 75 | + public string OpeningCrawl { get; set; } |
56 | 76 |
|
| 77 | + /// <summary> |
| 78 | + /// The name of the director of this film. |
| 79 | + /// </summary> |
| 80 | + [GraphQLMember("director")] |
57 | 81 | [JsonPropertyName("director")] |
58 | | - public string Director { get; set; } |
59 | | - |
| 82 | + public string Director { get; set; } |
60 | 83 |
|
| 84 | + /// <summary> |
| 85 | + /// The name(s) of the producer(s) of this film. |
| 86 | + /// </summary> |
| 87 | + [GraphQLMember("producers")] |
61 | 88 | [JsonPropertyName("producers")] |
62 | | - public List<string> Producers { get; set; } |
63 | | - |
| 89 | + public List<string> Producers { get; set; } |
64 | 90 |
|
| 91 | + /// <summary> |
| 92 | + /// The ISO 8601 date format of film release at original creator country. |
| 93 | + /// </summary> |
| 94 | + [GraphQLMember("releaseDate")] |
65 | 95 | [JsonPropertyName("releaseDate")] |
66 | | - public string ReleaseDate { get; set; } |
67 | | - |
68 | | - |
| 96 | + public string ReleaseDate { get; set; } |
69 | 97 |
|
70 | 98 | private LazyProperty<FilmSpeciesConnection> _speciesConnection = new(); |
71 | 99 | /// <summary> |
72 | 100 | /// Do not use in Query, only to retrive result |
73 | 101 | /// </summary> |
74 | | - [GraphShadowProperty] |
75 | 102 | public FilmSpeciesConnection SpeciesConnection => _speciesConnection.Value(() => GetFirstMethodValue<FilmSpeciesConnection>("speciesConnection")); |
76 | | - // public FilmSpeciesConnection SpeciesConnection { get; set; } |
77 | | - |
78 | | - |
79 | 103 |
|
80 | 104 | private LazyProperty<FilmStarshipsConnection> _starshipConnection = new(); |
81 | 105 | /// <summary> |
82 | 106 | /// Do not use in Query, only to retrive result |
83 | 107 | /// </summary> |
84 | | - [GraphShadowProperty] |
85 | 108 | public FilmStarshipsConnection StarshipConnection => _starshipConnection.Value(() => GetFirstMethodValue<FilmStarshipsConnection>("starshipConnection")); |
86 | | - // public FilmStarshipsConnection StarshipConnection { get; set; } |
87 | | - |
88 | | - |
89 | 109 |
|
90 | 110 | private LazyProperty<FilmVehiclesConnection> _vehicleConnection = new(); |
91 | 111 | /// <summary> |
92 | 112 | /// Do not use in Query, only to retrive result |
93 | 113 | /// </summary> |
94 | | - [GraphShadowProperty] |
95 | 114 | public FilmVehiclesConnection VehicleConnection => _vehicleConnection.Value(() => GetFirstMethodValue<FilmVehiclesConnection>("vehicleConnection")); |
96 | | - // public FilmVehiclesConnection VehicleConnection { get; set; } |
97 | | - |
98 | | - |
99 | 115 |
|
100 | 116 | private LazyProperty<FilmCharactersConnection> _characterConnection = new(); |
101 | 117 | /// <summary> |
102 | 118 | /// Do not use in Query, only to retrive result |
103 | 119 | /// </summary> |
104 | | - [GraphShadowProperty] |
105 | 120 | public FilmCharactersConnection CharacterConnection => _characterConnection.Value(() => GetFirstMethodValue<FilmCharactersConnection>("characterConnection")); |
106 | | - // public FilmCharactersConnection CharacterConnection { get; set; } |
107 | | - |
108 | | - |
109 | 121 |
|
110 | 122 | private LazyProperty<FilmPlanetsConnection> _planetConnection = new(); |
111 | 123 | /// <summary> |
112 | 124 | /// Do not use in Query, only to retrive result |
113 | 125 | /// </summary> |
114 | | - [GraphShadowProperty] |
115 | 126 | public FilmPlanetsConnection PlanetConnection => _planetConnection.Value(() => GetFirstMethodValue<FilmPlanetsConnection>("planetConnection")); |
116 | | - // public FilmPlanetsConnection PlanetConnection { get; set; } |
117 | | - |
118 | 127 |
|
| 128 | + /// <summary> |
| 129 | + /// The ISO 8601 date format of the time that this resource was created. |
| 130 | + /// </summary> |
| 131 | + [GraphQLMember("created")] |
119 | 132 | [JsonPropertyName("created")] |
120 | | - public string Created { get; set; } |
121 | | - |
| 133 | + public string Created { get; set; } |
122 | 134 |
|
| 135 | + /// <summary> |
| 136 | + /// The ISO 8601 date format of the time that this resource was edited. |
| 137 | + /// </summary> |
| 138 | + [GraphQLMember("edited")] |
123 | 139 | [JsonPropertyName("edited")] |
124 | | - public string Edited { get; set; } |
125 | | - |
| 140 | + public string Edited { get; set; } |
126 | 141 |
|
| 142 | + /// <summary> |
| 143 | + /// The ID of an object |
| 144 | + /// </summary> |
| 145 | + [GraphQLMember("id")] |
127 | 146 | [JsonPropertyName("id")] |
128 | | - public string Id { get; set; } |
129 | | - |
130 | | - |
131 | | - |
132 | | - |
133 | | - |
| 147 | + public string Id { get; set; } |
134 | 148 |
|
| 149 | + [GraphQLMember("__typename")] |
135 | 150 | [JsonPropertyName("__typename")] |
136 | 151 | public string __TypeName { get; set; } |
137 | | - } |
| 152 | +} |
0 commit comments