Rev 90 | Details | Compare with Previous | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
90 | gunterl | 1 | //------------------------------------------------------------------------------ |
2 | // <auto-generated> |
||
3 | // This code was generated by a tool. |
||
4 | // Runtime Version:2.0.50727.312 |
||
5 | // |
||
6 | // Changes to this file may cause incorrect behavior and will be lost if |
||
7 | // the code is regenerated. |
||
8 | // </auto-generated> |
||
9 | //------------------------------------------------------------------------------ |
||
10 | |||
11 | using Microsoft.Ccr.Core; |
||
12 | using Microsoft.Dss.Core.Attributes; |
||
13 | using Microsoft.Dss.ServiceModel.Dssp; |
||
14 | using Microsoft.Dss.Core.DsspHttp; |
||
15 | using System; |
||
16 | using System.Collections.Generic; |
||
17 | using W3C.Soap; |
||
18 | using roboboard = Robotics.RoboBoard; |
||
19 | |||
20 | |||
21 | namespace Robotics.RoboBoard |
||
22 | { |
||
23 | |||
24 | /// <summary> |
||
25 | /// RoboBoard Contract class |
||
26 | /// </summary> |
||
27 | public sealed class Contract |
||
28 | { |
||
29 | /// <summary> |
||
30 | /// The Dss Service contract |
||
31 | /// </summary> |
||
32 | public const String Identifier = "http://schemas.tempuri.org/2007/08/roboboardservice.html"; |
||
33 | } |
||
34 | /// <summary> |
||
35 | /// The RoboBoard State |
||
36 | /// </summary> |
||
37 | [DataContract()] |
||
38 | public class RoboBoardState |
||
39 | { |
||
40 | private string _ComPort = "COM1"; |
||
41 | |||
42 | [DataMember] |
||
43 | public string ComPort |
||
44 | { |
||
45 | get { return _ComPort; } |
||
46 | set { _ComPort = value; } |
||
47 | } |
||
48 | |||
49 | private string _Command; |
||
50 | |||
51 | } |
||
52 | /// <summary> |
||
53 | /// RoboBoard Main Operations Port |
||
54 | /// </summary> |
||
55 | [ServicePort()] |
||
56 | public class RoboBoardOperations : PortSet< |
||
57 | DsspDefaultLookup, |
||
58 | DsspDefaultDrop, |
||
59 | Get, |
||
60 | HttpGet, |
||
61 | Replace, |
||
97 | gunterl | 62 | InitComplete, |
90 | gunterl | 63 | SetComPort, |
64 | ReceiveCommand, |
||
65 | SendCommand, |
||
66 | Level, |
||
67 | Control, |
||
68 | SetAltitute, |
||
69 | SetGas, |
||
70 | SetGier, |
||
71 | IncrementTick, |
||
72 | Subscribe> |
||
73 | { |
||
74 | } |
||
75 | |||
76 | |||
77 | //------------------------------------------------------------------------- |
||
78 | /// <summary> |
||
79 | /// RoboBoard Get Operation |
||
80 | /// </summary> |
||
81 | public class Get : Get<GetRequestType, PortSet<RoboBoardState, Fault>> |
||
82 | { |
||
83 | /// <summary> |
||
84 | /// RoboBoard Get Operation |
||
85 | /// </summary> |
||
86 | public Get() |
||
87 | { |
||
88 | } |
||
89 | /// <summary> |
||
90 | /// RoboBoard Get Operation |
||
91 | /// </summary> |
||
92 | public Get(Microsoft.Dss.ServiceModel.Dssp.GetRequestType body) : |
||
93 | base(body) |
||
94 | { |
||
95 | } |
||
96 | /// <summary> |
||
97 | /// RoboBoard Get Operation |
||
98 | /// </summary> |
||
99 | public Get(Microsoft.Dss.ServiceModel.Dssp.GetRequestType body, Microsoft.Ccr.Core.PortSet<RoboBoardState,W3C.Soap.Fault> responsePort) : |
||
100 | base(body, responsePort) |
||
101 | { |
||
102 | } |
||
103 | |||
104 | } |
||
105 | |||
106 | //------------------------------------------------------------------------- |
||
107 | public class Replace : Replace<RoboBoardState, PortSet<DefaultReplaceResponseType, Fault>> |
||
108 | { |
||
109 | } |
||
110 | |||
111 | //------------------------------------------------------------------------- |
||
97 | gunterl | 112 | // Init Complete Handler |
113 | // tbd |
||
114 | public class InitComplete : Update<InitCompleteRequest, |
||
115 | PortSet<DefaultUpdateResponseType, Fault>> |
||
116 | { |
||
117 | public InitComplete() |
||
118 | { |
||
119 | } |
||
120 | |||
121 | public InitComplete(string Command) |
||
122 | : base(new InitCompleteRequest(Command)) |
||
123 | { |
||
124 | } |
||
125 | } |
||
126 | |||
127 | [DataContract] |
||
128 | public class InitCompleteRequest |
||
129 | { |
||
130 | public InitCompleteRequest() |
||
131 | { |
||
132 | } |
||
133 | |||
134 | public InitCompleteRequest(string command) |
||
135 | { |
||
136 | Command = command; |
||
137 | } |
||
138 | |||
139 | private string _Command; |
||
140 | |||
141 | [DataMember] |
||
142 | public string Command |
||
143 | { |
||
144 | get { return _Command; } |
||
145 | set { _Command = value; } |
||
146 | } |
||
147 | } |
||
148 | |||
149 | //------------------------------------------------------------------------- |
||
90 | gunterl | 150 | // Set Com Port Handler |
151 | public class SetComPort : Update<SetComPortRequest, |
||
152 | PortSet<DefaultUpdateResponseType, Fault>> |
||
153 | { |
||
154 | public SetComPort() |
||
155 | { |
||
156 | } |
||
157 | |||
158 | public SetComPort(string Portname) |
||
159 | : base(new SetComPortRequest(Portname)) |
||
160 | { |
||
161 | } |
||
162 | |||
163 | |||
164 | } |
||
165 | |||
166 | [DataContract] |
||
167 | public class SetComPortRequest |
||
168 | { |
||
169 | |||
170 | public SetComPortRequest() |
||
171 | { |
||
172 | } |
||
173 | |||
174 | public SetComPortRequest(string Portname) |
||
175 | { |
||
176 | PortName = Portname; |
||
177 | } |
||
178 | |||
179 | private string _PortName; |
||
180 | |||
181 | [DataMember] |
||
182 | public string PortName |
||
183 | { |
||
184 | get { return _PortName; } |
||
185 | set { _PortName = value; } |
||
186 | } |
||
187 | } |
||
188 | |||
189 | //------------------------------------------------------------------------- |
||
190 | // Receive Command Handler |
||
191 | // tbd |
||
192 | public class ReceiveCommand : Update<ReceiveCommandRequest, |
||
193 | PortSet<DefaultUpdateResponseType, Fault>> |
||
194 | { |
||
195 | public ReceiveCommand() |
||
196 | { |
||
197 | } |
||
198 | |||
199 | public ReceiveCommand(string Command) |
||
200 | : base(new ReceiveCommandRequest(Command)) |
||
201 | { |
||
202 | } |
||
203 | } |
||
204 | |||
205 | [DataContract] |
||
206 | public class ReceiveCommandRequest |
||
207 | { |
||
208 | public ReceiveCommandRequest() |
||
209 | { |
||
210 | } |
||
211 | |||
212 | public ReceiveCommandRequest(string command) |
||
213 | { |
||
214 | Command = command; |
||
215 | } |
||
216 | |||
217 | private string _Command; |
||
218 | |||
219 | [DataMember] |
||
220 | public string Command |
||
221 | { |
||
222 | get { return _Command; } |
||
223 | set { _Command = value; } |
||
224 | } |
||
225 | } |
||
226 | |||
227 | //------------------------------------------------------------------------- |
||
228 | // Send Command Request Handler |
||
229 | // tbd |
||
230 | public class SendCommand : Update<SendCommandRequest, |
||
231 | PortSet<DefaultUpdateResponseType, Fault>> |
||
232 | { |
||
233 | public SendCommand() |
||
234 | { |
||
235 | } |
||
236 | |||
237 | public SendCommand(string Command) |
||
238 | : base(new SendCommandRequest(Command)) |
||
239 | { |
||
240 | } |
||
241 | } |
||
242 | |||
243 | [DataContract] |
||
244 | public class SendCommandRequest |
||
245 | { |
||
246 | public SendCommandRequest() |
||
247 | { |
||
248 | } |
||
249 | |||
250 | public SendCommandRequest(string command) |
||
251 | { |
||
252 | Command = command; |
||
253 | } |
||
254 | |||
255 | private string _Command; |
||
256 | |||
257 | [DataMember] |
||
258 | public string Command |
||
259 | { |
||
260 | get { return _Command; } |
||
261 | set { _Command = value; } |
||
262 | } |
||
263 | } |
||
264 | |||
265 | //------------------------------------------------------------------------- |
||
266 | // Level Handler |
||
267 | public class Level : Update<LevelRequest, |
||
268 | PortSet<DefaultUpdateResponseType, Fault>> |
||
269 | { |
||
270 | public Level() |
||
271 | { |
||
272 | } |
||
273 | |||
274 | public Level(int Nick, int Roll) |
||
275 | : base(new LevelRequest(Nick,Roll)) |
||
276 | { |
||
277 | } |
||
278 | } |
||
279 | |||
280 | [DataContract] |
||
281 | public class LevelRequest |
||
282 | { |
||
283 | public LevelRequest() |
||
284 | { |
||
285 | } |
||
286 | |||
287 | public LevelRequest(int nick, int roll) |
||
288 | { |
||
289 | Nick = nick; |
||
290 | Roll = roll; |
||
291 | } |
||
292 | |||
293 | private int _Roll; |
||
294 | private int _Nick; |
||
295 | |||
296 | [DataMember] |
||
297 | public int Roll |
||
298 | { |
||
299 | get { return _Roll; } |
||
300 | set { _Roll = value; } |
||
301 | } |
||
302 | |||
303 | [DataMember] |
||
304 | public int Nick |
||
305 | { |
||
306 | get { return _Nick; } |
||
307 | set { _Nick = value; } |
||
308 | } |
||
309 | } |
||
310 | |||
311 | //------------------------------------------------------------------------- |
||
312 | // Altitute Handler |
||
313 | public class SetAltitute : Update<SetAltituteRequest, |
||
314 | PortSet<DefaultUpdateResponseType, Fault>> |
||
315 | { |
||
316 | public SetAltitute() |
||
317 | { |
||
318 | } |
||
319 | |||
320 | public SetAltitute(float Altitute) |
||
321 | : base(new SetAltituteRequest(Altitute)) |
||
322 | { |
||
323 | } |
||
324 | } |
||
325 | |||
326 | [DataContract] |
||
327 | public class SetAltituteRequest |
||
328 | { |
||
329 | public SetAltituteRequest() |
||
330 | { |
||
331 | } |
||
332 | |||
333 | public SetAltituteRequest(float altitute) |
||
334 | { |
||
335 | Altitute = altitute; |
||
336 | } |
||
337 | |||
338 | private float _Altitute; |
||
339 | |||
340 | [DataMember] |
||
341 | public float Altitute |
||
342 | { |
||
343 | get { return _Altitute; } |
||
344 | set { _Altitute = value; } |
||
345 | } |
||
346 | } |
||
347 | |||
348 | //------------------------------------------------------------------------- |
||
349 | // Gier Handler |
||
350 | public class SetGier : Update<SetGierRequest, |
||
351 | PortSet<DefaultUpdateResponseType, Fault>> |
||
352 | { |
||
353 | public SetGier() |
||
354 | { |
||
355 | } |
||
356 | |||
357 | public SetGier(float Gier) |
||
358 | : base(new SetGierRequest(Gier)) |
||
359 | { |
||
360 | } |
||
361 | } |
||
362 | |||
363 | [DataContract] |
||
364 | public class SetGierRequest |
||
365 | { |
||
366 | public SetGierRequest() |
||
367 | { |
||
368 | } |
||
369 | |||
370 | public SetGierRequest(float gier) |
||
371 | { |
||
372 | Gier = gier; |
||
373 | } |
||
374 | |||
375 | private float _Gier; |
||
376 | |||
377 | [DataMember] |
||
378 | public float Gier |
||
379 | { |
||
380 | get { return _Gier; } |
||
381 | set { _Gier = value; } |
||
382 | } |
||
383 | } |
||
384 | |||
385 | //------------------------------------------------------------------------- |
||
386 | // Gas Handler |
||
387 | public class SetGas : Update<SetGasRequest, |
||
388 | PortSet<DefaultUpdateResponseType, Fault>> |
||
389 | { |
||
390 | public SetGas() |
||
391 | { |
||
392 | } |
||
393 | |||
394 | public SetGas(float Gas) |
||
395 | : base(new SetGasRequest(Gas)) |
||
396 | { |
||
397 | } |
||
398 | } |
||
399 | |||
400 | [DataContract] |
||
401 | public class SetGasRequest |
||
402 | { |
||
403 | public SetGasRequest() |
||
404 | { |
||
405 | } |
||
406 | |||
407 | public SetGasRequest(float gas) |
||
408 | { |
||
409 | Gas = gas; |
||
410 | } |
||
411 | |||
412 | private float _Gas; |
||
413 | |||
414 | [DataMember] |
||
415 | public float Gas |
||
416 | { |
||
417 | get { return _Gas; } |
||
418 | set { _Gas = value; } |
||
419 | } |
||
420 | } |
||
421 | |||
422 | //------------------------------------------------------------------------- |
||
423 | // Control Handler |
||
424 | public class Control : Update<ControlRequest, |
||
425 | PortSet<DefaultUpdateResponseType, Fault>> |
||
426 | { |
||
427 | public Control() |
||
428 | { |
||
429 | } |
||
430 | |||
431 | public Control(float Nick, float Roll) |
||
432 | : base(new ControlRequest(Nick,Roll)) |
||
433 | { |
||
434 | } |
||
435 | } |
||
436 | |||
437 | [DataContract] |
||
438 | public class ControlRequest |
||
439 | { |
||
440 | public ControlRequest() |
||
441 | { |
||
442 | } |
||
443 | |||
444 | public ControlRequest(float nick, float roll) |
||
445 | { |
||
446 | Nick = nick; |
||
447 | Roll = roll; |
||
448 | } |
||
449 | |||
450 | private float _Roll; |
||
451 | private float _Nick; |
||
452 | |||
453 | [DataMember] |
||
454 | public float Roll |
||
455 | { |
||
456 | get { return _Roll; } |
||
457 | set { _Roll = value; } |
||
458 | } |
||
459 | |||
460 | [DataMember] |
||
461 | public float Nick |
||
462 | { |
||
463 | get { return _Nick; } |
||
464 | set { _Nick = value; } |
||
465 | } |
||
466 | |||
467 | } |
||
468 | //------------------------------------------------------------------------- |
||
469 | // Increment Tick Request Handler |
||
470 | public class IncrementTick : Update<IncrementTickRequest, |
||
471 | PortSet<DefaultUpdateResponseType, Fault>> |
||
472 | { |
||
473 | public IncrementTick() |
||
474 | { |
||
475 | } |
||
476 | |||
477 | public IncrementTick(string Command) |
||
478 | : base(new IncrementTickRequest(Command)) |
||
479 | { |
||
480 | } |
||
481 | } |
||
482 | |||
483 | [DataContract] |
||
484 | public class IncrementTickRequest |
||
485 | { |
||
486 | public IncrementTickRequest() |
||
487 | { |
||
488 | } |
||
489 | |||
490 | public IncrementTickRequest(string command) |
||
491 | { |
||
492 | Command = command; |
||
493 | } |
||
494 | |||
495 | private string _Command; |
||
496 | |||
497 | [DataMember] |
||
498 | public string Command |
||
499 | { |
||
500 | get { return _Command; } |
||
501 | set { _Command = value; } |
||
502 | } |
||
503 | } |
||
504 | |||
505 | //------------------------------------------------------------------------- |
||
506 | #region CODECLIP 01-1 |
||
507 | public class Subscribe : Subscribe<SubscribeRequestType, PortSet<SubscribeResponseType, Fault>> |
||
508 | { |
||
509 | } |
||
510 | #endregion |
||
511 | } |