//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Runtime Version:2.0.50727.312
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------
using Microsoft.Ccr.Core;
using Microsoft.Dss.Core.Attributes;
using Microsoft.Dss.ServiceModel.Dssp;
using Microsoft.Dss.Core.DsspHttp;
using System;
using System.Collections.Generic;
using W3C.Soap;
using roboboard = Robotics
.RoboBoard;
namespace Robotics
.RoboBoard
{
/// <summary>
/// RoboBoard Contract class
/// </summary>
public sealed class Contract
{
/// <summary>
/// The Dss Service contract
/// </summary>
public const String Identifier
= "http://schemas.tempuri.org/2007/08/roboboardservice.html";
}
/// <summary>
/// The RoboBoard State
/// </summary>
[DataContract
()]
public class RoboBoardState
{
private string _ComPort
= "COM1";
[DataMember
]
public string ComPort
{
get { return _ComPort
; }
set { _ComPort
= value; }
}
private string _Command
;
}
/// <summary>
/// RoboBoard Main Operations Port
/// </summary>
[ServicePort
()]
public class RoboBoardOperations
: PortSet
<
DsspDefaultLookup,
DsspDefaultDrop,
Get,
HttpGet,
Replace,
InitComplete,
SetComPort,
ReceiveCommand,
SendCommand,
Level,
Control,
SetAltitute,
SetGas,
SetGier,
IncrementTick,
Subscribe
>
{
}
//-------------------------------------------------------------------------
/// <summary>
/// RoboBoard Get Operation
/// </summary>
public class Get : Get<GetRequestType, PortSet
<RoboBoardState, Fault
>>
{
/// <summary>
/// RoboBoard Get Operation
/// </summary>
public Get()
{
}
/// <summary>
/// RoboBoard Get Operation
/// </summary>
public Get(Microsoft
.Dss.ServiceModel.Dssp.GetRequestType body
) :
base(body
)
{
}
/// <summary>
/// RoboBoard Get Operation
/// </summary>
public Get(Microsoft
.Dss.ServiceModel.Dssp.GetRequestType body, Microsoft
.Ccr.Core.PortSet<RoboBoardState,W3C
.Soap.Fault> responsePort
) :
base(body, responsePort
)
{
}
}
//-------------------------------------------------------------------------
public class Replace
: Replace
<RoboBoardState, PortSet
<DefaultReplaceResponseType, Fault
>>
{
}
//-------------------------------------------------------------------------
// Init Complete Handler
// tbd
public class InitComplete
: Update
<InitCompleteRequest,
PortSet
<DefaultUpdateResponseType, Fault
>>
{
public InitComplete
()
{
}
public InitComplete
(string Command
)
: base(new InitCompleteRequest
(Command
))
{
}
}
[DataContract
]
public class InitCompleteRequest
{
public InitCompleteRequest
()
{
}
public InitCompleteRequest
(string command
)
{
Command
= command
;
}
private string _Command
;
[DataMember
]
public string Command
{
get { return _Command
; }
set { _Command
= value; }
}
}
//-------------------------------------------------------------------------
// Set Com Port Handler
public class SetComPort
: Update
<SetComPortRequest,
PortSet
<DefaultUpdateResponseType, Fault
>>
{
public SetComPort
()
{
}
public SetComPort
(string Portname
)
: base(new SetComPortRequest
(Portname
))
{
}
}
[DataContract
]
public class SetComPortRequest
{
public SetComPortRequest
()
{
}
public SetComPortRequest
(string Portname
)
{
PortName
= Portname
;
}
private string _PortName
;
[DataMember
]
public string PortName
{
get { return _PortName
; }
set { _PortName
= value; }
}
}
//-------------------------------------------------------------------------
// Receive Command Handler
// tbd
public class ReceiveCommand
: Update
<ReceiveCommandRequest,
PortSet
<DefaultUpdateResponseType, Fault
>>
{
public ReceiveCommand
()
{
}
public ReceiveCommand
(string Command
)
: base(new ReceiveCommandRequest
(Command
))
{
}
}
[DataContract
]
public class ReceiveCommandRequest
{
public ReceiveCommandRequest
()
{
}
public ReceiveCommandRequest
(string command
)
{
Command
= command
;
}
private string _Command
;
[DataMember
]
public string Command
{
get { return _Command
; }
set { _Command
= value; }
}
}
//-------------------------------------------------------------------------
// Send Command Request Handler
// tbd
public class SendCommand
: Update
<SendCommandRequest,
PortSet
<DefaultUpdateResponseType, Fault
>>
{
public SendCommand
()
{
}
public SendCommand
(string Command
)
: base(new SendCommandRequest
(Command
))
{
}
}
[DataContract
]
public class SendCommandRequest
{
public SendCommandRequest
()
{
}
public SendCommandRequest
(string command
)
{
Command
= command
;
}
private string _Command
;
[DataMember
]
public string Command
{
get { return _Command
; }
set { _Command
= value; }
}
}
//-------------------------------------------------------------------------
// Level Handler
public class Level
: Update
<LevelRequest,
PortSet
<DefaultUpdateResponseType, Fault
>>
{
public Level
()
{
}
public Level
(int Nick,
int Roll
)
: base(new LevelRequest
(Nick,Roll
))
{
}
}
[DataContract
]
public class LevelRequest
{
public LevelRequest
()
{
}
public LevelRequest
(int nick,
int roll
)
{
Nick
= nick
;
Roll
= roll
;
}
private int _Roll
;
private int _Nick
;
[DataMember
]
public int Roll
{
get { return _Roll
; }
set { _Roll
= value; }
}
[DataMember
]
public int Nick
{
get { return _Nick
; }
set { _Nick
= value; }
}
}
//-------------------------------------------------------------------------
// Altitute Handler
public class SetAltitute
: Update
<SetAltituteRequest,
PortSet
<DefaultUpdateResponseType, Fault
>>
{
public SetAltitute
()
{
}
public SetAltitute
(float Altitute
)
: base(new SetAltituteRequest
(Altitute
))
{
}
}
[DataContract
]
public class SetAltituteRequest
{
public SetAltituteRequest
()
{
}
public SetAltituteRequest
(float altitute
)
{
Altitute
= altitute
;
}
private float _Altitute
;
[DataMember
]
public float Altitute
{
get { return _Altitute
; }
set { _Altitute
= value; }
}
}
//-------------------------------------------------------------------------
// Gier Handler
public class SetGier
: Update
<SetGierRequest,
PortSet
<DefaultUpdateResponseType, Fault
>>
{
public SetGier
()
{
}
public SetGier
(float Gier
)
: base(new SetGierRequest
(Gier
))
{
}
}
[DataContract
]
public class SetGierRequest
{
public SetGierRequest
()
{
}
public SetGierRequest
(float gier
)
{
Gier
= gier
;
}
private float _Gier
;
[DataMember
]
public float Gier
{
get { return _Gier
; }
set { _Gier
= value; }
}
}
//-------------------------------------------------------------------------
// Gas Handler
public class SetGas
: Update
<SetGasRequest,
PortSet
<DefaultUpdateResponseType, Fault
>>
{
public SetGas
()
{
}
public SetGas
(float Gas
)
: base(new SetGasRequest
(Gas
))
{
}
}
[DataContract
]
public class SetGasRequest
{
public SetGasRequest
()
{
}
public SetGasRequest
(float gas
)
{
Gas
= gas
;
}
private float _Gas
;
[DataMember
]
public float Gas
{
get { return _Gas
; }
set { _Gas
= value; }
}
}
//-------------------------------------------------------------------------
// Control Handler
public class Control
: Update
<ControlRequest,
PortSet
<DefaultUpdateResponseType, Fault
>>
{
public Control
()
{
}
public Control
(float Nick,
float Roll
)
: base(new ControlRequest
(Nick,Roll
))
{
}
}
[DataContract
]
public class ControlRequest
{
public ControlRequest
()
{
}
public ControlRequest
(float nick,
float roll
)
{
Nick
= nick
;
Roll
= roll
;
}
private float _Roll
;
private float _Nick
;
[DataMember
]
public float Roll
{
get { return _Roll
; }
set { _Roll
= value; }
}
[DataMember
]
public float Nick
{
get { return _Nick
; }
set { _Nick
= value; }
}
}
//-------------------------------------------------------------------------
// Increment Tick Request Handler
public class IncrementTick
: Update
<IncrementTickRequest,
PortSet
<DefaultUpdateResponseType, Fault
>>
{
public IncrementTick
()
{
}
public IncrementTick
(string Command
)
: base(new IncrementTickRequest
(Command
))
{
}
}
[DataContract
]
public class IncrementTickRequest
{
public IncrementTickRequest
()
{
}
public IncrementTickRequest
(string command
)
{
Command
= command
;
}
private string _Command
;
[DataMember
]
public string Command
{
get { return _Command
; }
set { _Command
= value; }
}
}
//-------------------------------------------------------------------------
#region CODECLIP 01-1
public class Subscribe
: Subscribe
<SubscribeRequestType, PortSet
<SubscribeResponseType, Fault
>>
{
}
#endregion
}