(Service) Action
Each service has 0..n of these. Each action has 0..n input parameters and 0..m output parameters. Each parameter must be either input or output.
Inheritance: IDisposable
 /// <summary>
 /// Signal that the action InputCount is supported.
 /// </summary>
 /// <remarks>The action's availability will be published in the device's service.xml.
 /// InputCount must be overridden if this is called.</remarks>
 protected void EnableActionInputCount()
 {
     OpenHome.Net.Core.Action action = new OpenHome.Net.Core.Action("InputCount");
     action.AddOutputParameter(new ParameterUint("InputCount"));
     iDelegateInputCount = new ActionDelegate(DoInputCount);
     EnableAction(action, iDelegateInputCount, GCHandle.ToIntPtr(iGch));
 }
 /// <summary>
 /// Signal that the action Attributes is supported.
 /// </summary>
 /// <remarks>The action's availability will be published in the device's service.xml.
 /// Attributes must be overridden if this is called.</remarks>
 protected void EnableActionAttributes()
 {
     OpenHome.Net.Core.Action action = new OpenHome.Net.Core.Action("Attributes");
     action.AddOutputParameter(new ParameterRelated("Value", iPropertyAttributes));
     iDelegateAttributes = new ActionDelegate(DoAttributes);
     EnableAction(action, iDelegateAttributes, GCHandle.ToIntPtr(iGch));
 }
Beispiel #3
0
 /// <summary>
 /// Signal that the action TransportState is supported.
 /// </summary>
 /// <remarks>The action's availability will be published in the device's service.xml.
 /// TransportState must be overridden if this is called.</remarks>
 protected void EnableActionTransportState()
 {
     OpenHome.Net.Core.Action action = new OpenHome.Net.Core.Action("TransportState");
     action.AddOutputParameter(new ParameterRelated("Value", iPropertyTransportState));
     iDelegateTransportState = new ActionDelegate(DoTransportState);
     EnableAction(action, iDelegateTransportState, GCHandle.ToIntPtr(iGch));
 }
        /// <summary>
        /// Constructor
        /// </summary>
        /// <remarks>Use CpProxy::[Un]Subscribe() to enable/disable querying of state variable and reporting of their changes.</remarks>
        /// <param name="aDevice">The device to use</param>
        public CpProxyAvOpenhomeOrgNetworkMonitor1(CpDevice aDevice)
            : base("av-openhome-org", "NetworkMonitor", 1, aDevice)
        {
            OpenHome.Net.Core.Parameter param;
            List<String> allowedValues = new List<String>();

            iActionName = new OpenHome.Net.Core.Action("Name");
            param = new ParameterString("Name", allowedValues);
            iActionName.AddOutputParameter(param);

            iActionPorts = new OpenHome.Net.Core.Action("Ports");
            param = new ParameterUint("Sender");
            iActionPorts.AddOutputParameter(param);
            param = new ParameterUint("Receiver");
            iActionPorts.AddOutputParameter(param);
            param = new ParameterUint("Results");
            iActionPorts.AddOutputParameter(param);

            iName = new PropertyString("Name", NamePropertyChanged);
            AddProperty(iName);
            iSender = new PropertyUint("Sender", SenderPropertyChanged);
            AddProperty(iSender);
            iReceiver = new PropertyUint("Receiver", ReceiverPropertyChanged);
            AddProperty(iReceiver);
            iResults = new PropertyUint("Results", ResultsPropertyChanged);
            AddProperty(iResults);

            iPropertyLock = new Mutex();
        }
Beispiel #5
0
 /// <summary>
 /// Signal that the action ProtocolInfo is supported.
 /// </summary>
 /// <remarks>The action's availability will be published in the device's service.xml.
 /// ProtocolInfo must be overridden if this is called.</remarks>
 protected void EnableActionProtocolInfo()
 {
     OpenHome.Net.Core.Action action = new OpenHome.Net.Core.Action("ProtocolInfo");
     action.AddOutputParameter(new ParameterRelated("Value", iPropertyProtocolInfo));
     iDelegateProtocolInfo = new ActionDelegate(DoProtocolInfo);
     EnableAction(action, iDelegateProtocolInfo, GCHandle.ToIntPtr(iGch));
 }
 /// <summary>
 /// Signal that the action GetSequenceNumber is supported.
 /// </summary>
 /// <remarks>The action's availability will be published in the device's service.xml.
 /// GetSequenceNumber must be overridden if this is called.</remarks>
 protected void EnableActionGetSequenceNumber()
 {
     OpenHome.Net.Core.Action action = new OpenHome.Net.Core.Action("GetSequenceNumber");
     action.AddOutputParameter(new ParameterRelated("SequenceNumber", iPropertySequenceNumber));
     iDelegateGetSequenceNumber = new ActionDelegate(DoGetSequenceNumber);
     EnableAction(action, iDelegateGetSequenceNumber, GCHandle.ToIntPtr(iGch));
 }
Beispiel #7
0
 /// <summary>
 /// Signal that the action DelayMaximum is supported.
 /// </summary>
 /// <remarks>The action's availability will be published in the device's service.xml.
 /// DelayMaximum must be overridden if this is called.</remarks>
 protected void EnableActionDelayMaximum()
 {
     OpenHome.Net.Core.Action action = new OpenHome.Net.Core.Action("DelayMaximum");
     action.AddOutputParameter(new ParameterRelated("Max", iPropertyDelayMaximum));
     iDelegateDelayMaximum = new ActionDelegate(DoDelayMaximum);
     EnableAction(action, iDelegateDelayMaximum, GCHandle.ToIntPtr(iGch));
 }
 /// <summary>
 /// Signal that the action SetTarget is supported.
 /// </summary>
 /// <remarks>The action's availability will be published in the device's service.xml.
 /// SetTarget must be overridden if this is called.</remarks>
 protected void EnableActionSetTarget()
 {
     OpenHome.Net.Core.Action action = new OpenHome.Net.Core.Action("SetTarget");
     action.AddInputParameter(new ParameterBool("newTargetValue"));
     iDelegateSetTarget = new ActionDelegate(DoSetTarget);
     EnableAction(action, iDelegateSetTarget, GCHandle.ToIntPtr(iGch));
 }
 /// <summary>
 /// Signal that the action DeviceList is supported.
 /// </summary>
 /// <remarks>The action's availability will be published in the device's service.xml.
 /// DeviceList must be overridden if this is called.</remarks>
 protected void EnableActionDeviceList()
 {
     OpenHome.Net.Core.Action action = new OpenHome.Net.Core.Action("DeviceList");
     action.AddOutputParameter(new ParameterRelated("List", iPropertyDeviceList));
     iDelegateDeviceList = new ActionDelegate(DoDeviceList);
     EnableAction(action, iDelegateDeviceList, GCHandle.ToIntPtr(iGch));
 }
 /// <summary>
 /// Signal that the action SetAudioChannels is supported.
 /// </summary>
 /// <remarks>The action's availability will be published in the device's service.xml.
 /// SetAudioChannels must be overridden if this is called.</remarks>
 protected void EnableActionSetAudioChannels()
 {
     OpenHome.Net.Core.Action action = new OpenHome.Net.Core.Action("SetAudioChannels");
     action.AddInputParameter(new ParameterRelated("AudioChannels", iPropertyAudioChannels));
     iDelegateSetAudioChannels = new ActionDelegate(DoSetAudioChannels);
     EnableAction(action, iDelegateSetAudioChannels, GCHandle.ToIntPtr(iGch));
 }
Beispiel #11
0
 /// <summary>
 /// Signal that the action PresentationUrl is supported.
 /// </summary>
 /// <remarks>The action's availability will be published in the device's service.xml.
 /// PresentationUrl must be overridden if this is called.</remarks>
 protected void EnableActionPresentationUrl()
 {
     OpenHome.Net.Core.Action action = new OpenHome.Net.Core.Action("PresentationUrl");
     action.AddOutputParameter(new ParameterRelated("Value", iPropertyPresentationUrl));
     iDelegatePresentationUrl = new ActionDelegate(DoPresentationUrl);
     EnableAction(action, iDelegatePresentationUrl, GCHandle.ToIntPtr(iGch));
 }
 /// <summary>
 /// Signal that the action InvokeIndex is supported.
 /// </summary>
 /// <remarks>The action's availability will be published in the device's service.xml.
 /// InvokeIndex must be overridden if this is called.</remarks>
 protected void EnableActionInvokeIndex()
 {
     OpenHome.Net.Core.Action action = new OpenHome.Net.Core.Action("InvokeIndex");
     action.AddInputParameter(new ParameterUint("Index"));
     iDelegateInvokeIndex = new ActionDelegate(DoInvokeIndex);
     EnableAction(action, iDelegateInvokeIndex, GCHandle.ToIntPtr(iGch));
 }
 /// <summary>
 /// Signal that the action EraseChip is supported.
 /// </summary>
 /// <remarks>The action's availability will be published in the device's service.xml.
 /// EraseChip must be overridden if this is called.</remarks>
 protected void EnableActionEraseChip()
 {
     OpenHome.Net.Core.Action action = new OpenHome.Net.Core.Action("EraseChip");
     action.AddInputParameter(new ParameterUint("aId"));
     iDelegateEraseChip = new ActionDelegate(DoEraseChip);
     EnableAction(action, iDelegateEraseChip, GCHandle.ToIntPtr(iGch));
 }
        /// <summary>
        /// Signal that the action GetCurrentConnectionInfo is supported.
        /// </summary>
        /// <remarks>The action's availability will be published in the device's service.xml.
        /// GetCurrentConnectionInfo must be overridden if this is called.</remarks>
        protected void EnableActionGetCurrentConnectionInfo()
        {
            OpenHome.Net.Core.Action action        = new OpenHome.Net.Core.Action("GetCurrentConnectionInfo");
            List <String>            allowedValues = new List <String>();

            action.AddInputParameter(new ParameterInt("ConnectionID"));
            action.AddOutputParameter(new ParameterInt("RcsID"));
            action.AddOutputParameter(new ParameterInt("AVTransportID"));
            action.AddOutputParameter(new ParameterString("ProtocolInfo", allowedValues));
            action.AddOutputParameter(new ParameterString("PeerConnectionManager", allowedValues));
            action.AddOutputParameter(new ParameterInt("PeerConnectionID"));
            allowedValues.Add("Input");
            allowedValues.Add("Output");
            action.AddOutputParameter(new ParameterString("Direction", allowedValues));
            allowedValues.Clear();
            allowedValues.Add("OK");
            allowedValues.Add("ContentFormatMismatch");
            allowedValues.Add("InsufficientBandwidth");
            allowedValues.Add("UnreliableChannel");
            allowedValues.Add("Unknown");
            action.AddOutputParameter(new ParameterString("Status", allowedValues));
            allowedValues.Clear();
            iDelegateGetCurrentConnectionInfo = new ActionDelegate(DoGetCurrentConnectionInfo);
            EnableAction(action, iDelegateGetCurrentConnectionInfo, GCHandle.ToIntPtr(iGch));
        }
Beispiel #15
0
 /// <summary>
 /// Signal that the action ParameterXml is supported.
 /// </summary>
 /// <remarks>The action's availability will be published in the device's service.xml.
 /// ParameterXml must be overridden if this is called.</remarks>
 protected void EnableActionParameterXml()
 {
     OpenHome.Net.Core.Action action = new OpenHome.Net.Core.Action("ParameterXml");
     action.AddOutputParameter(new ParameterRelated("aParameterXml", iPropertyParameterXml));
     iDelegateParameterXml = new ActionDelegate(DoParameterXml);
     EnableAction(action, iDelegateParameterXml, GCHandle.ToIntPtr(iGch));
 }
 /// <summary>
 /// Signal that the action GetConnected is supported.
 /// </summary>
 /// <remarks>The action's availability will be published in the device's service.xml.
 /// GetConnected must be overridden if this is called.</remarks>
 protected void EnableActionGetConnected()
 {
     OpenHome.Net.Core.Action action = new OpenHome.Net.Core.Action("GetConnected");
     action.AddOutputParameter(new ParameterRelated("Connected", iPropertyConnected));
     iDelegateGetConnected = new ActionDelegate(DoGetConnected);
     EnableAction(action, iDelegateGetConnected, GCHandle.ToIntPtr(iGch));
 }
 /// <summary>
 /// Signal that the action ConnectionComplete is supported.
 /// </summary>
 /// <remarks>The action's availability will be published in the device's service.xml.
 /// ConnectionComplete must be overridden if this is called.</remarks>
 protected void EnableActionConnectionComplete()
 {
     OpenHome.Net.Core.Action action = new OpenHome.Net.Core.Action("ConnectionComplete");
     action.AddInputParameter(new ParameterInt("ConnectionID"));
     iDelegateConnectionComplete = new ActionDelegate(DoConnectionComplete);
     EnableAction(action, iDelegateConnectionComplete, GCHandle.ToIntPtr(iGch));
 }
 /// <summary>
 /// Signal that the action SetControlEnabled is supported.
 /// </summary>
 /// <remarks>The action's availability will be published in the device's service.xml.
 /// SetControlEnabled must be overridden if this is called.</remarks>
 protected void EnableActionSetControlEnabled()
 {
     OpenHome.Net.Core.Action action = new OpenHome.Net.Core.Action("SetControlEnabled");
     action.AddInputParameter(new ParameterRelated("Enabled", iPropertyControlEnabled));
     iDelegateSetControlEnabled = new ActionDelegate(DoSetControlEnabled);
     EnableAction(action, iDelegateSetControlEnabled, GCHandle.ToIntPtr(iGch));
 }
        /// <summary>
        /// Constructor
        /// </summary>
        /// <remarks>Use CpProxy::[Un]Subscribe() to enable/disable querying of state variable and reporting of their changes.</remarks>
        /// <param name="aDevice">The device to use</param>
        public CpProxyLinnCoUkConfiguration1(ICpDevice aDevice)
            : base("linn-co-uk", "Configuration", 1, aDevice)
        {
            OpenHome.Net.Core.Parameter param;
            List <String> allowedValues = new List <String>();

            iActionConfigurationXml = new OpenHome.Net.Core.Action("ConfigurationXml");
            param = new ParameterString("aConfigurationXml", allowedValues);
            iActionConfigurationXml.AddOutputParameter(param);

            iActionParameterXml = new OpenHome.Net.Core.Action("ParameterXml");
            param = new ParameterString("aParameterXml", allowedValues);
            iActionParameterXml.AddOutputParameter(param);

            iActionSetParameter = new OpenHome.Net.Core.Action("SetParameter");
            param = new ParameterString("aTarget", allowedValues);
            iActionSetParameter.AddInputParameter(param);
            param = new ParameterString("aName", allowedValues);
            iActionSetParameter.AddInputParameter(param);
            param = new ParameterString("aValue", allowedValues);
            iActionSetParameter.AddInputParameter(param);

            iConfigurationXml = new PropertyString("ConfigurationXml", ConfigurationXmlPropertyChanged);
            AddProperty(iConfigurationXml);
            iParameterXml = new PropertyString("ParameterXml", ParameterXmlPropertyChanged);
            AddProperty(iParameterXml);

            iPropertyLock = new Mutex();
        }
        /// <summary>
        /// Constructor
        /// </summary>
        /// <remarks>Use CpProxy::[Un]Subscribe() to enable/disable querying of state variable and reporting of their changes.</remarks>
        /// <param name="aDevice">The device to use</param>
        public CpProxyLinnCoUkPrivacy1(ICpDevice aDevice)
            : base("linn-co-uk", "Privacy", 1, aDevice)
        {
            OpenHome.Net.Core.Parameter param;
            List <String> allowedValues = new List <String>();

            iActionGetPolicyVersion = new OpenHome.Net.Core.Action("GetPolicyVersion");
            param = new ParameterUint("Version");
            iActionGetPolicyVersion.AddOutputParameter(param);

            iActionGetPolicyAgreed = new OpenHome.Net.Core.Action("GetPolicyAgreed");
            param = new ParameterUint("Version");
            iActionGetPolicyAgreed.AddOutputParameter(param);

            iActionGetPolicyDetails = new OpenHome.Net.Core.Action("GetPolicyDetails");
            param = new ParameterString("Details", allowedValues);
            iActionGetPolicyDetails.AddOutputParameter(param);

            iActionSetPolicyDetails = new OpenHome.Net.Core.Action("SetPolicyDetails");
            param = new ParameterString("Details", allowedValues);
            iActionSetPolicyDetails.AddInputParameter(param);

            iPolicyVersion = new PropertyUint("PolicyVersion", PolicyVersionPropertyChanged);
            AddProperty(iPolicyVersion);
            iPolicyAgreed = new PropertyUint("PolicyAgreed", PolicyAgreedPropertyChanged);
            AddProperty(iPolicyAgreed);
            iPolicyDetails = new PropertyString("PolicyDetails", PolicyDetailsPropertyChanged);
            AddProperty(iPolicyDetails);

            iPropertyLock = new Mutex();
        }
Beispiel #21
0
 /// <summary>
 /// Signal that the action Metadata is supported.
 /// </summary>
 /// <remarks>The action's availability will be published in the device's service.xml.
 /// Metadata must be overridden if this is called.</remarks>
 protected void EnableActionMetadata()
 {
     OpenHome.Net.Core.Action action = new OpenHome.Net.Core.Action("Metadata");
     action.AddOutputParameter(new ParameterRelated("Value", iPropertyMetadata));
     iDelegateMetadata = new ActionDelegate(DoMetadata);
     EnableAction(action, iDelegateMetadata, GCHandle.ToIntPtr(iGch));
 }
 /// <summary>
 /// Signal that the action Name is supported.
 /// </summary>
 /// <remarks>The action's availability will be published in the device's service.xml.
 /// Name must be overridden if this is called.</remarks>
 protected void EnableActionName()
 {
     OpenHome.Net.Core.Action action = new OpenHome.Net.Core.Action("Name");
     action.AddOutputParameter(new ParameterRelated("Name", iPropertyName));
     iDelegateName = new ActionDelegate(DoName);
     EnableAction(action, iDelegateName, GCHandle.ToIntPtr(iGch));
 }
        /// <summary>
        /// Constructor
        /// </summary>
        /// <remarks>Use CpProxy::[Un]Subscribe() to enable/disable querying of state variable and reporting of their changes.</remarks>
        /// <param name="aDevice">The device to use</param>
        public CpProxyAvOpenhomeOrgNetworkMonitor1(CpDevice aDevice)
            : base("av-openhome-org", "NetworkMonitor", 1, aDevice)
        {
            OpenHome.Net.Core.Parameter param;
            List <String> allowedValues = new List <String>();

            iActionName = new OpenHome.Net.Core.Action("Name");
            param       = new ParameterString("Name", allowedValues);
            iActionName.AddOutputParameter(param);

            iActionPorts = new OpenHome.Net.Core.Action("Ports");
            param        = new ParameterUint("Sender");
            iActionPorts.AddOutputParameter(param);
            param = new ParameterUint("Receiver");
            iActionPorts.AddOutputParameter(param);
            param = new ParameterUint("Results");
            iActionPorts.AddOutputParameter(param);

            iName = new PropertyString("Name", NamePropertyChanged);
            AddProperty(iName);
            iSender = new PropertyUint("Sender", SenderPropertyChanged);
            AddProperty(iSender);
            iReceiver = new PropertyUint("Receiver", ReceiverPropertyChanged);
            AddProperty(iReceiver);
            iResults = new PropertyUint("Results", ResultsPropertyChanged);
            AddProperty(iResults);

            iPropertyLock = new Mutex();
        }
Beispiel #24
0
 /// <summary>
 /// Signal that the action Status is supported.
 /// </summary>
 /// <remarks>The action's availability will be published in the device's service.xml.
 /// Status must be overridden if this is called.</remarks>
 protected void EnableActionStatus()
 {
     OpenHome.Net.Core.Action action = new OpenHome.Net.Core.Action("Status");
     action.AddOutputParameter(new ParameterRelated("Value", iPropertyStatus));
     iDelegateStatus = new ActionDelegate(DoStatus);
     EnableAction(action, iDelegateStatus, GCHandle.ToIntPtr(iGch));
 }
 /// <summary>
 /// Signal that the action GetPublicKey is supported.
 /// </summary>
 /// <remarks>The action's availability will be published in the device's service.xml.
 /// GetPublicKey must be overridden if this is called.</remarks>
 protected void EnableActionGetPublicKey()
 {
     OpenHome.Net.Core.Action action = new OpenHome.Net.Core.Action("GetPublicKey");
     action.AddOutputParameter(new ParameterRelated("PublicKey", iPropertyPublicKey));
     iDelegateGetPublicKey = new ActionDelegate(DoGetPublicKey);
     EnableAction(action, iDelegateGetPublicKey, GCHandle.ToIntPtr(iGch));
 }
Beispiel #26
0
 /// <summary>
 /// Signal that the action Audio is supported.
 /// </summary>
 /// <remarks>The action's availability will be published in the device's service.xml.
 /// Audio must be overridden if this is called.</remarks>
 protected void EnableActionAudio()
 {
     OpenHome.Net.Core.Action action = new OpenHome.Net.Core.Action("Audio");
     action.AddOutputParameter(new ParameterRelated("Value", iPropertyAudio));
     iDelegateAudio = new ActionDelegate(DoAudio);
     EnableAction(action, iDelegateAudio, GCHandle.ToIntPtr(iGch));
 }
 /// <summary>
 /// Signal that the action Clear is supported.
 /// </summary>
 /// <remarks>The action's availability will be published in the device's service.xml.
 /// Clear must be overridden if this is called.</remarks>
 protected void EnableActionClear()
 {
     OpenHome.Net.Core.Action action = new OpenHome.Net.Core.Action("Clear");
     action.AddInputParameter(new ParameterUint("Id"));
     iDelegateClear = new ActionDelegate(DoClear);
     EnableAction(action, iDelegateClear, GCHandle.ToIntPtr(iGch));
 }
 /// <summary>
 /// Signal that the action GetIds is supported.
 /// </summary>
 /// <remarks>The action's availability will be published in the device's service.xml.
 /// GetIds must be overridden if this is called.</remarks>
 protected void EnableActionGetIds()
 {
     OpenHome.Net.Core.Action action = new OpenHome.Net.Core.Action("GetIds");
     action.AddOutputParameter(new ParameterRelated("Ids", iPropertyIds));
     iDelegateGetIds = new ActionDelegate(DoGetIds);
     EnableAction(action, iDelegateGetIds, GCHandle.ToIntPtr(iGch));
 }
Beispiel #29
0
 /// <summary>
 /// Signal that the action SetDelay is supported.
 /// </summary>
 /// <remarks>The action's availability will be published in the device's service.xml.
 /// SetDelay must be overridden if this is called.</remarks>
 protected void EnableActionSetDelay()
 {
     OpenHome.Net.Core.Action action = new OpenHome.Net.Core.Action("SetDelay");
     action.AddInputParameter(new ParameterRelated("Delay", iPropertyDelay));
     iDelegateSetDelay = new ActionDelegate(DoSetDelay);
     EnableAction(action, iDelegateSetDelay, GCHandle.ToIntPtr(iGch));
 }
 /// <summary>
 /// Signal that the action MaxBoards is supported.
 /// </summary>
 /// <remarks>The action's availability will be published in the device's service.xml.
 /// MaxBoards must be overridden if this is called.</remarks>
 protected void EnableActionMaxBoards()
 {
     OpenHome.Net.Core.Action action = new OpenHome.Net.Core.Action("MaxBoards");
     action.AddOutputParameter(new ParameterUint("aMaxBoards"));
     iDelegateMaxBoards = new ActionDelegate(DoMaxBoards);
     EnableAction(action, iDelegateMaxBoards, GCHandle.ToIntPtr(iGch));
 }
 /// <summary>
 /// Signal that the action Version is supported.
 /// </summary>
 /// <remarks>The action's availability will be published in the device's service.xml.
 /// Version must be overridden if this is called.</remarks>
 protected void EnableActionVersion()
 {
     OpenHome.Net.Core.Action action = new OpenHome.Net.Core.Action("Version");
     action.AddOutputParameter(new ParameterRelated("Version", iPropertyVersion));
     iDelegateVersion = new ActionDelegate(DoVersion);
     EnableAction(action, iDelegateVersion, GCHandle.ToIntPtr(iGch));
 }
 /// <summary>
 /// Signal that the action Unsubscribe is supported.
 /// </summary>
 /// <remarks>The action's availability will be published in the device's service.xml.
 /// Unsubscribe must be overridden if this is called.</remarks>
 protected void EnableActionUnsubscribe()
 {
     OpenHome.Net.Core.Action action = new OpenHome.Net.Core.Action("Unsubscribe");
     List<String> allowedValues = new List<String>();
     action.AddInputParameter(new ParameterString("Sid", allowedValues));
     iDelegateUnsubscribe = new ActionDelegate(DoUnsubscribe);
     EnableAction(action, iDelegateUnsubscribe, GCHandle.ToIntPtr(iGch));
 }
 /// <summary>
 /// Signal that the action GetColor is supported.
 /// </summary>
 /// <remarks>The action's availability will be published in the device's service.xml.
 /// GetColor must be overridden if this is called.</remarks>
 protected void EnableActionGetColor()
 {
     OpenHome.Net.Core.Action action = new OpenHome.Net.Core.Action("GetColor");
     action.AddInputParameter(new ParameterUint("Index"));
     action.AddOutputParameter(new ParameterUint("Color"));
     iDelegateGetColor = new ActionDelegate(DoGetColor);
     EnableAction(action, iDelegateGetColor, GCHandle.ToIntPtr(iGch));
 }
 /// <summary>
 /// Signal that the action GetPropertyUpdates is supported.
 /// </summary>
 /// <remarks>The action's availability will be published in the device's service.xml.
 /// GetPropertyUpdates must be overridden if this is called.</remarks>
 protected void EnableActionGetPropertyUpdates()
 {
     OpenHome.Net.Core.Action action = new OpenHome.Net.Core.Action("GetPropertyUpdates");
     List<String> allowedValues = new List<String>();
     action.AddInputParameter(new ParameterString("ClientId", allowedValues));
     action.AddOutputParameter(new ParameterString("Updates", allowedValues));
     iDelegateGetPropertyUpdates = new ActionDelegate(DoGetPropertyUpdates);
     EnableAction(action, iDelegateGetPropertyUpdates, GCHandle.ToIntPtr(iGch));
 }
 /// <summary>
 /// Signal that the action Renew is supported.
 /// </summary>
 /// <remarks>The action's availability will be published in the device's service.xml.
 /// Renew must be overridden if this is called.</remarks>
 protected void EnableActionRenew()
 {
     OpenHome.Net.Core.Action action = new OpenHome.Net.Core.Action("Renew");
     List<String> allowedValues = new List<String>();
     action.AddInputParameter(new ParameterString("Sid", allowedValues));
     action.AddInputParameter(new ParameterUint("RequestedDuration"));
     action.AddOutputParameter(new ParameterUint("Duration"));
     iDelegateRenew = new ActionDelegate(DoRenew);
     EnableAction(action, iDelegateRenew, GCHandle.ToIntPtr(iGch));
 }
 /// <summary>
 /// Signal that the action GetColorComponents is supported.
 /// </summary>
 /// <remarks>The action's availability will be published in the device's service.xml.
 /// GetColorComponents must be overridden if this is called.</remarks>
 protected void EnableActionGetColorComponents()
 {
     OpenHome.Net.Core.Action action = new OpenHome.Net.Core.Action("GetColorComponents");
     action.AddInputParameter(new ParameterUint("Color"));
     action.AddOutputParameter(new ParameterUint("Brightness"));
     action.AddOutputParameter(new ParameterUint("Red"));
     action.AddOutputParameter(new ParameterUint("Green"));
     action.AddOutputParameter(new ParameterUint("Blue"));
     iDelegateGetColorComponents = new ActionDelegate(DoGetColorComponents);
     EnableAction(action, iDelegateGetColorComponents, GCHandle.ToIntPtr(iGch));
 }
 /// <summary>
 /// Signal that the action Subscribe is supported.
 /// </summary>
 /// <remarks>The action's availability will be published in the device's service.xml.
 /// Subscribe must be overridden if this is called.</remarks>
 protected void EnableActionSubscribe()
 {
     OpenHome.Net.Core.Action action = new OpenHome.Net.Core.Action("Subscribe");
     List<String> allowedValues = new List<String>();
     action.AddInputParameter(new ParameterString("ClientId", allowedValues));
     action.AddInputParameter(new ParameterString("Udn", allowedValues));
     action.AddInputParameter(new ParameterString("Service", allowedValues));
     action.AddInputParameter(new ParameterUint("RequestedDuration"));
     action.AddOutputParameter(new ParameterString("Sid", allowedValues));
     action.AddOutputParameter(new ParameterUint("Duration"));
     iDelegateSubscribe = new ActionDelegate(DoSubscribe);
     EnableAction(action, iDelegateSubscribe, GCHandle.ToIntPtr(iGch));
 }
        /// <summary>
        /// Constructor
        /// </summary>
        /// <remarks>Use CpProxy::[Un]Subscribe() to enable/disable querying of state variable and reporting of their changes.</remarks>
        /// <param name="aDevice">The device to use</param>
        public CpProxyOpenhomeOrgTestDimmableLight1(CpDevice aDevice)
            : base("openhome-org", "TestDimmableLight", 1, aDevice)
        {
            OpenHome.Net.Core.Parameter param;

            iActionGetLevel = new OpenHome.Net.Core.Action("GetLevel");
            param = new ParameterUint("Level");
            iActionGetLevel.AddOutputParameter(param);

            iActionSetLevel = new OpenHome.Net.Core.Action("SetLevel");
            param = new ParameterUint("Level");
            iActionSetLevel.AddInputParameter(param);

            iA_ARG_Level = new PropertyUint("A_ARG_Level", A_ARG_LevelPropertyChanged);
            AddProperty(iA_ARG_Level);

            iPropertyLock = new Mutex();
        }
Beispiel #39
0
        /// <summary>
        /// Constructor
        /// </summary>
        /// <remarks>Use CpProxy::[Un]Subscribe() to enable/disable querying of state variable and reporting of their changes.</remarks>
        /// <param name="aDevice">The device to use</param>
        public CpProxyAvOpenhomeOrgTime1(CpDevice aDevice)
            : base("av-openhome-org", "Time", 1, aDevice)
        {
            OpenHome.Net.Core.Parameter param;

            iActionTime = new OpenHome.Net.Core.Action("Time");
            param = new ParameterUint("TrackCount");
            iActionTime.AddOutputParameter(param);
            param = new ParameterUint("Duration");
            iActionTime.AddOutputParameter(param);
            param = new ParameterUint("Seconds");
            iActionTime.AddOutputParameter(param);

            iTrackCount = new PropertyUint("TrackCount", TrackCountPropertyChanged);
            AddProperty(iTrackCount);
            iDuration = new PropertyUint("Duration", DurationPropertyChanged);
            AddProperty(iDuration);
            iSeconds = new PropertyUint("Seconds", SecondsPropertyChanged);
            AddProperty(iSeconds);

            iPropertyLock = new Mutex();
        }
Beispiel #40
0
        /// <summary>
        /// Constructor
        /// </summary>
        /// <remarks>Use CpProxy::[Un]Subscribe() to enable/disable querying of state variable and reporting of their changes.</remarks>
        /// <param name="aDevice">The device to use</param>
        public CpProxyUpnpOrgSwitchPower1(CpDevice aDevice)
            : base("schemas-upnp-org", "SwitchPower", 1, aDevice)
        {
            OpenHome.Net.Core.Parameter param;

            iActionSetTarget = new OpenHome.Net.Core.Action("SetTarget");
            param = new ParameterBool("newTargetValue");
            iActionSetTarget.AddInputParameter(param);

            iActionGetTarget = new OpenHome.Net.Core.Action("GetTarget");
            param = new ParameterBool("RetTargetValue");
            iActionGetTarget.AddOutputParameter(param);

            iActionGetStatus = new OpenHome.Net.Core.Action("GetStatus");
            param = new ParameterBool("ResultStatus");
            iActionGetStatus.AddOutputParameter(param);

            iStatus = new PropertyBool("Status", StatusPropertyChanged);
            AddProperty(iStatus);

            iPropertyLock = new Mutex();
        }
        /// <summary>
        /// Constructor
        /// </summary>
        /// <remarks>Use CpProxy::[Un]Subscribe() to enable/disable querying of state variable and reporting of their changes.</remarks>
        /// <param name="aDevice">The device to use</param>
        public CpProxyOpenhomeOrgSubscriptionLongPoll1(CpDevice aDevice)
            : base("openhome-org", "SubscriptionLongPoll", 1, aDevice)
        {
            OpenHome.Net.Core.Parameter param;
            List<String> allowedValues = new List<String>();

            iActionSubscribe = new OpenHome.Net.Core.Action("Subscribe");
            param = new ParameterString("ClientId", allowedValues);
            iActionSubscribe.AddInputParameter(param);
            param = new ParameterString("Udn", allowedValues);
            iActionSubscribe.AddInputParameter(param);
            param = new ParameterString("Service", allowedValues);
            iActionSubscribe.AddInputParameter(param);
            param = new ParameterUint("RequestedDuration");
            iActionSubscribe.AddInputParameter(param);
            param = new ParameterString("Sid", allowedValues);
            iActionSubscribe.AddOutputParameter(param);
            param = new ParameterUint("Duration");
            iActionSubscribe.AddOutputParameter(param);

            iActionUnsubscribe = new OpenHome.Net.Core.Action("Unsubscribe");
            param = new ParameterString("Sid", allowedValues);
            iActionUnsubscribe.AddInputParameter(param);

            iActionRenew = new OpenHome.Net.Core.Action("Renew");
            param = new ParameterString("Sid", allowedValues);
            iActionRenew.AddInputParameter(param);
            param = new ParameterUint("RequestedDuration");
            iActionRenew.AddInputParameter(param);
            param = new ParameterUint("Duration");
            iActionRenew.AddOutputParameter(param);

            iActionGetPropertyUpdates = new OpenHome.Net.Core.Action("GetPropertyUpdates");
            param = new ParameterString("ClientId", allowedValues);
            iActionGetPropertyUpdates.AddInputParameter(param);
            param = new ParameterString("Updates", allowedValues);
            iActionGetPropertyUpdates.AddOutputParameter(param);
        }
 /// <summary>
 /// Signal that the action SetVerticalKeystone is supported.
 /// </summary>
 /// <remarks>The action's availability will be published in the device's service.xml.
 /// SetVerticalKeystone must be overridden if this is called.</remarks>
 protected void EnableActionSetVerticalKeystone()
 {
     OpenHome.Net.Core.Action action = new OpenHome.Net.Core.Action("SetVerticalKeystone");
     action.AddInputParameter(new ParameterUint("InstanceID"));
     action.AddInputParameter(new ParameterInt("DesiredVerticalKeystone"));
     iDelegateSetVerticalKeystone = new ActionDelegate(DoSetVerticalKeystone);
     EnableAction(action, iDelegateSetVerticalKeystone, GCHandle.ToIntPtr(iGch));
 }
 /// <summary>
 /// Signal that the action SetStateVariables is supported.
 /// </summary>
 /// <remarks>The action's availability will be published in the device's service.xml.
 /// SetStateVariables must be overridden if this is called.</remarks>
 protected void EnableActionSetStateVariables()
 {
     OpenHome.Net.Core.Action action = new OpenHome.Net.Core.Action("SetStateVariables");
     List<String> allowedValues = new List<String>();
     action.AddInputParameter(new ParameterUint("InstanceID"));
     action.AddInputParameter(new ParameterString("RenderingControlUDN", allowedValues));
     action.AddInputParameter(new ParameterString("ServiceType", allowedValues));
     action.AddInputParameter(new ParameterString("ServiceId", allowedValues));
     action.AddInputParameter(new ParameterString("StateVariableValuePairs", allowedValues));
     action.AddOutputParameter(new ParameterString("StateVariableList", allowedValues));
     iDelegateSetStateVariables = new ActionDelegate(DoSetStateVariables);
     EnableAction(action, iDelegateSetStateVariables, GCHandle.ToIntPtr(iGch));
 }
 /// <summary>
 /// Signal that the action SetSharpness is supported.
 /// </summary>
 /// <remarks>The action's availability will be published in the device's service.xml.
 /// SetSharpness must be overridden if this is called.</remarks>
 protected void EnableActionSetSharpness()
 {
     OpenHome.Net.Core.Action action = new OpenHome.Net.Core.Action("SetSharpness");
     action.AddInputParameter(new ParameterUint("InstanceID"));
     action.AddInputParameter(new ParameterUint("DesiredSharpness", 0, 2147483647, 1));
     iDelegateSetSharpness = new ActionDelegate(DoSetSharpness);
     EnableAction(action, iDelegateSetSharpness, GCHandle.ToIntPtr(iGch));
 }
 /// <summary>
 /// Signal that the action SetRedVideoGain is supported.
 /// </summary>
 /// <remarks>The action's availability will be published in the device's service.xml.
 /// SetRedVideoGain must be overridden if this is called.</remarks>
 protected void EnableActionSetRedVideoGain()
 {
     OpenHome.Net.Core.Action action = new OpenHome.Net.Core.Action("SetRedVideoGain");
     action.AddInputParameter(new ParameterUint("InstanceID"));
     action.AddInputParameter(new ParameterUint("DesiredRedVideoGain", 0, 2147483647, 1));
     iDelegateSetRedVideoGain = new ActionDelegate(DoSetRedVideoGain);
     EnableAction(action, iDelegateSetRedVideoGain, GCHandle.ToIntPtr(iGch));
 }
 /// <summary>
 /// Signal that the action GetProtocolInfo is supported.
 /// </summary>
 /// <remarks>The action's availability will be published in the device's service.xml.
 /// GetProtocolInfo must be overridden if this is called.</remarks>
 protected void EnableActionGetProtocolInfo()
 {
     OpenHome.Net.Core.Action action = new OpenHome.Net.Core.Action("GetProtocolInfo");
     action.AddOutputParameter(new ParameterRelated("Source", iPropertySourceProtocolInfo));
     action.AddOutputParameter(new ParameterRelated("Sink", iPropertySinkProtocolInfo));
     iDelegateGetProtocolInfo = new ActionDelegate(DoGetProtocolInfo);
     EnableAction(action, iDelegateGetProtocolInfo, GCHandle.ToIntPtr(iGch));
 }
 /// <summary>
 /// Signal that the action GetCurrentConnectionIDs is supported.
 /// </summary>
 /// <remarks>The action's availability will be published in the device's service.xml.
 /// GetCurrentConnectionIDs must be overridden if this is called.</remarks>
 protected void EnableActionGetCurrentConnectionIDs()
 {
     OpenHome.Net.Core.Action action = new OpenHome.Net.Core.Action("GetCurrentConnectionIDs");
     action.AddOutputParameter(new ParameterRelated("ConnectionIDs", iPropertyCurrentConnectionIDs));
     iDelegateGetCurrentConnectionIDs = new ActionDelegate(DoGetCurrentConnectionIDs);
     EnableAction(action, iDelegateGetCurrentConnectionIDs, GCHandle.ToIntPtr(iGch));
 }
 /// <summary>
 /// Signal that the action ListPresets is supported.
 /// </summary>
 /// <remarks>The action's availability will be published in the device's service.xml.
 /// ListPresets must be overridden if this is called.</remarks>
 protected void EnableActionListPresets()
 {
     OpenHome.Net.Core.Action action = new OpenHome.Net.Core.Action("ListPresets");
     List<String> allowedValues = new List<String>();
     action.AddInputParameter(new ParameterUint("InstanceID"));
     action.AddOutputParameter(new ParameterString("CurrentPresetNameList", allowedValues));
     iDelegateListPresets = new ActionDelegate(DoListPresets);
     EnableAction(action, iDelegateListPresets, GCHandle.ToIntPtr(iGch));
 }
 /// <summary>
 /// Signal that the action GetVolumeDBRange is supported.
 /// </summary>
 /// <remarks>The action's availability will be published in the device's service.xml.
 /// GetVolumeDBRange must be overridden if this is called.</remarks>
 protected void EnableActionGetVolumeDBRange()
 {
     OpenHome.Net.Core.Action action = new OpenHome.Net.Core.Action("GetVolumeDBRange");
     List<String> allowedValues = new List<String>();
     action.AddInputParameter(new ParameterUint("InstanceID"));
     action.AddInputParameter(new ParameterString("Channel", allowedValues));
     action.AddOutputParameter(new ParameterInt("MinValue"));
     action.AddOutputParameter(new ParameterInt("MaxValue"));
     iDelegateGetVolumeDBRange = new ActionDelegate(DoGetVolumeDBRange);
     EnableAction(action, iDelegateGetVolumeDBRange, GCHandle.ToIntPtr(iGch));
 }
 /// <summary>
 /// Signal that the action GetRedVideoBlackLevel is supported.
 /// </summary>
 /// <remarks>The action's availability will be published in the device's service.xml.
 /// GetRedVideoBlackLevel must be overridden if this is called.</remarks>
 protected void EnableActionGetRedVideoBlackLevel()
 {
     OpenHome.Net.Core.Action action = new OpenHome.Net.Core.Action("GetRedVideoBlackLevel");
     action.AddInputParameter(new ParameterUint("InstanceID"));
     action.AddOutputParameter(new ParameterUint("CurrentRedVideoBlackLevel", 0, 2147483647, 1));
     iDelegateGetRedVideoBlackLevel = new ActionDelegate(DoGetRedVideoBlackLevel);
     EnableAction(action, iDelegateGetRedVideoBlackLevel, GCHandle.ToIntPtr(iGch));
 }
 /// <summary>
 /// Signal that the action GetLoudness is supported.
 /// </summary>
 /// <remarks>The action's availability will be published in the device's service.xml.
 /// GetLoudness must be overridden if this is called.</remarks>
 protected void EnableActionGetLoudness()
 {
     OpenHome.Net.Core.Action action = new OpenHome.Net.Core.Action("GetLoudness");
     List<String> allowedValues = new List<String>();
     action.AddInputParameter(new ParameterUint("InstanceID"));
     action.AddInputParameter(new ParameterString("Channel", allowedValues));
     action.AddOutputParameter(new ParameterBool("CurrentLoudness"));
     iDelegateGetLoudness = new ActionDelegate(DoGetLoudness);
     EnableAction(action, iDelegateGetLoudness, GCHandle.ToIntPtr(iGch));
 }
 /// <summary>
 /// Signal that the action GetHorizontalKeystone is supported.
 /// </summary>
 /// <remarks>The action's availability will be published in the device's service.xml.
 /// GetHorizontalKeystone must be overridden if this is called.</remarks>
 protected void EnableActionGetHorizontalKeystone()
 {
     OpenHome.Net.Core.Action action = new OpenHome.Net.Core.Action("GetHorizontalKeystone");
     action.AddInputParameter(new ParameterUint("InstanceID"));
     action.AddOutputParameter(new ParameterInt("CurrentHorizontalKeystone"));
     iDelegateGetHorizontalKeystone = new ActionDelegate(DoGetHorizontalKeystone);
     EnableAction(action, iDelegateGetHorizontalKeystone, GCHandle.ToIntPtr(iGch));
 }
 /// <summary>
 /// Signal that the action GetGreenVideoGain is supported.
 /// </summary>
 /// <remarks>The action's availability will be published in the device's service.xml.
 /// GetGreenVideoGain must be overridden if this is called.</remarks>
 protected void EnableActionGetGreenVideoGain()
 {
     OpenHome.Net.Core.Action action = new OpenHome.Net.Core.Action("GetGreenVideoGain");
     action.AddInputParameter(new ParameterUint("InstanceID"));
     action.AddOutputParameter(new ParameterUint("CurrentGreenVideoGain", 0, 2147483647, 1));
     iDelegateGetGreenVideoGain = new ActionDelegate(DoGetGreenVideoGain);
     EnableAction(action, iDelegateGetGreenVideoGain, GCHandle.ToIntPtr(iGch));
 }
 /// <summary>
 /// Signal that the action SetVolumeDB is supported.
 /// </summary>
 /// <remarks>The action's availability will be published in the device's service.xml.
 /// SetVolumeDB must be overridden if this is called.</remarks>
 protected void EnableActionSetVolumeDB()
 {
     OpenHome.Net.Core.Action action = new OpenHome.Net.Core.Action("SetVolumeDB");
     List<String> allowedValues = new List<String>();
     action.AddInputParameter(new ParameterUint("InstanceID"));
     action.AddInputParameter(new ParameterString("Channel", allowedValues));
     action.AddInputParameter(new ParameterInt("DesiredVolume"));
     iDelegateSetVolumeDB = new ActionDelegate(DoSetVolumeDB);
     EnableAction(action, iDelegateSetVolumeDB, GCHandle.ToIntPtr(iGch));
 }
 /// <summary>
 /// Signal that the action ConnectionComplete is supported.
 /// </summary>
 /// <remarks>The action's availability will be published in the device's service.xml.
 /// ConnectionComplete must be overridden if this is called.</remarks>
 protected void EnableActionConnectionComplete()
 {
     OpenHome.Net.Core.Action action = new OpenHome.Net.Core.Action("ConnectionComplete");
     action.AddInputParameter(new ParameterInt("ConnectionID"));
     iDelegateConnectionComplete = new ActionDelegate(DoConnectionComplete);
     EnableAction(action, iDelegateConnectionComplete, GCHandle.ToIntPtr(iGch));
 }
 /// <summary>
 /// Signal that the action SelectPreset is supported.
 /// </summary>
 /// <remarks>The action's availability will be published in the device's service.xml.
 /// SelectPreset must be overridden if this is called.</remarks>
 protected void EnableActionSelectPreset()
 {
     OpenHome.Net.Core.Action action = new OpenHome.Net.Core.Action("SelectPreset");
     List<String> allowedValues = new List<String>();
     action.AddInputParameter(new ParameterUint("InstanceID"));
     action.AddInputParameter(new ParameterString("PresetName", allowedValues));
     iDelegateSelectPreset = new ActionDelegate(DoSelectPreset);
     EnableAction(action, iDelegateSelectPreset, GCHandle.ToIntPtr(iGch));
 }
 /// <summary>
 /// Signal that the action GetCurrentConnectionInfo is supported.
 /// </summary>
 /// <remarks>The action's availability will be published in the device's service.xml.
 /// GetCurrentConnectionInfo must be overridden if this is called.</remarks>
 protected void EnableActionGetCurrentConnectionInfo()
 {
     OpenHome.Net.Core.Action action = new OpenHome.Net.Core.Action("GetCurrentConnectionInfo");
     List<String> allowedValues = new List<String>();
     action.AddInputParameter(new ParameterInt("ConnectionID"));
     action.AddOutputParameter(new ParameterInt("RcsID"));
     action.AddOutputParameter(new ParameterInt("AVTransportID"));
     action.AddOutputParameter(new ParameterString("ProtocolInfo", allowedValues));
     action.AddOutputParameter(new ParameterString("PeerConnectionManager", allowedValues));
     action.AddOutputParameter(new ParameterInt("PeerConnectionID"));
     allowedValues.Add("Input");
     allowedValues.Add("Output");
     action.AddOutputParameter(new ParameterString("Direction", allowedValues));
     allowedValues.Clear();
     allowedValues.Add("OK");
     allowedValues.Add("ContentFormatMismatch");
     allowedValues.Add("InsufficientBandwidth");
     allowedValues.Add("UnreliableChannel");
     allowedValues.Add("Unknown");
     action.AddOutputParameter(new ParameterString("Status", allowedValues));
     allowedValues.Clear();
     iDelegateGetCurrentConnectionInfo = new ActionDelegate(DoGetCurrentConnectionInfo);
     EnableAction(action, iDelegateGetCurrentConnectionInfo, GCHandle.ToIntPtr(iGch));
 }
 /// <summary>
 /// Signal that the action SetColorTemperature is supported.
 /// </summary>
 /// <remarks>The action's availability will be published in the device's service.xml.
 /// SetColorTemperature must be overridden if this is called.</remarks>
 protected void EnableActionSetColorTemperature()
 {
     OpenHome.Net.Core.Action action = new OpenHome.Net.Core.Action("SetColorTemperature");
     action.AddInputParameter(new ParameterUint("InstanceID"));
     action.AddInputParameter(new ParameterUint("DesiredColorTemperature", 0, 2147483647, 1));
     iDelegateSetColorTemperature = new ActionDelegate(DoSetColorTemperature);
     EnableAction(action, iDelegateSetColorTemperature, GCHandle.ToIntPtr(iGch));
 }
 /// <summary>
 /// Signal that the action PrepareForConnection is supported.
 /// </summary>
 /// <remarks>The action's availability will be published in the device's service.xml.
 /// PrepareForConnection must be overridden if this is called.</remarks>
 protected void EnableActionPrepareForConnection()
 {
     OpenHome.Net.Core.Action action = new OpenHome.Net.Core.Action("PrepareForConnection");
     List<String> allowedValues = new List<String>();
     action.AddInputParameter(new ParameterString("RemoteProtocolInfo", allowedValues));
     action.AddInputParameter(new ParameterString("PeerConnectionManager", allowedValues));
     action.AddInputParameter(new ParameterInt("PeerConnectionID"));
     allowedValues.Add("Input");
     allowedValues.Add("Output");
     action.AddInputParameter(new ParameterString("Direction", allowedValues));
     allowedValues.Clear();
     action.AddOutputParameter(new ParameterInt("ConnectionID"));
     action.AddOutputParameter(new ParameterInt("AVTransportID"));
     action.AddOutputParameter(new ParameterInt("RcsID"));
     iDelegatePrepareForConnection = new ActionDelegate(DoPrepareForConnection);
     EnableAction(action, iDelegatePrepareForConnection, GCHandle.ToIntPtr(iGch));
 }
 /// <summary>
 /// Signal that the action SetGreenVideoBlackLevel is supported.
 /// </summary>
 /// <remarks>The action's availability will be published in the device's service.xml.
 /// SetGreenVideoBlackLevel must be overridden if this is called.</remarks>
 protected void EnableActionSetGreenVideoBlackLevel()
 {
     OpenHome.Net.Core.Action action = new OpenHome.Net.Core.Action("SetGreenVideoBlackLevel");
     action.AddInputParameter(new ParameterUint("InstanceID"));
     action.AddInputParameter(new ParameterUint("DesiredGreenVideoBlackLevel", 0, 2147483647, 1));
     iDelegateSetGreenVideoBlackLevel = new ActionDelegate(DoSetGreenVideoBlackLevel);
     EnableAction(action, iDelegateSetGreenVideoBlackLevel, GCHandle.ToIntPtr(iGch));
 }