Arma Reforger Explorer 1.7.0.54
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
Loading...
Searching...
No Matches
NetApiDocs.c
Go to the documentation of this file.
1
8
176
177#ifdef DOXYGEN
178
180class ExampleRequest : JsonApiStruct
181{
182 string input;
183
184 void ExampleRequest()
185 {
186 RegV("input");
187 }
188}
189
190class ExampleResponse : JsonApiStruct
191{
192 string output;
193
194 void ExampleResponse()
195 {
196 RegV("output");
197 }
198}
199
200// Class that is being called
201class ExampleCall : NetApiHandler
202{
203 override JsonApiStruct GetRequest()
204 {
205 return new ExampleRequest();
206 }
207
208 override JsonApiStruct GetResponse(JsonApiStruct request)
209 {
210 ExampleRequest req = ExampleRequest.Cast(request);
211 ExampleResponse response = new ExampleResponse();
212
213 Print(req.input);
214 response.output = "Hello from Workbench";
215
216 return response;
217 }
218
219}
221
222
223#endif
override JsonApiStruct GetResponse(JsonApiStruct request)
SCR_AICombatMoveRequestBase GetRequest()
base classes for filtering in server browser
proto void Print(void var, LogLevel level=LogLevel.NORMAL)
Prints content of variable to console/log.