public CpProxyUpnpOrgConnectionManager1(ICpDevice aDevice)
: base("schemas-upnp-org", "ConnectionManager", 1, aDevice)
{
OpenHome.Net.Core.Parameter param;
List<String> allowedValues = new List<String>();
iActionGetProtocolInfo = new OpenHome.Net.Core.Action("GetProtocolInfo");
param = new ParameterString("Source", allowedValues);
iActionGetProtocolInfo.AddOutputParameter(param);
param = new ParameterString("Sink", allowedValues);
iActionGetProtocolInfo.AddOutputParameter(param);
iActionPrepareForConnection = new OpenHome.Net.Core.Action("PrepareForConnection");
param = new ParameterString("RemoteProtocolInfo", allowedValues);
iActionPrepareForConnection.AddInputParameter(param);
param = new ParameterString("PeerConnectionManager", allowedValues);
iActionPrepareForConnection.AddInputParameter(param);
param = new ParameterInt("PeerConnectionID");
iActionPrepareForConnection.AddInputParameter(param);
allowedValues.Add("Input");
allowedValues.Add("Output");
param = new ParameterString("Direction", allowedValues);
iActionPrepareForConnection.AddInputParameter(param);
allowedValues.Clear();
param = new ParameterInt("ConnectionID");
iActionPrepareForConnection.AddOutputParameter(param);
param = new ParameterInt("AVTransportID");
iActionPrepareForConnection.AddOutputParameter(param);
param = new ParameterInt("RcsID");
iActionPrepareForConnection.AddOutputParameter(param);
iActionConnectionComplete = new OpenHome.Net.Core.Action("ConnectionComplete");
param = new ParameterInt("ConnectionID");
iActionConnectionComplete.AddInputParameter(param);
iActionGetCurrentConnectionIDs = new OpenHome.Net.Core.Action("GetCurrentConnectionIDs");
param = new ParameterString("ConnectionIDs", allowedValues);
iActionGetCurrentConnectionIDs.AddOutputParameter(param);
iActionGetCurrentConnectionInfo = new OpenHome.Net.Core.Action("GetCurrentConnectionInfo");
param = new ParameterInt("ConnectionID");
iActionGetCurrentConnectionInfo.AddInputParameter(param);
param = new ParameterInt("RcsID");
iActionGetCurrentConnectionInfo.AddOutputParameter(param);
param = new ParameterInt("AVTransportID");
iActionGetCurrentConnectionInfo.AddOutputParameter(param);
param = new ParameterString("ProtocolInfo", allowedValues);
iActionGetCurrentConnectionInfo.AddOutputParameter(param);
param = new ParameterString("PeerConnectionManager", allowedValues);
iActionGetCurrentConnectionInfo.AddOutputParameter(param);
param = new ParameterInt("PeerConnectionID");
iActionGetCurrentConnectionInfo.AddOutputParameter(param);
allowedValues.Add("Input");
allowedValues.Add("Output");
param = new ParameterString("Direction", allowedValues);
iActionGetCurrentConnectionInfo.AddOutputParameter(param);
allowedValues.Clear();
allowedValues.Add("OK");
allowedValues.Add("ContentFormatMismatch");
allowedValues.Add("InsufficientBandwidth");
allowedValues.Add("UnreliableChannel");
allowedValues.Add("Unknown");
param = new ParameterString("Status", allowedValues);
iActionGetCurrentConnectionInfo.AddOutputParameter(param);
allowedValues.Clear();
iSourceProtocolInfo = new PropertyString("SourceProtocolInfo", SourceProtocolInfoPropertyChanged);
AddProperty(iSourceProtocolInfo);
iSinkProtocolInfo = new PropertyString("SinkProtocolInfo", SinkProtocolInfoPropertyChanged);
AddProperty(iSinkProtocolInfo);
iCurrentConnectionIDs = new PropertyString("CurrentConnectionIDs", CurrentConnectionIDsPropertyChanged);
AddProperty(iCurrentConnectionIDs);
iPropertyLock = new Mutex();
}