public AddOutputParameter ( |
||
aParameter | Output parameter. Ownership is passed to the action | |
Результат | void |
/// <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(); }
/// <summary> /// Signal that the action GetDeviceAccountMax is supported. /// </summary> /// <remarks>The action's availability will be published in the device's service.xml. /// GetDeviceAccountMax must be overridden if this is called.</remarks> protected void EnableActionGetDeviceAccountMax() { OpenHome.Net.Core.Action action = new OpenHome.Net.Core.Action("GetDeviceAccountMax"); action.AddOutputParameter(new ParameterRelated("DeviceMax", iPropertyDeviceMax)); action.AddOutputParameter(new ParameterRelated("AccountMax", iPropertyAccountMax)); iDelegateGetDeviceAccountMax = new ActionDelegate(DoGetDeviceAccountMax); EnableAction(action, iDelegateGetDeviceAccountMax, GCHandle.ToIntPtr(iGch)); }
/// <summary> /// Signal that the action GetUpdateFeedParams is supported. /// </summary> /// <remarks>The action's availability will be published in the device's service.xml. /// GetUpdateFeedParams must be overridden if this is called.</remarks> protected void EnableActionGetUpdateFeedParams() { OpenHome.Net.Core.Action action = new OpenHome.Net.Core.Action("GetUpdateFeedParams"); action.AddOutputParameter(new ParameterRelated("Topic", iPropertyUpdateTopic)); action.AddOutputParameter(new ParameterRelated("Channel", iPropertyUpdateChannel)); iDelegateGetUpdateFeedParams = new ActionDelegate(DoGetUpdateFeedParams); EnableAction(action, iDelegateGetUpdateFeedParams, 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 Track is supported. /// </summary> /// <remarks>The action's availability will be published in the device's service.xml. /// Track must be overridden if this is called.</remarks> protected void EnableActionTrack() { OpenHome.Net.Core.Action action = new OpenHome.Net.Core.Action("Track"); action.AddOutputParameter(new ParameterRelated("Uri", iPropertyUri)); action.AddOutputParameter(new ParameterRelated("Metadata", iPropertyMetadata)); iDelegateTrack = new ActionDelegate(DoTrack); EnableAction(action, iDelegateTrack, GCHandle.ToIntPtr(iGch)); }
/// <summary> /// Signal that the action Time is supported. /// </summary> /// <remarks>The action's availability will be published in the device's service.xml. /// Time must be overridden if this is called.</remarks> protected void EnableActionTime() { OpenHome.Net.Core.Action action = new OpenHome.Net.Core.Action("Time"); action.AddOutputParameter(new ParameterRelated("TrackCount", iPropertyTrackCount)); action.AddOutputParameter(new ParameterRelated("Duration", iPropertyDuration)); action.AddOutputParameter(new ParameterRelated("Seconds", iPropertySeconds)); iDelegateTime = new ActionDelegate(DoTime); EnableAction(action, iDelegateTime, GCHandle.ToIntPtr(iGch)); }
/// <summary> /// Signal that the action Ports is supported. /// </summary> /// <remarks>The action's availability will be published in the device's service.xml. /// Ports must be overridden if this is called.</remarks> protected void EnableActionPorts() { OpenHome.Net.Core.Action action = new OpenHome.Net.Core.Action("Ports"); action.AddOutputParameter(new ParameterRelated("Sender", iPropertySender)); action.AddOutputParameter(new ParameterRelated("Receiver", iPropertyReceiver)); action.AddOutputParameter(new ParameterRelated("Results", iPropertyResults)); iDelegatePorts = new ActionDelegate(DoPorts); EnableAction(action, iDelegatePorts, GCHandle.ToIntPtr(iGch)); }
/// <summary> /// Signal that the action Counters is supported. /// </summary> /// <remarks>The action's availability will be published in the device's service.xml. /// Counters must be overridden if this is called.</remarks> protected void EnableActionCounters() { OpenHome.Net.Core.Action action = new OpenHome.Net.Core.Action("Counters"); action.AddOutputParameter(new ParameterRelated("TrackCount", iPropertyTrackCount)); action.AddOutputParameter(new ParameterRelated("DetailsCount", iPropertyDetailsCount)); action.AddOutputParameter(new ParameterRelated("MetatextCount", iPropertyMetatextCount)); iDelegateCounters = new ActionDelegate(DoCounters); EnableAction(action, iDelegateCounters, 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 CpProxyOpenhomeOrgTestLights1(ICpDevice aDevice) : base("openhome-org", "TestLights", 1, aDevice) { OpenHome.Net.Core.Parameter param; List <String> allowedValues = new List <String>(); iActionGetCount = new OpenHome.Net.Core.Action("GetCount"); param = new ParameterUint("Count"); iActionGetCount.AddOutputParameter(param); iActionGetRoom = new OpenHome.Net.Core.Action("GetRoom"); param = new ParameterUint("Index"); iActionGetRoom.AddInputParameter(param); param = new ParameterString("RoomName", allowedValues); iActionGetRoom.AddOutputParameter(param); iActionGetName = new OpenHome.Net.Core.Action("GetName"); param = new ParameterUint("Index"); iActionGetName.AddInputParameter(param); param = new ParameterString("FriendlyName", allowedValues); iActionGetName.AddOutputParameter(param); iActionGetPosition = new OpenHome.Net.Core.Action("GetPosition"); param = new ParameterUint("Index"); iActionGetPosition.AddInputParameter(param); param = new ParameterUint("X"); iActionGetPosition.AddOutputParameter(param); param = new ParameterUint("Y"); iActionGetPosition.AddOutputParameter(param); param = new ParameterUint("Z"); iActionGetPosition.AddOutputParameter(param); iActionSetColor = new OpenHome.Net.Core.Action("SetColor"); param = new ParameterUint("Index"); iActionSetColor.AddInputParameter(param); param = new ParameterUint("Color"); iActionSetColor.AddInputParameter(param); iActionGetColor = new OpenHome.Net.Core.Action("GetColor"); param = new ParameterUint("Index"); iActionGetColor.AddInputParameter(param); param = new ParameterUint("Color"); iActionGetColor.AddOutputParameter(param); iActionGetColorComponents = new OpenHome.Net.Core.Action("GetColorComponents"); param = new ParameterUint("Color"); iActionGetColorComponents.AddInputParameter(param); param = new ParameterUint("Brightness"); iActionGetColorComponents.AddOutputParameter(param); param = new ParameterUint("Red"); iActionGetColorComponents.AddOutputParameter(param); param = new ParameterUint("Green"); iActionGetColorComponents.AddOutputParameter(param); param = new ParameterUint("Blue"); iActionGetColorComponents.AddOutputParameter(param); }
/// <summary> /// Signal that the action GetPosition is supported. /// </summary> /// <remarks>The action's availability will be published in the device's service.xml. /// GetPosition must be overridden if this is called.</remarks> protected void EnableActionGetPosition() { OpenHome.Net.Core.Action action = new OpenHome.Net.Core.Action("GetPosition"); action.AddInputParameter(new ParameterUint("Index")); action.AddOutputParameter(new ParameterUint("X")); action.AddOutputParameter(new ParameterUint("Y")); action.AddOutputParameter(new ParameterUint("Z")); iDelegateGetPosition = new ActionDelegate(DoGetPosition); EnableAction(action, iDelegateGetPosition, GCHandle.ToIntPtr(iGch)); }
/// <summary> /// Signal that the action SoftwareUpdate is supported. /// </summary> /// <remarks>The action's availability will be published in the device's service.xml. /// SoftwareUpdate must be overridden if this is called.</remarks> protected void EnableActionSoftwareUpdate() { OpenHome.Net.Core.Action action = new OpenHome.Net.Core.Action("SoftwareUpdate"); List <String> allowedValues = new List <String>(); action.AddOutputParameter(new ParameterBool("aAvailable")); action.AddOutputParameter(new ParameterString("aSoftwareVersion", allowedValues)); iDelegateSoftwareUpdate = new ActionDelegate(DoSoftwareUpdate); EnableAction(action, iDelegateSoftwareUpdate, 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 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> /// 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 CpProxyRaumfeldComConfigService1(CpDevice aDevice) : base("schemas-raumfeld-com", "ConfigService", 1, aDevice) { OpenHome.Net.Core.Parameter param; List <String> allowedValues = new List <String>(); iActionGetPublicKey = new OpenHome.Net.Core.Action("GetPublicKey"); param = new ParameterString("Key", allowedValues); iActionGetPublicKey.AddOutputParameter(param); iActionGetRevision = new OpenHome.Net.Core.Action("GetRevision"); param = new ParameterUint("Revision"); iActionGetRevision.AddOutputParameter(param); iActionSetPreferences = new OpenHome.Net.Core.Action("SetPreferences"); param = new ParameterString("Preferences", allowedValues); iActionSetPreferences.AddInputParameter(param); param = new ParameterString("LeastCommonChangedNode", allowedValues); iActionSetPreferences.AddInputParameter(param); param = new ParameterUint("ExpectedRevision"); iActionSetPreferences.AddInputParameter(param); allowedValues.Add("ForceOverwrite"); allowedValues.Add("Cancel"); param = new ParameterString("OnConflict", allowedValues); iActionSetPreferences.AddInputParameter(param); allowedValues.Clear(); iActionGetPreferences = new OpenHome.Net.Core.Action("GetPreferences"); param = new ParameterString("PublicKey", allowedValues); iActionGetPreferences.AddInputParameter(param); param = new ParameterString("Preferences", allowedValues); iActionGetPreferences.AddOutputParameter(param); param = new ParameterUint("Revision"); iActionGetPreferences.AddOutputParameter(param); iActionGetDevice = new OpenHome.Net.Core.Action("GetDevice"); allowedValues.Add("meta-server"); allowedValues.Add("renderer"); param = new ParameterString("Service", allowedValues); iActionGetDevice.AddInputParameter(param); allowedValues.Clear(); param = new ParameterString("UniqueDeviceName", allowedValues); iActionGetDevice.AddOutputParameter(param); iLastChange = new PropertyString("LastChange", LastChangePropertyChanged); AddProperty(iLastChange); iRevision = new PropertyUint("Revision", RevisionPropertyChanged); AddProperty(iRevision); iARG_TYPE_OnConflict = new PropertyString("ARG_TYPE_OnConflict", ARG_TYPE_OnConflictPropertyChanged); AddProperty(iARG_TYPE_OnConflict); iPropertyLock = new Mutex(); }
/// <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> /// 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> /// Signal that the action Get is supported. /// </summary> /// <remarks>The action's availability will be published in the device's service.xml. /// Get must be overridden if this is called.</remarks> protected void EnableActionGet() { OpenHome.Net.Core.Action action = new OpenHome.Net.Core.Action("Get"); List <String> allowedValues = new List <String>(); action.AddInputParameter(new ParameterString("Id", allowedValues)); action.AddOutputParameter(new ParameterString("UserName", allowedValues)); action.AddOutputParameter(new ParameterBinary("Password")); action.AddOutputParameter(new ParameterBool("Enabled")); action.AddOutputParameter(new ParameterString("Status", allowedValues)); action.AddOutputParameter(new ParameterString("Data", allowedValues)); iDelegateGet = new ActionDelegate(DoGet); EnableAction(action, iDelegateGet, 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 CpProxyLinnCoUkUpdate1(ICpDevice aDevice) : base("linn-co-uk", "Update", 1, aDevice) { OpenHome.Net.Core.Parameter param; List <String> allowedValues = new List <String>(); iActionPushManifest = new OpenHome.Net.Core.Action("PushManifest"); param = new ParameterString("Uri", allowedValues); iActionPushManifest.AddInputParameter(param); iActionSetUpdateFeedParams = new OpenHome.Net.Core.Action("SetUpdateFeedParams"); param = new ParameterString("Topic", allowedValues); iActionSetUpdateFeedParams.AddInputParameter(param); allowedValues.Add("release"); allowedValues.Add("beta"); allowedValues.Add("development"); allowedValues.Add("nightly"); param = new ParameterString("Channel", allowedValues); iActionSetUpdateFeedParams.AddInputParameter(param); allowedValues.Clear(); iActionGetUpdateFeedParams = new OpenHome.Net.Core.Action("GetUpdateFeedParams"); param = new ParameterString("Topic", allowedValues); iActionGetUpdateFeedParams.AddOutputParameter(param); allowedValues.Add("release"); allowedValues.Add("beta"); allowedValues.Add("development"); allowedValues.Add("nightly"); param = new ParameterString("Channel", allowedValues); iActionGetUpdateFeedParams.AddOutputParameter(param); allowedValues.Clear(); iActionGetUpdateStatus = new OpenHome.Net.Core.Action("GetUpdateStatus"); param = new ParameterString("UpdateStatus", allowedValues); iActionGetUpdateStatus.AddOutputParameter(param); iActionApply = new OpenHome.Net.Core.Action("Apply"); iActionRestore = new OpenHome.Net.Core.Action("Restore"); iUpdateStatus = new PropertyString("UpdateStatus", UpdateStatusPropertyChanged); AddProperty(iUpdateStatus); iUpdateTopic = new PropertyString("UpdateTopic", UpdateTopicPropertyChanged); AddProperty(iUpdateTopic); iUpdateChannel = new PropertyString("UpdateChannel", UpdateChannelPropertyChanged); AddProperty(iUpdateChannel); iPropertyLock = new Mutex(); }
/// <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 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> /// 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(); }
/// <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 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)); }
/// <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 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 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 GetTarget is supported. /// </summary> /// <remarks>The action's availability will be published in the device's service.xml. /// GetTarget must be overridden if this is called.</remarks> protected void EnableActionGetTarget() { OpenHome.Net.Core.Action action = new OpenHome.Net.Core.Action("GetTarget"); action.AddOutputParameter(new ParameterBool("RetTargetValue")); iDelegateGetTarget = new ActionDelegate(DoGetTarget); EnableAction(action, iDelegateGetTarget, GCHandle.ToIntPtr(iGch)); }
/// <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 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 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)); }
/// <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 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)); }
/// <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)); }
/// <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> /// 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(); }
/// <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> /// 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(); }
/// <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> /// 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 GetVerticalKeystone is supported. /// </summary> /// <remarks>The action's availability will be published in the device's service.xml. /// GetVerticalKeystone must be overridden if this is called.</remarks> protected void EnableActionGetVerticalKeystone() { OpenHome.Net.Core.Action action = new OpenHome.Net.Core.Action("GetVerticalKeystone"); action.AddInputParameter(new ParameterUint("InstanceID")); action.AddOutputParameter(new ParameterInt("CurrentVerticalKeystone")); iDelegateGetVerticalKeystone = new ActionDelegate(DoGetVerticalKeystone); EnableAction(action, iDelegateGetVerticalKeystone, GCHandle.ToIntPtr(iGch)); }
/// <summary> /// Signal that the action GetSharpness is supported. /// </summary> /// <remarks>The action's availability will be published in the device's service.xml. /// GetSharpness must be overridden if this is called.</remarks> protected void EnableActionGetSharpness() { OpenHome.Net.Core.Action action = new OpenHome.Net.Core.Action("GetSharpness"); action.AddInputParameter(new ParameterUint("InstanceID")); action.AddOutputParameter(new ParameterUint("CurrentSharpness", 0, 2147483647, 1)); iDelegateGetSharpness = new ActionDelegate(DoGetSharpness); EnableAction(action, iDelegateGetSharpness, 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 GetTransportInfo is supported. /// </summary> /// <remarks>The action's availability will be published in the device's service.xml. /// GetTransportInfo must be overridden if this is called.</remarks> protected void EnableActionGetTransportInfo() { OpenHome.Net.Core.Action action = new OpenHome.Net.Core.Action("GetTransportInfo"); List<String> allowedValues = new List<String>(); action.AddInputParameter(new ParameterUint("InstanceID")); allowedValues.Add("STOPPED"); allowedValues.Add("PLAYING"); allowedValues.Add("TRANSITIONING"); allowedValues.Add("PAUSED_PLAYBACK"); allowedValues.Add("PAUSED_RECORDING"); allowedValues.Add("RECORDING"); allowedValues.Add("NO_MEDIA_PRESENT"); action.AddOutputParameter(new ParameterString("CurrentTransportState", allowedValues)); allowedValues.Clear(); allowedValues.Add("OK"); allowedValues.Add("ERROR_OCCURRED"); action.AddOutputParameter(new ParameterString("CurrentTransportStatus", allowedValues)); allowedValues.Clear(); allowedValues.Add("1"); action.AddOutputParameter(new ParameterString("CurrentSpeed", allowedValues)); allowedValues.Clear(); iDelegateGetTransportInfo = new ActionDelegate(DoGetTransportInfo); EnableAction(action, iDelegateGetTransportInfo, 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> /// 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 CpProxyUpnpOrgScheduledRecording2(CpDevice aDevice) : base("schemas-upnp-org", "ScheduledRecording", 2, aDevice) { OpenHome.Net.Core.Parameter param; List<String> allowedValues = new List<String>(); iActionGetSortCapabilities = new OpenHome.Net.Core.Action("GetSortCapabilities"); param = new ParameterString("SortCaps", allowedValues); iActionGetSortCapabilities.AddOutputParameter(param); param = new ParameterUint("SortLevelCap"); iActionGetSortCapabilities.AddOutputParameter(param); iActionGetPropertyList = new OpenHome.Net.Core.Action("GetPropertyList"); allowedValues.Add("A_ARG_TYPE_RecordSchedule"); allowedValues.Add("A_ARG_TYPE_RecordTask"); allowedValues.Add("A_ARG_TYPE_RecordScheduleParts"); param = new ParameterString("DataTypeID", allowedValues); iActionGetPropertyList.AddInputParameter(param); allowedValues.Clear(); param = new ParameterString("PropertyList", allowedValues); iActionGetPropertyList.AddOutputParameter(param); iActionGetAllowedValues = new OpenHome.Net.Core.Action("GetAllowedValues"); allowedValues.Add("A_ARG_TYPE_RecordSchedule"); allowedValues.Add("A_ARG_TYPE_RecordTask"); allowedValues.Add("A_ARG_TYPE_RecordScheduleParts"); param = new ParameterString("DataTypeID", allowedValues); iActionGetAllowedValues.AddInputParameter(param); allowedValues.Clear(); param = new ParameterString("Filter", allowedValues); iActionGetAllowedValues.AddInputParameter(param); param = new ParameterString("PropertyInfo", allowedValues); iActionGetAllowedValues.AddOutputParameter(param); iActionGetStateUpdateID = new OpenHome.Net.Core.Action("GetStateUpdateID"); param = new ParameterUint("Id"); iActionGetStateUpdateID.AddOutputParameter(param); iActionBrowseRecordSchedules = new OpenHome.Net.Core.Action("BrowseRecordSchedules"); param = new ParameterString("Filter", allowedValues); iActionBrowseRecordSchedules.AddInputParameter(param); param = new ParameterUint("StartingIndex"); iActionBrowseRecordSchedules.AddInputParameter(param); param = new ParameterUint("RequestedCount"); iActionBrowseRecordSchedules.AddInputParameter(param); param = new ParameterString("SortCriteria", allowedValues); iActionBrowseRecordSchedules.AddInputParameter(param); param = new ParameterString("Result", allowedValues); iActionBrowseRecordSchedules.AddOutputParameter(param); param = new ParameterUint("NumberReturned"); iActionBrowseRecordSchedules.AddOutputParameter(param); param = new ParameterUint("TotalMatches"); iActionBrowseRecordSchedules.AddOutputParameter(param); param = new ParameterUint("UpdateID"); iActionBrowseRecordSchedules.AddOutputParameter(param); iActionBrowseRecordTasks = new OpenHome.Net.Core.Action("BrowseRecordTasks"); param = new ParameterString("RecordScheduleID", allowedValues); iActionBrowseRecordTasks.AddInputParameter(param); param = new ParameterString("Filter", allowedValues); iActionBrowseRecordTasks.AddInputParameter(param); param = new ParameterUint("StartingIndex"); iActionBrowseRecordTasks.AddInputParameter(param); param = new ParameterUint("RequestedCount"); iActionBrowseRecordTasks.AddInputParameter(param); param = new ParameterString("SortCriteria", allowedValues); iActionBrowseRecordTasks.AddInputParameter(param); param = new ParameterString("Result", allowedValues); iActionBrowseRecordTasks.AddOutputParameter(param); param = new ParameterUint("NumberReturned"); iActionBrowseRecordTasks.AddOutputParameter(param); param = new ParameterUint("TotalMatches"); iActionBrowseRecordTasks.AddOutputParameter(param); param = new ParameterUint("UpdateID"); iActionBrowseRecordTasks.AddOutputParameter(param); iActionCreateRecordSchedule = new OpenHome.Net.Core.Action("CreateRecordSchedule"); param = new ParameterString("Elements", allowedValues); iActionCreateRecordSchedule.AddInputParameter(param); param = new ParameterString("RecordScheduleID", allowedValues); iActionCreateRecordSchedule.AddOutputParameter(param); param = new ParameterString("Result", allowedValues); iActionCreateRecordSchedule.AddOutputParameter(param); param = new ParameterUint("UpdateID"); iActionCreateRecordSchedule.AddOutputParameter(param); iActionDeleteRecordSchedule = new OpenHome.Net.Core.Action("DeleteRecordSchedule"); param = new ParameterString("RecordScheduleID", allowedValues); iActionDeleteRecordSchedule.AddInputParameter(param); iActionGetRecordSchedule = new OpenHome.Net.Core.Action("GetRecordSchedule"); param = new ParameterString("RecordScheduleID", allowedValues); iActionGetRecordSchedule.AddInputParameter(param); param = new ParameterString("Filter", allowedValues); iActionGetRecordSchedule.AddInputParameter(param); param = new ParameterString("Result", allowedValues); iActionGetRecordSchedule.AddOutputParameter(param); param = new ParameterUint("UpdateID"); iActionGetRecordSchedule.AddOutputParameter(param); iActionEnableRecordSchedule = new OpenHome.Net.Core.Action("EnableRecordSchedule"); param = new ParameterString("RecordScheduleID", allowedValues); iActionEnableRecordSchedule.AddInputParameter(param); iActionDisableRecordSchedule = new OpenHome.Net.Core.Action("DisableRecordSchedule"); param = new ParameterString("RecordScheduleID", allowedValues); iActionDisableRecordSchedule.AddInputParameter(param); iActionDeleteRecordTask = new OpenHome.Net.Core.Action("DeleteRecordTask"); param = new ParameterString("RecordTaskID", allowedValues); iActionDeleteRecordTask.AddInputParameter(param); iActionGetRecordTask = new OpenHome.Net.Core.Action("GetRecordTask"); param = new ParameterString("RecordTaskID", allowedValues); iActionGetRecordTask.AddInputParameter(param); param = new ParameterString("Filter", allowedValues); iActionGetRecordTask.AddInputParameter(param); param = new ParameterString("Result", allowedValues); iActionGetRecordTask.AddOutputParameter(param); param = new ParameterUint("UpdateID"); iActionGetRecordTask.AddOutputParameter(param); iActionEnableRecordTask = new OpenHome.Net.Core.Action("EnableRecordTask"); param = new ParameterString("RecordTaskID", allowedValues); iActionEnableRecordTask.AddInputParameter(param); iActionDisableRecordTask = new OpenHome.Net.Core.Action("DisableRecordTask"); param = new ParameterString("RecordTaskID", allowedValues); iActionDisableRecordTask.AddInputParameter(param); iActionResetRecordTask = new OpenHome.Net.Core.Action("ResetRecordTask"); param = new ParameterString("RecordTaskID", allowedValues); iActionResetRecordTask.AddInputParameter(param); iActionGetRecordScheduleConflicts = new OpenHome.Net.Core.Action("GetRecordScheduleConflicts"); param = new ParameterString("RecordScheduleID", allowedValues); iActionGetRecordScheduleConflicts.AddInputParameter(param); param = new ParameterString("RecordScheduleConflictIDList", allowedValues); iActionGetRecordScheduleConflicts.AddOutputParameter(param); param = new ParameterUint("UpdateID"); iActionGetRecordScheduleConflicts.AddOutputParameter(param); iActionGetRecordTaskConflicts = new OpenHome.Net.Core.Action("GetRecordTaskConflicts"); param = new ParameterString("RecordTaskID", allowedValues); iActionGetRecordTaskConflicts.AddInputParameter(param); param = new ParameterString("RecordTaskConflictIDList", allowedValues); iActionGetRecordTaskConflicts.AddOutputParameter(param); param = new ParameterUint("UpdateID"); iActionGetRecordTaskConflicts.AddOutputParameter(param); iLastChange = new PropertyString("LastChange", LastChangePropertyChanged); AddProperty(iLastChange); 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 CpProxyAvOpenhomeOrgProduct1(CpDevice aDevice) : base("av-openhome-org", "Product", 1, aDevice) { OpenHome.Net.Core.Parameter param; List<String> allowedValues = new List<String>(); iActionManufacturer = new OpenHome.Net.Core.Action("Manufacturer"); param = new ParameterString("Name", allowedValues); iActionManufacturer.AddOutputParameter(param); param = new ParameterString("Info", allowedValues); iActionManufacturer.AddOutputParameter(param); param = new ParameterString("Url", allowedValues); iActionManufacturer.AddOutputParameter(param); param = new ParameterString("ImageUri", allowedValues); iActionManufacturer.AddOutputParameter(param); iActionModel = new OpenHome.Net.Core.Action("Model"); param = new ParameterString("Name", allowedValues); iActionModel.AddOutputParameter(param); param = new ParameterString("Info", allowedValues); iActionModel.AddOutputParameter(param); param = new ParameterString("Url", allowedValues); iActionModel.AddOutputParameter(param); param = new ParameterString("ImageUri", allowedValues); iActionModel.AddOutputParameter(param); iActionProduct = new OpenHome.Net.Core.Action("Product"); param = new ParameterString("Room", allowedValues); iActionProduct.AddOutputParameter(param); param = new ParameterString("Name", allowedValues); iActionProduct.AddOutputParameter(param); param = new ParameterString("Info", allowedValues); iActionProduct.AddOutputParameter(param); param = new ParameterString("Url", allowedValues); iActionProduct.AddOutputParameter(param); param = new ParameterString("ImageUri", allowedValues); iActionProduct.AddOutputParameter(param); iActionStandby = new OpenHome.Net.Core.Action("Standby"); param = new ParameterBool("Value"); iActionStandby.AddOutputParameter(param); iActionSetStandby = new OpenHome.Net.Core.Action("SetStandby"); param = new ParameterBool("Value"); iActionSetStandby.AddInputParameter(param); iActionSourceCount = new OpenHome.Net.Core.Action("SourceCount"); param = new ParameterUint("Value"); iActionSourceCount.AddOutputParameter(param); iActionSourceXml = new OpenHome.Net.Core.Action("SourceXml"); param = new ParameterString("Value", allowedValues); iActionSourceXml.AddOutputParameter(param); iActionSourceIndex = new OpenHome.Net.Core.Action("SourceIndex"); param = new ParameterUint("Value"); iActionSourceIndex.AddOutputParameter(param); iActionSetSourceIndex = new OpenHome.Net.Core.Action("SetSourceIndex"); param = new ParameterUint("Value"); iActionSetSourceIndex.AddInputParameter(param); iActionSetSourceIndexByName = new OpenHome.Net.Core.Action("SetSourceIndexByName"); param = new ParameterString("Value", allowedValues); iActionSetSourceIndexByName.AddInputParameter(param); iActionSource = new OpenHome.Net.Core.Action("Source"); param = new ParameterUint("Index"); iActionSource.AddInputParameter(param); param = new ParameterString("SystemName", allowedValues); iActionSource.AddOutputParameter(param); param = new ParameterString("Type", allowedValues); iActionSource.AddOutputParameter(param); param = new ParameterString("Name", allowedValues); iActionSource.AddOutputParameter(param); param = new ParameterBool("Visible"); iActionSource.AddOutputParameter(param); iActionAttributes = new OpenHome.Net.Core.Action("Attributes"); param = new ParameterString("Value", allowedValues); iActionAttributes.AddOutputParameter(param); iActionSourceXmlChangeCount = new OpenHome.Net.Core.Action("SourceXmlChangeCount"); param = new ParameterUint("Value"); iActionSourceXmlChangeCount.AddOutputParameter(param); iManufacturerName = new PropertyString("ManufacturerName", ManufacturerNamePropertyChanged); AddProperty(iManufacturerName); iManufacturerInfo = new PropertyString("ManufacturerInfo", ManufacturerInfoPropertyChanged); AddProperty(iManufacturerInfo); iManufacturerUrl = new PropertyString("ManufacturerUrl", ManufacturerUrlPropertyChanged); AddProperty(iManufacturerUrl); iManufacturerImageUri = new PropertyString("ManufacturerImageUri", ManufacturerImageUriPropertyChanged); AddProperty(iManufacturerImageUri); iModelName = new PropertyString("ModelName", ModelNamePropertyChanged); AddProperty(iModelName); iModelInfo = new PropertyString("ModelInfo", ModelInfoPropertyChanged); AddProperty(iModelInfo); iModelUrl = new PropertyString("ModelUrl", ModelUrlPropertyChanged); AddProperty(iModelUrl); iModelImageUri = new PropertyString("ModelImageUri", ModelImageUriPropertyChanged); AddProperty(iModelImageUri); iProductRoom = new PropertyString("ProductRoom", ProductRoomPropertyChanged); AddProperty(iProductRoom); iProductName = new PropertyString("ProductName", ProductNamePropertyChanged); AddProperty(iProductName); iProductInfo = new PropertyString("ProductInfo", ProductInfoPropertyChanged); AddProperty(iProductInfo); iProductUrl = new PropertyString("ProductUrl", ProductUrlPropertyChanged); AddProperty(iProductUrl); iProductImageUri = new PropertyString("ProductImageUri", ProductImageUriPropertyChanged); AddProperty(iProductImageUri); iStandby = new PropertyBool("Standby", StandbyPropertyChanged); AddProperty(iStandby); iSourceIndex = new PropertyUint("SourceIndex", SourceIndexPropertyChanged); AddProperty(iSourceIndex); iSourceCount = new PropertyUint("SourceCount", SourceCountPropertyChanged); AddProperty(iSourceCount); iSourceXml = new PropertyString("SourceXml", SourceXmlPropertyChanged); AddProperty(iSourceXml); iAttributes = new PropertyString("Attributes", AttributesPropertyChanged); AddProperty(iAttributes); 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 CpProxyOpenhomeOrgTestLights1(CpDevice aDevice) : base("openhome-org", "TestLights", 1, aDevice) { OpenHome.Net.Core.Parameter param; List<String> allowedValues = new List<String>(); iActionGetCount = new OpenHome.Net.Core.Action("GetCount"); param = new ParameterUint("Count"); iActionGetCount.AddOutputParameter(param); iActionGetRoom = new OpenHome.Net.Core.Action("GetRoom"); param = new ParameterUint("Index"); iActionGetRoom.AddInputParameter(param); param = new ParameterString("RoomName", allowedValues); iActionGetRoom.AddOutputParameter(param); iActionGetName = new OpenHome.Net.Core.Action("GetName"); param = new ParameterUint("Index"); iActionGetName.AddInputParameter(param); param = new ParameterString("FriendlyName", allowedValues); iActionGetName.AddOutputParameter(param); iActionGetPosition = new OpenHome.Net.Core.Action("GetPosition"); param = new ParameterUint("Index"); iActionGetPosition.AddInputParameter(param); param = new ParameterUint("X"); iActionGetPosition.AddOutputParameter(param); param = new ParameterUint("Y"); iActionGetPosition.AddOutputParameter(param); param = new ParameterUint("Z"); iActionGetPosition.AddOutputParameter(param); iActionSetColor = new OpenHome.Net.Core.Action("SetColor"); param = new ParameterUint("Index"); iActionSetColor.AddInputParameter(param); param = new ParameterUint("Color"); iActionSetColor.AddInputParameter(param); iActionGetColor = new OpenHome.Net.Core.Action("GetColor"); param = new ParameterUint("Index"); iActionGetColor.AddInputParameter(param); param = new ParameterUint("Color"); iActionGetColor.AddOutputParameter(param); iActionGetColorComponents = new OpenHome.Net.Core.Action("GetColorComponents"); param = new ParameterUint("Color"); iActionGetColorComponents.AddInputParameter(param); param = new ParameterUint("Brightness"); iActionGetColorComponents.AddOutputParameter(param); param = new ParameterUint("Red"); iActionGetColorComponents.AddOutputParameter(param); param = new ParameterUint("Green"); iActionGetColorComponents.AddOutputParameter(param); param = new ParameterUint("Blue"); iActionGetColorComponents.AddOutputParameter(param); }
/// <summary> /// Signal that the action GetMediaInfo is supported. /// </summary> /// <remarks>The action's availability will be published in the device's service.xml. /// GetMediaInfo must be overridden if this is called.</remarks> protected void EnableActionGetMediaInfo() { OpenHome.Net.Core.Action action = new OpenHome.Net.Core.Action("GetMediaInfo"); List<String> allowedValues = new List<String>(); action.AddInputParameter(new ParameterUint("InstanceID")); action.AddOutputParameter(new ParameterUint("NrTracks", 0)); action.AddOutputParameter(new ParameterString("MediaDuration", allowedValues)); action.AddOutputParameter(new ParameterString("CurrentURI", allowedValues)); action.AddOutputParameter(new ParameterString("CurrentURIMetaData", allowedValues)); action.AddOutputParameter(new ParameterString("NextURI", allowedValues)); action.AddOutputParameter(new ParameterString("NextURIMetaData", allowedValues)); action.AddOutputParameter(new ParameterString("PlayMedium", allowedValues)); action.AddOutputParameter(new ParameterString("RecordMedium", allowedValues)); allowedValues.Add("WRITABLE"); allowedValues.Add("PROTECTED"); allowedValues.Add("NOT_WRITABLE"); allowedValues.Add("UNKNOWN"); allowedValues.Add("NOT_IMPLEMENTED"); action.AddOutputParameter(new ParameterString("WriteStatus", allowedValues)); allowedValues.Clear(); iDelegateGetMediaInfo = new ActionDelegate(DoGetMediaInfo); EnableAction(action, iDelegateGetMediaInfo, GCHandle.ToIntPtr(iGch)); }
/// <summary> /// Signal that the action GetPositionInfo is supported. /// </summary> /// <remarks>The action's availability will be published in the device's service.xml. /// GetPositionInfo must be overridden if this is called.</remarks> protected void EnableActionGetPositionInfo() { OpenHome.Net.Core.Action action = new OpenHome.Net.Core.Action("GetPositionInfo"); List<String> allowedValues = new List<String>(); action.AddInputParameter(new ParameterUint("InstanceID")); action.AddOutputParameter(new ParameterUint("Track", 0, 2147483647, 1)); action.AddOutputParameter(new ParameterString("TrackDuration", allowedValues)); action.AddOutputParameter(new ParameterString("TrackMetaData", allowedValues)); action.AddOutputParameter(new ParameterString("TrackURI", allowedValues)); action.AddOutputParameter(new ParameterString("RelTime", allowedValues)); action.AddOutputParameter(new ParameterString("AbsTime", allowedValues)); action.AddOutputParameter(new ParameterInt("RelCount")); action.AddOutputParameter(new ParameterInt("AbsCount")); iDelegateGetPositionInfo = new ActionDelegate(DoGetPositionInfo); EnableAction(action, iDelegateGetPositionInfo, 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> /// 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 CpProxyUpnpOrgRenderingControl1(CpDevice aDevice) : base("schemas-upnp-org", "RenderingControl", 1, aDevice) { OpenHome.Net.Core.Parameter param; List<String> allowedValues = new List<String>(); iActionListPresets = new OpenHome.Net.Core.Action("ListPresets"); param = new ParameterUint("InstanceID"); iActionListPresets.AddInputParameter(param); param = new ParameterString("CurrentPresetNameList", allowedValues); iActionListPresets.AddOutputParameter(param); iActionSelectPreset = new OpenHome.Net.Core.Action("SelectPreset"); param = new ParameterUint("InstanceID"); iActionSelectPreset.AddInputParameter(param); param = new ParameterString("PresetName", allowedValues); iActionSelectPreset.AddInputParameter(param); iActionGetBrightness = new OpenHome.Net.Core.Action("GetBrightness"); param = new ParameterUint("InstanceID"); iActionGetBrightness.AddInputParameter(param); param = new ParameterUint("CurrentBrightness", 0, 2147483647, 1); iActionGetBrightness.AddOutputParameter(param); iActionSetBrightness = new OpenHome.Net.Core.Action("SetBrightness"); param = new ParameterUint("InstanceID"); iActionSetBrightness.AddInputParameter(param); param = new ParameterUint("DesiredBrightness", 0, 2147483647, 1); iActionSetBrightness.AddInputParameter(param); iActionGetContrast = new OpenHome.Net.Core.Action("GetContrast"); param = new ParameterUint("InstanceID"); iActionGetContrast.AddInputParameter(param); param = new ParameterUint("CurrentContrast", 0, 2147483647, 1); iActionGetContrast.AddOutputParameter(param); iActionSetContrast = new OpenHome.Net.Core.Action("SetContrast"); param = new ParameterUint("InstanceID"); iActionSetContrast.AddInputParameter(param); param = new ParameterUint("DesiredContrast", 0, 2147483647, 1); iActionSetContrast.AddInputParameter(param); iActionGetSharpness = new OpenHome.Net.Core.Action("GetSharpness"); param = new ParameterUint("InstanceID"); iActionGetSharpness.AddInputParameter(param); param = new ParameterUint("CurrentSharpness", 0, 2147483647, 1); iActionGetSharpness.AddOutputParameter(param); iActionSetSharpness = new OpenHome.Net.Core.Action("SetSharpness"); param = new ParameterUint("InstanceID"); iActionSetSharpness.AddInputParameter(param); param = new ParameterUint("DesiredSharpness", 0, 2147483647, 1); iActionSetSharpness.AddInputParameter(param); iActionGetRedVideoGain = new OpenHome.Net.Core.Action("GetRedVideoGain"); param = new ParameterUint("InstanceID"); iActionGetRedVideoGain.AddInputParameter(param); param = new ParameterUint("CurrentRedVideoGain", 0, 2147483647, 1); iActionGetRedVideoGain.AddOutputParameter(param); iActionSetRedVideoGain = new OpenHome.Net.Core.Action("SetRedVideoGain"); param = new ParameterUint("InstanceID"); iActionSetRedVideoGain.AddInputParameter(param); param = new ParameterUint("DesiredRedVideoGain", 0, 2147483647, 1); iActionSetRedVideoGain.AddInputParameter(param); iActionGetGreenVideoGain = new OpenHome.Net.Core.Action("GetGreenVideoGain"); param = new ParameterUint("InstanceID"); iActionGetGreenVideoGain.AddInputParameter(param); param = new ParameterUint("CurrentGreenVideoGain", 0, 2147483647, 1); iActionGetGreenVideoGain.AddOutputParameter(param); iActionSetGreenVideoGain = new OpenHome.Net.Core.Action("SetGreenVideoGain"); param = new ParameterUint("InstanceID"); iActionSetGreenVideoGain.AddInputParameter(param); param = new ParameterUint("DesiredGreenVideoGain", 0, 2147483647, 1); iActionSetGreenVideoGain.AddInputParameter(param); iActionGetBlueVideoGain = new OpenHome.Net.Core.Action("GetBlueVideoGain"); param = new ParameterUint("InstanceID"); iActionGetBlueVideoGain.AddInputParameter(param); param = new ParameterUint("CurrentBlueVideoGain", 0, 2147483647, 1); iActionGetBlueVideoGain.AddOutputParameter(param); iActionSetBlueVideoGain = new OpenHome.Net.Core.Action("SetBlueVideoGain"); param = new ParameterUint("InstanceID"); iActionSetBlueVideoGain.AddInputParameter(param); param = new ParameterUint("DesiredBlueVideoGain", 0, 2147483647, 1); iActionSetBlueVideoGain.AddInputParameter(param); iActionGetRedVideoBlackLevel = new OpenHome.Net.Core.Action("GetRedVideoBlackLevel"); param = new ParameterUint("InstanceID"); iActionGetRedVideoBlackLevel.AddInputParameter(param); param = new ParameterUint("CurrentRedVideoBlackLevel", 0, 2147483647, 1); iActionGetRedVideoBlackLevel.AddOutputParameter(param); iActionSetRedVideoBlackLevel = new OpenHome.Net.Core.Action("SetRedVideoBlackLevel"); param = new ParameterUint("InstanceID"); iActionSetRedVideoBlackLevel.AddInputParameter(param); param = new ParameterUint("DesiredRedVideoBlackLevel", 0, 2147483647, 1); iActionSetRedVideoBlackLevel.AddInputParameter(param); iActionGetGreenVideoBlackLevel = new OpenHome.Net.Core.Action("GetGreenVideoBlackLevel"); param = new ParameterUint("InstanceID"); iActionGetGreenVideoBlackLevel.AddInputParameter(param); param = new ParameterUint("CurrentGreenVideoBlackLevel", 0, 2147483647, 1); iActionGetGreenVideoBlackLevel.AddOutputParameter(param); iActionSetGreenVideoBlackLevel = new OpenHome.Net.Core.Action("SetGreenVideoBlackLevel"); param = new ParameterUint("InstanceID"); iActionSetGreenVideoBlackLevel.AddInputParameter(param); param = new ParameterUint("DesiredGreenVideoBlackLevel", 0, 2147483647, 1); iActionSetGreenVideoBlackLevel.AddInputParameter(param); iActionGetBlueVideoBlackLevel = new OpenHome.Net.Core.Action("GetBlueVideoBlackLevel"); param = new ParameterUint("InstanceID"); iActionGetBlueVideoBlackLevel.AddInputParameter(param); param = new ParameterUint("CurrentBlueVideoBlackLevel", 0, 2147483647, 1); iActionGetBlueVideoBlackLevel.AddOutputParameter(param); iActionSetBlueVideoBlackLevel = new OpenHome.Net.Core.Action("SetBlueVideoBlackLevel"); param = new ParameterUint("InstanceID"); iActionSetBlueVideoBlackLevel.AddInputParameter(param); param = new ParameterUint("DesiredBlueVideoBlackLevel", 0, 2147483647, 1); iActionSetBlueVideoBlackLevel.AddInputParameter(param); iActionGetColorTemperature = new OpenHome.Net.Core.Action("GetColorTemperature"); param = new ParameterUint("InstanceID"); iActionGetColorTemperature.AddInputParameter(param); param = new ParameterUint("CurrentColorTemperature", 0, 2147483647, 1); iActionGetColorTemperature.AddOutputParameter(param); iActionSetColorTemperature = new OpenHome.Net.Core.Action("SetColorTemperature"); param = new ParameterUint("InstanceID"); iActionSetColorTemperature.AddInputParameter(param); param = new ParameterUint("DesiredColorTemperature", 0, 2147483647, 1); iActionSetColorTemperature.AddInputParameter(param); iActionGetHorizontalKeystone = new OpenHome.Net.Core.Action("GetHorizontalKeystone"); param = new ParameterUint("InstanceID"); iActionGetHorizontalKeystone.AddInputParameter(param); param = new ParameterInt("CurrentHorizontalKeystone"); iActionGetHorizontalKeystone.AddOutputParameter(param); iActionSetHorizontalKeystone = new OpenHome.Net.Core.Action("SetHorizontalKeystone"); param = new ParameterUint("InstanceID"); iActionSetHorizontalKeystone.AddInputParameter(param); param = new ParameterInt("DesiredHorizontalKeystone"); iActionSetHorizontalKeystone.AddInputParameter(param); iActionGetVerticalKeystone = new OpenHome.Net.Core.Action("GetVerticalKeystone"); param = new ParameterUint("InstanceID"); iActionGetVerticalKeystone.AddInputParameter(param); param = new ParameterInt("CurrentVerticalKeystone"); iActionGetVerticalKeystone.AddOutputParameter(param); iActionSetVerticalKeystone = new OpenHome.Net.Core.Action("SetVerticalKeystone"); param = new ParameterUint("InstanceID"); iActionSetVerticalKeystone.AddInputParameter(param); param = new ParameterInt("DesiredVerticalKeystone"); iActionSetVerticalKeystone.AddInputParameter(param); iActionGetMute = new OpenHome.Net.Core.Action("GetMute"); param = new ParameterUint("InstanceID"); iActionGetMute.AddInputParameter(param); param = new ParameterString("Channel", allowedValues); iActionGetMute.AddInputParameter(param); param = new ParameterBool("CurrentMute"); iActionGetMute.AddOutputParameter(param); iActionSetMute = new OpenHome.Net.Core.Action("SetMute"); param = new ParameterUint("InstanceID"); iActionSetMute.AddInputParameter(param); param = new ParameterString("Channel", allowedValues); iActionSetMute.AddInputParameter(param); param = new ParameterBool("DesiredMute"); iActionSetMute.AddInputParameter(param); iActionGetVolume = new OpenHome.Net.Core.Action("GetVolume"); param = new ParameterUint("InstanceID"); iActionGetVolume.AddInputParameter(param); param = new ParameterString("Channel", allowedValues); iActionGetVolume.AddInputParameter(param); param = new ParameterUint("CurrentVolume", 0, 2147483647, 1); iActionGetVolume.AddOutputParameter(param); iActionSetVolume = new OpenHome.Net.Core.Action("SetVolume"); param = new ParameterUint("InstanceID"); iActionSetVolume.AddInputParameter(param); param = new ParameterString("Channel", allowedValues); iActionSetVolume.AddInputParameter(param); param = new ParameterUint("DesiredVolume", 0, 2147483647, 1); iActionSetVolume.AddInputParameter(param); iActionGetVolumeDB = new OpenHome.Net.Core.Action("GetVolumeDB"); param = new ParameterUint("InstanceID"); iActionGetVolumeDB.AddInputParameter(param); param = new ParameterString("Channel", allowedValues); iActionGetVolumeDB.AddInputParameter(param); param = new ParameterInt("CurrentVolume"); iActionGetVolumeDB.AddOutputParameter(param); iActionSetVolumeDB = new OpenHome.Net.Core.Action("SetVolumeDB"); param = new ParameterUint("InstanceID"); iActionSetVolumeDB.AddInputParameter(param); param = new ParameterString("Channel", allowedValues); iActionSetVolumeDB.AddInputParameter(param); param = new ParameterInt("DesiredVolume"); iActionSetVolumeDB.AddInputParameter(param); iActionGetVolumeDBRange = new OpenHome.Net.Core.Action("GetVolumeDBRange"); param = new ParameterUint("InstanceID"); iActionGetVolumeDBRange.AddInputParameter(param); param = new ParameterString("Channel", allowedValues); iActionGetVolumeDBRange.AddInputParameter(param); param = new ParameterInt("MinValue"); iActionGetVolumeDBRange.AddOutputParameter(param); param = new ParameterInt("MaxValue"); iActionGetVolumeDBRange.AddOutputParameter(param); iActionGetLoudness = new OpenHome.Net.Core.Action("GetLoudness"); param = new ParameterUint("InstanceID"); iActionGetLoudness.AddInputParameter(param); param = new ParameterString("Channel", allowedValues); iActionGetLoudness.AddInputParameter(param); param = new ParameterBool("CurrentLoudness"); iActionGetLoudness.AddOutputParameter(param); iActionSetLoudness = new OpenHome.Net.Core.Action("SetLoudness"); param = new ParameterUint("InstanceID"); iActionSetLoudness.AddInputParameter(param); param = new ParameterString("Channel", allowedValues); iActionSetLoudness.AddInputParameter(param); param = new ParameterBool("DesiredLoudness"); iActionSetLoudness.AddInputParameter(param); iLastChange = new PropertyString("LastChange", LastChangePropertyChanged); AddProperty(iLastChange); iPropertyLock = new Mutex(); }
/// <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 GetColorTemperature is supported. /// </summary> /// <remarks>The action's availability will be published in the device's service.xml. /// GetColorTemperature must be overridden if this is called.</remarks> protected void EnableActionGetColorTemperature() { OpenHome.Net.Core.Action action = new OpenHome.Net.Core.Action("GetColorTemperature"); action.AddInputParameter(new ParameterUint("InstanceID")); action.AddOutputParameter(new ParameterUint("CurrentColorTemperature", 0, 2147483647, 1)); iDelegateGetColorTemperature = new ActionDelegate(DoGetColorTemperature); EnableAction(action, iDelegateGetColorTemperature, 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 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 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 GetTransportSettings is supported. /// </summary> /// <remarks>The action's availability will be published in the device's service.xml. /// GetTransportSettings must be overridden if this is called.</remarks> protected void EnableActionGetTransportSettings() { OpenHome.Net.Core.Action action = new OpenHome.Net.Core.Action("GetTransportSettings"); List<String> allowedValues = new List<String>(); action.AddInputParameter(new ParameterUint("InstanceID")); allowedValues.Add("NORMAL"); action.AddOutputParameter(new ParameterString("PlayMode", allowedValues)); allowedValues.Clear(); action.AddOutputParameter(new ParameterString("RecQualityMode", allowedValues)); iDelegateGetTransportSettings = new ActionDelegate(DoGetTransportSettings); EnableAction(action, iDelegateGetTransportSettings, GCHandle.ToIntPtr(iGch)); }