Go to most recent revision | Details | 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, |
||
62 | SetComPort, |
||
63 | ReceiveCommand, |
||
64 | SendCommand, |
||
65 | Level, |
||
66 | Control, |
||
67 | SetAltitute, |
||
68 | SetGas, |
||
69 | SetGier, |
||
70 | IncrementTick, |
||
71 | Subscribe> |
||
72 | { |
||
73 | } |
||
74 | |||
75 | |||
76 | //------------------------------------------------------------------------- |
||
77 | /// <summary> |
||
78 | /// RoboBoard Get Operation |
||
79 | /// </summary> |
||
80 | public class Get : Get<GetRequestType, PortSet<RoboBoardState, Fault>> |
||
81 | { |
||
82 | /// <summary> |
||
83 | /// RoboBoard Get Operation |
||
84 | /// </summary> |
||
85 | public Get() |
||
86 | { |
||
87 | } |
||
88 | /// <summary> |
||
89 | /// RoboBoard Get Operation |
||
90 | /// </summary> |
||
91 | public Get(Microsoft.Dss.ServiceModel.Dssp.GetRequestType body) : |
||
92 | base(body) |
||
93 | { |
||
94 | } |
||
95 | /// <summary> |
||
96 | /// RoboBoard Get Operation |
||
97 | /// </summary> |
||
98 | public Get(Microsoft.Dss.ServiceModel.Dssp.GetRequestType body, Microsoft.Ccr.Core.PortSet<RoboBoardState,W3C.Soap.Fault> responsePort) : |
||
99 | base(body, responsePort) |
||
100 | { |
||
101 | } |
||
102 | |||
103 | } |
||
104 | |||
105 | //------------------------------------------------------------------------- |
||
106 | public class Replace : Replace<RoboBoardState, PortSet<DefaultReplaceResponseType, Fault>> |
||
107 | { |
||
108 | } |
||
109 | |||
110 | //------------------------------------------------------------------------- |
||
111 | // Set Com Port Handler |
||
112 | public class SetComPort : Update<SetComPortRequest, |
||
113 | PortSet<DefaultUpdateResponseType, Fault>> |
||
114 | { |
||
115 | public SetComPort() |
||
116 | { |
||
117 | } |
||
118 | |||
119 | public SetComPort(string Portname) |
||
120 | : base(new SetComPortRequest(Portname)) |
||
121 | { |
||
122 | } |
||
123 | |||
124 | |||
125 | } |
||
126 | |||
127 | [DataContract] |
||
128 | public class SetComPortRequest |
||
129 | { |
||
130 | |||
131 | public SetComPortRequest() |
||
132 | { |
||
133 | } |
||
134 | |||
135 | public SetComPortRequest(string Portname) |
||
136 | { |
||
137 | PortName = Portname; |
||
138 | } |
||
139 | |||
140 | private string _PortName; |
||
141 | |||
142 | [DataMember] |
||
143 | public string PortName |
||
144 | { |
||
145 | get { return _PortName; } |
||
146 | set { _PortName = value; } |
||
147 | } |
||
148 | } |
||
149 | |||
150 | //------------------------------------------------------------------------- |
||
151 | // Receive Command Handler |
||
152 | // tbd |
||
153 | public class ReceiveCommand : Update<ReceiveCommandRequest, |
||
154 | PortSet<DefaultUpdateResponseType, Fault>> |
||
155 | { |
||
156 | public ReceiveCommand() |
||
157 | { |
||
158 | } |
||
159 | |||
160 | public ReceiveCommand(string Command) |
||
161 | : base(new ReceiveCommandRequest(Command)) |
||
162 | { |
||
163 | } |
||
164 | } |
||
165 | |||
166 | [DataContract] |
||
167 | public class ReceiveCommandRequest |
||
168 | { |
||
169 | public ReceiveCommandRequest() |
||
170 | { |
||
171 | } |
||
172 | |||
173 | public ReceiveCommandRequest(string command) |
||
174 | { |
||
175 | Command = command; |
||
176 | } |
||
177 | |||
178 | private string _Command; |
||
179 | |||
180 | [DataMember] |
||
181 | public string Command |
||
182 | { |
||
183 | get { return _Command; } |
||
184 | set { _Command = value; } |
||
185 | } |
||
186 | } |
||
187 | |||
188 | //------------------------------------------------------------------------- |
||
189 | // Send Command Request Handler |
||
190 | // tbd |
||
191 | public class SendCommand : Update<SendCommandRequest, |
||
192 | PortSet<DefaultUpdateResponseType, Fault>> |
||
193 | { |
||
194 | public SendCommand() |
||
195 | { |
||
196 | } |
||
197 | |||
198 | public SendCommand(string Command) |
||
199 | : base(new SendCommandRequest(Command)) |
||
200 | { |
||
201 | } |
||
202 | } |
||
203 | |||
204 | [DataContract] |
||
205 | public class SendCommandRequest |
||
206 | { |
||
207 | public SendCommandRequest() |
||
208 | { |
||
209 | } |
||
210 | |||
211 | public SendCommandRequest(string command) |
||
212 | { |
||
213 | Command = command; |
||
214 | } |
||
215 | |||
216 | private string _Command; |
||
217 | |||
218 | [DataMember] |
||
219 | public string Command |
||
220 | { |
||
221 | get { return _Command; } |
||
222 | set { _Command = value; } |
||
223 | } |
||
224 | } |
||
225 | |||
226 | //------------------------------------------------------------------------- |
||
227 | // Level Handler |
||
228 | public class Level : Update<LevelRequest, |
||
229 | PortSet<DefaultUpdateResponseType, Fault>> |
||
230 | { |
||
231 | public Level() |
||
232 | { |
||
233 | } |
||
234 | |||
235 | public Level(int Nick, int Roll) |
||
236 | : base(new LevelRequest(Nick,Roll)) |
||
237 | { |
||
238 | } |
||
239 | } |
||
240 | |||
241 | [DataContract] |
||
242 | public class LevelRequest |
||
243 | { |
||
244 | public LevelRequest() |
||
245 | { |
||
246 | } |
||
247 | |||
248 | public LevelRequest(int nick, int roll) |
||
249 | { |
||
250 | Nick = nick; |
||
251 | Roll = roll; |
||
252 | } |
||
253 | |||
254 | private int _Roll; |
||
255 | private int _Nick; |
||
256 | |||
257 | [DataMember] |
||
258 | public int Roll |
||
259 | { |
||
260 | get { return _Roll; } |
||
261 | set { _Roll = value; } |
||
262 | } |
||
263 | |||
264 | [DataMember] |
||
265 | public int Nick |
||
266 | { |
||
267 | get { return _Nick; } |
||
268 | set { _Nick = value; } |
||
269 | } |
||
270 | } |
||
271 | |||
272 | //------------------------------------------------------------------------- |
||
273 | // Altitute Handler |
||
274 | public class SetAltitute : Update<SetAltituteRequest, |
||
275 | PortSet<DefaultUpdateResponseType, Fault>> |
||
276 | { |
||
277 | public SetAltitute() |
||
278 | { |
||
279 | } |
||
280 | |||
281 | public SetAltitute(float Altitute) |
||
282 | : base(new SetAltituteRequest(Altitute)) |
||
283 | { |
||
284 | } |
||
285 | } |
||
286 | |||
287 | [DataContract] |
||
288 | public class SetAltituteRequest |
||
289 | { |
||
290 | public SetAltituteRequest() |
||
291 | { |
||
292 | } |
||
293 | |||
294 | public SetAltituteRequest(float altitute) |
||
295 | { |
||
296 | Altitute = altitute; |
||
297 | } |
||
298 | |||
299 | private float _Altitute; |
||
300 | |||
301 | [DataMember] |
||
302 | public float Altitute |
||
303 | { |
||
304 | get { return _Altitute; } |
||
305 | set { _Altitute = value; } |
||
306 | } |
||
307 | } |
||
308 | |||
309 | //------------------------------------------------------------------------- |
||
310 | // Gier Handler |
||
311 | public class SetGier : Update<SetGierRequest, |
||
312 | PortSet<DefaultUpdateResponseType, Fault>> |
||
313 | { |
||
314 | public SetGier() |
||
315 | { |
||
316 | } |
||
317 | |||
318 | public SetGier(float Gier) |
||
319 | : base(new SetGierRequest(Gier)) |
||
320 | { |
||
321 | } |
||
322 | } |
||
323 | |||
324 | [DataContract] |
||
325 | public class SetGierRequest |
||
326 | { |
||
327 | public SetGierRequest() |
||
328 | { |
||
329 | } |
||
330 | |||
331 | public SetGierRequest(float gier) |
||
332 | { |
||
333 | Gier = gier; |
||
334 | } |
||
335 | |||
336 | private float _Gier; |
||
337 | |||
338 | [DataMember] |
||
339 | public float Gier |
||
340 | { |
||
341 | get { return _Gier; } |
||
342 | set { _Gier = value; } |
||
343 | } |
||
344 | } |
||
345 | |||
346 | //------------------------------------------------------------------------- |
||
347 | // Gas Handler |
||
348 | public class SetGas : Update<SetGasRequest, |
||
349 | PortSet<DefaultUpdateResponseType, Fault>> |
||
350 | { |
||
351 | public SetGas() |
||
352 | { |
||
353 | } |
||
354 | |||
355 | public SetGas(float Gas) |
||
356 | : base(new SetGasRequest(Gas)) |
||
357 | { |
||
358 | } |
||
359 | } |
||
360 | |||
361 | [DataContract] |
||
362 | public class SetGasRequest |
||
363 | { |
||
364 | public SetGasRequest() |
||
365 | { |
||
366 | } |
||
367 | |||
368 | public SetGasRequest(float gas) |
||
369 | { |
||
370 | Gas = gas; |
||
371 | } |
||
372 | |||
373 | private float _Gas; |
||
374 | |||
375 | [DataMember] |
||
376 | public float Gas |
||
377 | { |
||
378 | get { return _Gas; } |
||
379 | set { _Gas = value; } |
||
380 | } |
||
381 | } |
||
382 | |||
383 | //------------------------------------------------------------------------- |
||
384 | // Control Handler |
||
385 | public class Control : Update<ControlRequest, |
||
386 | PortSet<DefaultUpdateResponseType, Fault>> |
||
387 | { |
||
388 | public Control() |
||
389 | { |
||
390 | } |
||
391 | |||
392 | public Control(float Nick, float Roll) |
||
393 | : base(new ControlRequest(Nick,Roll)) |
||
394 | { |
||
395 | } |
||
396 | } |
||
397 | |||
398 | [DataContract] |
||
399 | public class ControlRequest |
||
400 | { |
||
401 | public ControlRequest() |
||
402 | { |
||
403 | } |
||
404 | |||
405 | public ControlRequest(float nick, float roll) |
||
406 | { |
||
407 | Nick = nick; |
||
408 | Roll = roll; |
||
409 | } |
||
410 | |||
411 | private float _Roll; |
||
412 | private float _Nick; |
||
413 | |||
414 | [DataMember] |
||
415 | public float Roll |
||
416 | { |
||
417 | get { return _Roll; } |
||
418 | set { _Roll = value; } |
||
419 | } |
||
420 | |||
421 | [DataMember] |
||
422 | public float Nick |
||
423 | { |
||
424 | get { return _Nick; } |
||
425 | set { _Nick = value; } |
||
426 | } |
||
427 | |||
428 | } |
||
429 | //------------------------------------------------------------------------- |
||
430 | // Increment Tick Request Handler |
||
431 | public class IncrementTick : Update<IncrementTickRequest, |
||
432 | PortSet<DefaultUpdateResponseType, Fault>> |
||
433 | { |
||
434 | public IncrementTick() |
||
435 | { |
||
436 | } |
||
437 | |||
438 | public IncrementTick(string Command) |
||
439 | : base(new IncrementTickRequest(Command)) |
||
440 | { |
||
441 | } |
||
442 | } |
||
443 | |||
444 | [DataContract] |
||
445 | public class IncrementTickRequest |
||
446 | { |
||
447 | public IncrementTickRequest() |
||
448 | { |
||
449 | } |
||
450 | |||
451 | public IncrementTickRequest(string command) |
||
452 | { |
||
453 | Command = command; |
||
454 | } |
||
455 | |||
456 | private string _Command; |
||
457 | |||
458 | [DataMember] |
||
459 | public string Command |
||
460 | { |
||
461 | get { return _Command; } |
||
462 | set { _Command = value; } |
||
463 | } |
||
464 | } |
||
465 | |||
466 | //------------------------------------------------------------------------- |
||
467 | #region CODECLIP 01-1 |
||
468 | public class Subscribe : Subscribe<SubscribeRequestType, PortSet<SubscribeResponseType, Fault>> |
||
469 | { |
||
470 | } |
||
471 | #endregion |
||
472 | } |