55// Url: https://linq2graphql.com
66//---------------------------------------------------------------------
77
8+ using System . Collections . Generic ;
9+ using System ;
810using Linq2GraphQL . Client ;
911
1012namespace StartGG . Client ;
1113
12- public class MutationMethods
14+ public class MutationMethods : IMutationMethods
1315{
1416 private readonly GraphClient client ;
1517
@@ -18,174 +20,227 @@ public MutationMethods(GraphClient client)
1820 this . client = client ;
1921 }
2022
23+ public GraphQuery < Set > AssignStation ( ID setId , ID stationId )
24+ {
25+ var arguments = new List < ArgumentValue >
26+ {
27+ new ( "setId" , "ID!" , setId ) ,
28+ new ( "stationId" , "ID!" , stationId ) ,
29+ } ;
30+
31+ return new GraphQuery < Set > ( client , "assignStation" , OperationType . Mutation , arguments ) ;
32+ }
33+
34+ public GraphQuery < Set > AssignStream ( ID setId , ID streamId )
35+ {
36+ var arguments = new List < ArgumentValue >
37+ {
38+ new ( "setId" , "ID!" , setId ) ,
39+ new ( "streamId" , "ID!" , streamId ) ,
40+ } ;
41+
42+ return new GraphQuery < Set > ( client , "assignStream" , OperationType . Mutation , arguments ) ;
43+ }
44+
2145 public GraphQuery < bool ? > DeletePhase ( ID phaseId )
2246 {
23- var arguments = new List < ArgumentValue > { new ( "phaseId" , "ID!" , phaseId ) } ;
47+ var arguments = new List < ArgumentValue >
48+ {
49+ new ( "phaseId" , "ID!" , phaseId ) ,
50+ } ;
2451
25- return new ( client , "deletePhase" , OperationType . Mutation , arguments ) ;
52+ return new GraphQuery < bool ? > ( client , "deletePhase" , OperationType . Mutation , arguments ) ;
2653 }
2754
2855 public GraphQuery < bool ? > DeleteStation ( ID stationId )
2956 {
30- var arguments = new List < ArgumentValue > { new ( "stationId" , "ID!" , stationId ) } ;
57+ var arguments = new List < ArgumentValue >
58+ {
59+ new ( "stationId" , "ID!" , stationId ) ,
60+ } ;
3161
32- return new ( client , "deleteStation" , OperationType . Mutation , arguments ) ;
62+ return new GraphQuery < bool ? > ( client , "deleteStation" , OperationType . Mutation , arguments ) ;
3363 }
3464
3565 public GraphQuery < bool ? > DeleteWave ( ID waveId )
3666 {
37- var arguments = new List < ArgumentValue > { new ( "waveId" , "ID!" , waveId ) } ;
67+ var arguments = new List < ArgumentValue >
68+ {
69+ new ( "waveId" , "ID!" , waveId ) ,
70+ } ;
3871
39- return new ( client , "deleteWave" , OperationType . Mutation , arguments ) ;
72+ return new GraphQuery < bool ? > ( client , "deleteWave" , OperationType . Mutation , arguments ) ;
4073 }
4174
4275 public GraphQuery < string > GenerateRegistrationToken ( TournamentRegistrationInput registration , ID userId )
4376 {
44- var arguments = new List < ArgumentValue >
77+ var arguments = new List < ArgumentValue >
4578 {
46- new ( "registration" , "TournamentRegistrationInput!" , registration ) , new ( "userId" , "ID!" , userId )
79+ new ( "registration" , "TournamentRegistrationInput!" , registration ) ,
80+ new ( "userId" , "ID!" , userId ) ,
4781 } ;
4882
49- return new ( client , "generateRegistrationToken" , OperationType . Mutation , arguments ) ;
83+ return new GraphQuery < string > ( client , "generateRegistrationToken" , OperationType . Mutation , arguments ) ;
5084 }
5185
5286 public GraphQuery < Set > MarkSetCalled ( ID setId )
5387 {
54- var arguments = new List < ArgumentValue > { new ( "setId" , "ID!" , setId ) } ;
88+ var arguments = new List < ArgumentValue >
89+ {
90+ new ( "setId" , "ID!" , setId ) ,
91+ } ;
5592
56- return new ( client , "markSetCalled" , OperationType . Mutation , arguments ) ;
93+ return new GraphQuery < Set > ( client , "markSetCalled" , OperationType . Mutation , arguments ) ;
5794 }
5895
5996 public GraphQuery < Set > MarkSetInProgress ( ID setId )
6097 {
61- var arguments = new List < ArgumentValue > { new ( "setId" , "ID!" , setId ) } ;
98+ var arguments = new List < ArgumentValue >
99+ {
100+ new ( "setId" , "ID!" , setId ) ,
101+ } ;
62102
63- return new ( client , "markSetInProgress" , OperationType . Mutation , arguments ) ;
103+ return new GraphQuery < Set > ( client , "markSetInProgress" , OperationType . Mutation , arguments ) ;
64104 }
65105
66- public GraphQuery < Participant > RegisterForTournament ( TournamentRegistrationInput registration = null ,
67- string registrationToken = null )
106+ public GraphQuery < Participant > RegisterForTournament ( TournamentRegistrationInput registration = null , string registrationToken = null )
68107 {
69- var arguments = new List < ArgumentValue >
108+ var arguments = new List < ArgumentValue >
70109 {
71- new ( "registration" , "TournamentRegistrationInput" , registration ) ,
72- new ( "registrationToken" , "String" , registrationToken )
110+ new ( "registration" , "TournamentRegistrationInput" , registration ) ,
111+ new ( "registrationToken" , "String" , registrationToken ) ,
73112 } ;
74113
75- return new ( client , "registerForTournament" , OperationType . Mutation , arguments ) ;
114+ return new GraphQuery < Participant > ( client , "registerForTournament" , OperationType . Mutation , arguments ) ;
76115 }
77116
78- public GraphQuery < List < Set > > ReportBracketSet ( ID setId , ID winnerId = null , bool ? isDQ = null ,
79- List < BracketSetGameDataInput > gameData = null )
117+ public GraphQuery < List < Set > > ReportBracketSet ( ID setId , ID winnerId = null , bool ? isDQ = null , List < BracketSetGameDataInput > gameData = null )
80118 {
81- var arguments = new List < ArgumentValue >
119+ var arguments = new List < ArgumentValue >
82120 {
83- new ( "setId" , "ID!" , setId ) ,
84- new ( "winnerId" , "ID" , winnerId ) ,
85- new ( "isDQ" , "Boolean" , isDQ ) ,
86- new ( "gameData" , "[BracketSetGameDataInput]" , gameData )
121+ new ( "setId" , "ID!" , setId ) ,
122+ new ( "winnerId" , "ID" , winnerId ) ,
123+ new ( "isDQ" , "Boolean" , isDQ ) ,
124+ new ( "gameData" , "[BracketSetGameDataInput]" , gameData ) ,
87125 } ;
88126
89- return new ( client , "reportBracketSet" , OperationType . Mutation , arguments ) ;
127+ return new GraphQuery < List < Set > > ( client , "reportBracketSet" , OperationType . Mutation , arguments ) ;
90128 }
91129
92130 public GraphQuery < Set > ResetSet ( ID setId , bool ? resetDependentSets = null )
93131 {
94- var arguments = new List < ArgumentValue >
132+ var arguments = new List < ArgumentValue >
95133 {
96- new ( "setId" , "ID!" , setId ) , new ( "resetDependentSets" , "Boolean" , resetDependentSets )
134+ new ( "setId" , "ID!" , setId ) ,
135+ new ( "resetDependentSets" , "Boolean" , resetDependentSets ) ,
97136 } ;
98137
99- return new ( client , "resetSet" , OperationType . Mutation , arguments ) ;
138+ return new GraphQuery < Set > ( client , "resetSet" , OperationType . Mutation , arguments ) ;
100139 }
101140
102141 public GraphQuery < List < Seed > > ResolveScheduleConflicts ( ID tournamentId , ResolveConflictsOptions options = null )
103142 {
104- var arguments = new List < ArgumentValue >
143+ var arguments = new List < ArgumentValue >
105144 {
106- new ( "tournamentId" , "ID!" , tournamentId ) , new ( "options" , "ResolveConflictsOptions" , options )
145+ new ( "tournamentId" , "ID!" , tournamentId ) ,
146+ new ( "options" , "ResolveConflictsOptions" , options ) ,
107147 } ;
108148
109- return new ( client , "resolveScheduleConflicts" , OperationType . Mutation , arguments ) ;
149+ return new GraphQuery < List < Seed > > ( client , "resolveScheduleConflicts" , OperationType . Mutation , arguments ) ;
110150 }
111151
112152 public GraphQuery < List < Seed > > SwapSeeds ( ID phaseId , ID seed1Id , ID seed2Id )
113153 {
114- var arguments = new List < ArgumentValue >
154+ var arguments = new List < ArgumentValue >
115155 {
116- new ( "phaseId" , "ID!" , phaseId ) , new ( "seed1Id" , "ID!" , seed1Id ) , new ( "seed2Id" , "ID!" , seed2Id )
156+ new ( "phaseId" , "ID!" , phaseId ) ,
157+ new ( "seed1Id" , "ID!" , seed1Id ) ,
158+ new ( "seed2Id" , "ID!" , seed2Id ) ,
117159 } ;
118160
119- return new ( client , "swapSeeds" , OperationType . Mutation , arguments ) ;
161+ return new GraphQuery < List < Seed > > ( client , "swapSeeds" , OperationType . Mutation , arguments ) ;
120162 }
121163
122- public GraphQuery < Set > UpdateBracketSet ( ID setId , ID winnerId = null , bool ? isDQ = null ,
123- List < BracketSetGameDataInput > gameData = null )
164+ public GraphQuery < Set > UpdateBracketSet ( ID setId , ID winnerId = null , bool ? isDQ = null , List < BracketSetGameDataInput > gameData = null )
124165 {
125- var arguments = new List < ArgumentValue >
166+ var arguments = new List < ArgumentValue >
126167 {
127- new ( "setId" , "ID!" , setId ) ,
128- new ( "winnerId" , "ID" , winnerId ) ,
129- new ( "isDQ" , "Boolean" , isDQ ) ,
130- new ( "gameData" , "[BracketSetGameDataInput]" , gameData )
168+ new ( "setId" , "ID!" , setId ) ,
169+ new ( "winnerId" , "ID" , winnerId ) ,
170+ new ( "isDQ" , "Boolean" , isDQ ) ,
171+ new ( "gameData" , "[BracketSetGameDataInput]" , gameData ) ,
131172 } ;
132173
133- return new ( client , "updateBracketSet" , OperationType . Mutation , arguments ) ;
174+ return new GraphQuery < Set > ( client , "updateBracketSet" , OperationType . Mutation , arguments ) ;
134175 }
135176
136177 public GraphQuery < List < PhaseGroup > > UpdatePhaseGroups ( List < PhaseGroupUpdateInput > groupConfigs )
137178 {
138- var arguments = new List < ArgumentValue > { new ( "groupConfigs" , "[PhaseGroupUpdateInput]!" , groupConfigs ) } ;
179+ var arguments = new List < ArgumentValue >
180+ {
181+ new ( "groupConfigs" , "[PhaseGroupUpdateInput]!" , groupConfigs ) ,
182+ } ;
183+
184+ return new GraphQuery < List < PhaseGroup > > ( client , "updatePhaseGroups" , OperationType . Mutation , arguments ) ;
185+ }
186+
187+ public GraphQuery < Phase > UpdatePhaseSeeding ( ID phaseId , List < UpdatePhaseSeedInfo > seedMapping , UpdatePhaseSeedingOptions options = null )
188+ {
189+ var arguments = new List < ArgumentValue >
190+ {
191+ new ( "phaseId" , "ID!" , phaseId ) ,
192+ new ( "seedMapping" , "[UpdatePhaseSeedInfo]!" , seedMapping ) ,
193+ new ( "options" , "UpdatePhaseSeedingOptions" , options ) ,
194+ } ;
139195
140- return new ( client , "updatePhaseGroups ", OperationType . Mutation , arguments ) ;
196+ return new GraphQuery < Phase > ( client , "updatePhaseSeeding ", OperationType . Mutation , arguments ) ;
141197 }
142198
143- public GraphQuery < Phase > UpdatePhaseSeeding ( ID phaseId , List < UpdatePhaseSeedInfo > seedMapping ,
144- UpdatePhaseSeedingOptions options = null )
199+ public GraphQuery < Set > UpdateVodUrl ( ID setId , string vodUrl = null )
145200 {
146- var arguments = new List < ArgumentValue >
201+ var arguments = new List < ArgumentValue >
147202 {
148- new ( "phaseId" , "ID!" , phaseId ) ,
149- new ( "seedMapping" , "[UpdatePhaseSeedInfo]!" , seedMapping ) ,
150- new ( "options" , "UpdatePhaseSeedingOptions" , options )
203+ new ( "setId" , "ID!" , setId ) ,
204+ new ( "vodUrl" , "String" , vodUrl ) ,
151205 } ;
152206
153- return new ( client , "updatePhaseSeeding ", OperationType . Mutation , arguments ) ;
207+ return new GraphQuery < Set > ( client , "updateVodUrl ", OperationType . Mutation , arguments ) ;
154208 }
155209
156210 public GraphQuery < Phase > UpsertPhase ( PhaseUpsertInput payload , ID phaseId = null , ID eventId = null )
157211 {
158- var arguments = new List < ArgumentValue >
212+ var arguments = new List < ArgumentValue >
159213 {
160- new ( "phaseId" , "ID" , phaseId ) ,
161- new ( "eventId" , "ID" , eventId ) ,
162- new ( "payload" , "PhaseUpsertInput!" , payload )
214+ new ( "phaseId" , "ID" , phaseId ) ,
215+ new ( "eventId" , "ID" , eventId ) ,
216+ new ( "payload" , "PhaseUpsertInput!" , payload ) ,
163217 } ;
164218
165- return new ( client , "upsertPhase" , OperationType . Mutation , arguments ) ;
219+ return new GraphQuery < Phase > ( client , "upsertPhase" , OperationType . Mutation , arguments ) ;
166220 }
167221
168222 public GraphQuery < Stations > UpsertStation ( StationUpsertInput fields , ID stationId = null , ID tournamentId = null )
169223 {
170- var arguments = new List < ArgumentValue >
224+ var arguments = new List < ArgumentValue >
171225 {
172- new ( "stationId" , "ID" , stationId ) ,
173- new ( "tournamentId" , "ID" , tournamentId ) ,
174- new ( "fields" , "StationUpsertInput!" , fields )
226+ new ( "stationId" , "ID" , stationId ) ,
227+ new ( "tournamentId" , "ID" , tournamentId ) ,
228+ new ( "fields" , "StationUpsertInput!" , fields ) ,
175229 } ;
176230
177- return new ( client , "upsertStation" , OperationType . Mutation , arguments ) ;
231+ return new GraphQuery < Stations > ( client , "upsertStation" , OperationType . Mutation , arguments ) ;
178232 }
179233
180234 public GraphQuery < Wave > UpsertWave ( WaveUpsertInput fields , ID waveId = null , ID tournamentId = null )
181235 {
182- var arguments = new List < ArgumentValue >
236+ var arguments = new List < ArgumentValue >
183237 {
184- new ( "waveId" , "ID" , waveId ) ,
185- new ( "tournamentId" , "ID" , tournamentId ) ,
186- new ( "fields" , "WaveUpsertInput!" , fields )
238+ new ( "waveId" , "ID" , waveId ) ,
239+ new ( "tournamentId" , "ID" , tournamentId ) ,
240+ new ( "fields" , "WaveUpsertInput!" , fields ) ,
187241 } ;
188242
189- return new ( client , "upsertWave" , OperationType . Mutation , arguments ) ;
243+ return new GraphQuery < Wave > ( client , "upsertWave" , OperationType . Mutation , arguments ) ;
244+ }
245+
190246 }
191- }
0 commit comments