/// <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 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> /// 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 CpProxyAvOpenhomeOrgPlaylist1(CpDevice aDevice) : base("av-openhome-org", "Playlist", 1, aDevice) { OpenHome.Net.Core.Parameter param; List<String> allowedValues = new List<String>(); iActionPlay = new OpenHome.Net.Core.Action("Play"); iActionPause = new OpenHome.Net.Core.Action("Pause"); iActionStop = new OpenHome.Net.Core.Action("Stop"); iActionNext = new OpenHome.Net.Core.Action("Next"); iActionPrevious = new OpenHome.Net.Core.Action("Previous"); iActionSetRepeat = new OpenHome.Net.Core.Action("SetRepeat"); param = new ParameterBool("Value"); iActionSetRepeat.AddInputParameter(param); iActionRepeat = new OpenHome.Net.Core.Action("Repeat"); param = new ParameterBool("Value"); iActionRepeat.AddOutputParameter(param); iActionSetShuffle = new OpenHome.Net.Core.Action("SetShuffle"); param = new ParameterBool("Value"); iActionSetShuffle.AddInputParameter(param); iActionShuffle = new OpenHome.Net.Core.Action("Shuffle"); param = new ParameterBool("Value"); iActionShuffle.AddOutputParameter(param); iActionSeekSecondAbsolute = new OpenHome.Net.Core.Action("SeekSecondAbsolute"); param = new ParameterUint("Value"); iActionSeekSecondAbsolute.AddInputParameter(param); iActionSeekSecondRelative = new OpenHome.Net.Core.Action("SeekSecondRelative"); param = new ParameterInt("Value"); iActionSeekSecondRelative.AddInputParameter(param); iActionSeekId = new OpenHome.Net.Core.Action("SeekId"); param = new ParameterUint("Value"); iActionSeekId.AddInputParameter(param); iActionSeekIndex = new OpenHome.Net.Core.Action("SeekIndex"); param = new ParameterUint("Value"); iActionSeekIndex.AddInputParameter(param); iActionTransportState = new OpenHome.Net.Core.Action("TransportState"); allowedValues.Add("Playing"); allowedValues.Add("Paused"); allowedValues.Add("Stopped"); allowedValues.Add("Buffering"); param = new ParameterString("Value", allowedValues); iActionTransportState.AddOutputParameter(param); allowedValues.Clear(); iActionId = new OpenHome.Net.Core.Action("Id"); param = new ParameterUint("Value"); iActionId.AddOutputParameter(param); iActionRead = new OpenHome.Net.Core.Action("Read"); param = new ParameterUint("Id"); iActionRead.AddInputParameter(param); param = new ParameterString("Uri", allowedValues); iActionRead.AddOutputParameter(param); param = new ParameterString("Metadata", allowedValues); iActionRead.AddOutputParameter(param); iActionReadList = new OpenHome.Net.Core.Action("ReadList"); param = new ParameterString("IdList", allowedValues); iActionReadList.AddInputParameter(param); param = new ParameterString("TrackList", allowedValues); iActionReadList.AddOutputParameter(param); iActionInsert = new OpenHome.Net.Core.Action("Insert"); param = new ParameterUint("AfterId"); iActionInsert.AddInputParameter(param); param = new ParameterString("Uri", allowedValues); iActionInsert.AddInputParameter(param); param = new ParameterString("Metadata", allowedValues); iActionInsert.AddInputParameter(param); param = new ParameterUint("NewId"); iActionInsert.AddOutputParameter(param); iActionDeleteId = new OpenHome.Net.Core.Action("DeleteId"); param = new ParameterUint("Value"); iActionDeleteId.AddInputParameter(param); iActionDeleteAll = new OpenHome.Net.Core.Action("DeleteAll"); iActionTracksMax = new OpenHome.Net.Core.Action("TracksMax"); param = new ParameterUint("Value"); iActionTracksMax.AddOutputParameter(param); iActionIdArray = new OpenHome.Net.Core.Action("IdArray"); param = new ParameterUint("Token"); iActionIdArray.AddOutputParameter(param); param = new ParameterBinary("Array"); iActionIdArray.AddOutputParameter(param); iActionIdArrayChanged = new OpenHome.Net.Core.Action("IdArrayChanged"); param = new ParameterUint("Token"); iActionIdArrayChanged.AddInputParameter(param); param = new ParameterBool("Value"); iActionIdArrayChanged.AddOutputParameter(param); iActionProtocolInfo = new OpenHome.Net.Core.Action("ProtocolInfo"); param = new ParameterString("Value", allowedValues); iActionProtocolInfo.AddOutputParameter(param); iTransportState = new PropertyString("TransportState", TransportStatePropertyChanged); AddProperty(iTransportState); iRepeat = new PropertyBool("Repeat", RepeatPropertyChanged); AddProperty(iRepeat); iShuffle = new PropertyBool("Shuffle", ShufflePropertyChanged); AddProperty(iShuffle); iId = new PropertyUint("Id", IdPropertyChanged); AddProperty(iId); iIdArray = new PropertyBinary("IdArray", IdArrayPropertyChanged); AddProperty(iIdArray); iTracksMax = new PropertyUint("TracksMax", TracksMaxPropertyChanged); AddProperty(iTracksMax); iProtocolInfo = new PropertyString("ProtocolInfo", ProtocolInfoPropertyChanged); AddProperty(iProtocolInfo); iPropertyLock = new Mutex(); }
/// <summary> /// Constructor for boolean output argument for an action /// </summary> /// <remarks>Intended to be created without any value. The value is later set after /// CpService.InvokeAction is called but before the invocation's callback is run)</remarks> /// <param name="aParameter">Defines the name for the argument. /// Must have been previously added to the action using Action.AddOutputParameter</param> public ArgumentBool(ParameterBool aParameter) { iHandle = ActionArgumentCreateBoolOutput(aParameter.Handle()); }
/// <summary> /// Constructor for boolean input argument for an action /// </summary> /// <remarks>Intended to be write only (its value is written on construction and not be later read)</remarks> /// <param name="aParameter">Defines the name for the argument. /// Must have been previously added to the action using Action.AddInputParameter</param> /// <param name="aValue">Value for the argument</param> public ArgumentBool(ParameterBool aParameter, bool aValue) { iHandle = ActionArgumentCreateBoolInput(aParameter.Handle(), (aValue? 1u : 0u)); }
/// <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 CpProxyAvOpenhomeOrgRadio1(CpDevice aDevice) : base("av-openhome-org", "Radio", 1, aDevice) { OpenHome.Net.Core.Parameter param; List<String> allowedValues = new List<String>(); iActionPlay = new OpenHome.Net.Core.Action("Play"); iActionPause = new OpenHome.Net.Core.Action("Pause"); iActionStop = new OpenHome.Net.Core.Action("Stop"); iActionSeekSecondAbsolute = new OpenHome.Net.Core.Action("SeekSecondAbsolute"); param = new ParameterUint("Value"); iActionSeekSecondAbsolute.AddInputParameter(param); iActionSeekSecondRelative = new OpenHome.Net.Core.Action("SeekSecondRelative"); param = new ParameterInt("Value"); iActionSeekSecondRelative.AddInputParameter(param); iActionChannel = new OpenHome.Net.Core.Action("Channel"); param = new ParameterString("Uri", allowedValues); iActionChannel.AddOutputParameter(param); param = new ParameterString("Metadata", allowedValues); iActionChannel.AddOutputParameter(param); iActionSetChannel = new OpenHome.Net.Core.Action("SetChannel"); param = new ParameterString("Uri", allowedValues); iActionSetChannel.AddInputParameter(param); param = new ParameterString("Metadata", allowedValues); iActionSetChannel.AddInputParameter(param); iActionTransportState = new OpenHome.Net.Core.Action("TransportState"); allowedValues.Add("Stopped"); allowedValues.Add("Playing"); allowedValues.Add("Paused"); allowedValues.Add("Buffering"); param = new ParameterString("Value", allowedValues); iActionTransportState.AddOutputParameter(param); allowedValues.Clear(); iActionId = new OpenHome.Net.Core.Action("Id"); param = new ParameterUint("Value"); iActionId.AddOutputParameter(param); iActionSetId = new OpenHome.Net.Core.Action("SetId"); param = new ParameterUint("Value"); iActionSetId.AddInputParameter(param); param = new ParameterString("Uri", allowedValues); iActionSetId.AddInputParameter(param); iActionRead = new OpenHome.Net.Core.Action("Read"); param = new ParameterUint("Id"); iActionRead.AddInputParameter(param); param = new ParameterString("Metadata", allowedValues); iActionRead.AddOutputParameter(param); iActionReadList = new OpenHome.Net.Core.Action("ReadList"); param = new ParameterString("IdList", allowedValues); iActionReadList.AddInputParameter(param); param = new ParameterString("ChannelList", allowedValues); iActionReadList.AddOutputParameter(param); iActionIdArray = new OpenHome.Net.Core.Action("IdArray"); param = new ParameterUint("Token"); iActionIdArray.AddOutputParameter(param); param = new ParameterBinary("Array"); iActionIdArray.AddOutputParameter(param); iActionIdArrayChanged = new OpenHome.Net.Core.Action("IdArrayChanged"); param = new ParameterUint("Token"); iActionIdArrayChanged.AddInputParameter(param); param = new ParameterBool("Value"); iActionIdArrayChanged.AddOutputParameter(param); iActionChannelsMax = new OpenHome.Net.Core.Action("ChannelsMax"); param = new ParameterUint("Value"); iActionChannelsMax.AddOutputParameter(param); iActionProtocolInfo = new OpenHome.Net.Core.Action("ProtocolInfo"); param = new ParameterString("Value", allowedValues); iActionProtocolInfo.AddOutputParameter(param); iUri = new PropertyString("Uri", UriPropertyChanged); AddProperty(iUri); iMetadata = new PropertyString("Metadata", MetadataPropertyChanged); AddProperty(iMetadata); iTransportState = new PropertyString("TransportState", TransportStatePropertyChanged); AddProperty(iTransportState); iId = new PropertyUint("Id", IdPropertyChanged); AddProperty(iId); iIdArray = new PropertyBinary("IdArray", IdArrayPropertyChanged); AddProperty(iIdArray); iChannelsMax = new PropertyUint("ChannelsMax", ChannelsMaxPropertyChanged); AddProperty(iChannelsMax); iProtocolInfo = new PropertyString("ProtocolInfo", ProtocolInfoPropertyChanged); AddProperty(iProtocolInfo); iPropertyLock = new Mutex(); }
/// <summary> /// Constructor suitable for use by clients of the device stack /// </summary> /// <param name="aParameter">Parameter defining the name for the property.</param> /// <param name="aOwnsNativeProperty">Whether the managed property owns the underlying native property.</param> public PropertyBool(ParameterBool aParameter, bool aOwnsNativeProperty = false) : base(aOwnsNativeProperty) { iHandle = ServicePropertyCreateBoolDv(aParameter.Handle()); }
/// <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 CpProxyOpenhomeOrgTestBasic1(CpDevice aDevice) : base("openhome-org", "TestBasic", 1, aDevice) { OpenHome.Net.Core.Parameter param; List<String> allowedValues = new List<String>(); iActionIncrement = new OpenHome.Net.Core.Action("Increment"); param = new ParameterUint("Value"); iActionIncrement.AddInputParameter(param); param = new ParameterUint("Result"); iActionIncrement.AddOutputParameter(param); iActionEchoAllowedRangeUint = new OpenHome.Net.Core.Action("EchoAllowedRangeUint"); param = new ParameterUint("Value", 10, 20); iActionEchoAllowedRangeUint.AddInputParameter(param); param = new ParameterUint("Result"); iActionEchoAllowedRangeUint.AddOutputParameter(param); iActionDecrement = new OpenHome.Net.Core.Action("Decrement"); param = new ParameterInt("Value"); iActionDecrement.AddInputParameter(param); param = new ParameterInt("Result"); iActionDecrement.AddOutputParameter(param); iActionToggle = new OpenHome.Net.Core.Action("Toggle"); param = new ParameterBool("Value"); iActionToggle.AddInputParameter(param); param = new ParameterBool("Result"); iActionToggle.AddOutputParameter(param); iActionEchoString = new OpenHome.Net.Core.Action("EchoString"); param = new ParameterString("Value", allowedValues); iActionEchoString.AddInputParameter(param); param = new ParameterString("Result", allowedValues); iActionEchoString.AddOutputParameter(param); iActionEchoAllowedValueString = new OpenHome.Net.Core.Action("EchoAllowedValueString"); allowedValues.Add("One"); allowedValues.Add("Two"); allowedValues.Add("Three"); allowedValues.Add("Four"); param = new ParameterString("Value", allowedValues); iActionEchoAllowedValueString.AddInputParameter(param); allowedValues.Clear(); param = new ParameterString("Result", allowedValues); iActionEchoAllowedValueString.AddOutputParameter(param); iActionEchoBinary = new OpenHome.Net.Core.Action("EchoBinary"); param = new ParameterBinary("Value"); iActionEchoBinary.AddInputParameter(param); param = new ParameterBinary("Result"); iActionEchoBinary.AddOutputParameter(param); iActionSetUint = new OpenHome.Net.Core.Action("SetUint"); param = new ParameterUint("ValueUint"); iActionSetUint.AddInputParameter(param); iActionGetUint = new OpenHome.Net.Core.Action("GetUint"); param = new ParameterUint("ValueUint"); iActionGetUint.AddOutputParameter(param); iActionSetInt = new OpenHome.Net.Core.Action("SetInt"); param = new ParameterInt("ValueInt"); iActionSetInt.AddInputParameter(param); iActionGetInt = new OpenHome.Net.Core.Action("GetInt"); param = new ParameterInt("ValueInt"); iActionGetInt.AddOutputParameter(param); iActionSetBool = new OpenHome.Net.Core.Action("SetBool"); param = new ParameterBool("ValueBool"); iActionSetBool.AddInputParameter(param); iActionGetBool = new OpenHome.Net.Core.Action("GetBool"); param = new ParameterBool("ValueBool"); iActionGetBool.AddOutputParameter(param); iActionSetMultiple = new OpenHome.Net.Core.Action("SetMultiple"); param = new ParameterUint("ValueUint"); iActionSetMultiple.AddInputParameter(param); param = new ParameterInt("ValueInt"); iActionSetMultiple.AddInputParameter(param); param = new ParameterBool("ValueBool"); iActionSetMultiple.AddInputParameter(param); iActionGetMultiple = new OpenHome.Net.Core.Action("GetMultiple"); param = new ParameterUint("ValueUint"); iActionGetMultiple.AddOutputParameter(param); param = new ParameterInt("ValueInt"); iActionGetMultiple.AddOutputParameter(param); param = new ParameterBool("ValueBool"); iActionGetMultiple.AddOutputParameter(param); iActionSetString = new OpenHome.Net.Core.Action("SetString"); param = new ParameterString("ValueStr", allowedValues); iActionSetString.AddInputParameter(param); iActionGetString = new OpenHome.Net.Core.Action("GetString"); param = new ParameterString("ValueStr", allowedValues); iActionGetString.AddOutputParameter(param); iActionSetBinary = new OpenHome.Net.Core.Action("SetBinary"); param = new ParameterBinary("ValueBin"); iActionSetBinary.AddInputParameter(param); iActionGetBinary = new OpenHome.Net.Core.Action("GetBinary"); param = new ParameterBinary("ValueBin"); iActionGetBinary.AddOutputParameter(param); iActionToggleBool = new OpenHome.Net.Core.Action("ToggleBool"); iActionWriteFile = new OpenHome.Net.Core.Action("WriteFile"); param = new ParameterString("Data", allowedValues); iActionWriteFile.AddInputParameter(param); param = new ParameterString("FileFullName", allowedValues); iActionWriteFile.AddInputParameter(param); iActionShutdown = new OpenHome.Net.Core.Action("Shutdown"); iVarUint = new PropertyUint("VarUint", VarUintPropertyChanged); AddProperty(iVarUint); iVarInt = new PropertyInt("VarInt", VarIntPropertyChanged); AddProperty(iVarInt); iVarBool = new PropertyBool("VarBool", VarBoolPropertyChanged); AddProperty(iVarBool); iVarStr = new PropertyString("VarStr", VarStrPropertyChanged); AddProperty(iVarStr); iVarBin = new PropertyBinary("VarBin", VarBinPropertyChanged); AddProperty(iVarBin); 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 CpProxyAvOpenhomeOrgExakt1(CpDevice aDevice) : base("av-openhome-org", "Exakt", 1, aDevice) { OpenHome.Net.Core.Parameter param; List<String> allowedValues = new List<String>(); iActionDeviceList = new OpenHome.Net.Core.Action("DeviceList"); param = new ParameterString("List", allowedValues); iActionDeviceList.AddOutputParameter(param); iActionDeviceSettings = new OpenHome.Net.Core.Action("DeviceSettings"); param = new ParameterString("DeviceId", allowedValues); iActionDeviceSettings.AddInputParameter(param); param = new ParameterString("Settings", allowedValues); iActionDeviceSettings.AddOutputParameter(param); iActionConnectionStatus = new OpenHome.Net.Core.Action("ConnectionStatus"); param = new ParameterString("ConnectionStatus", allowedValues); iActionConnectionStatus.AddOutputParameter(param); iActionSet = new OpenHome.Net.Core.Action("Set"); param = new ParameterString("DeviceId", allowedValues); iActionSet.AddInputParameter(param); param = new ParameterUint("BankId"); iActionSet.AddInputParameter(param); param = new ParameterString("FileUri", allowedValues); iActionSet.AddInputParameter(param); param = new ParameterBool("Mute"); iActionSet.AddInputParameter(param); param = new ParameterBool("Persist"); iActionSet.AddInputParameter(param); iActionReprogram = new OpenHome.Net.Core.Action("Reprogram"); param = new ParameterString("DeviceId", allowedValues); iActionReprogram.AddInputParameter(param); param = new ParameterString("FileUri", allowedValues); iActionReprogram.AddInputParameter(param); iActionReprogramFallback = new OpenHome.Net.Core.Action("ReprogramFallback"); param = new ParameterString("DeviceId", allowedValues); iActionReprogramFallback.AddInputParameter(param); param = new ParameterString("FileUri", allowedValues); iActionReprogramFallback.AddInputParameter(param); iDeviceList = new PropertyString("DeviceList", DeviceListPropertyChanged); AddProperty(iDeviceList); iConnectionStatus = new PropertyString("ConnectionStatus", ConnectionStatusPropertyChanged); AddProperty(iConnectionStatus); 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 CpProxyUpnpOrgDimming1(CpDevice aDevice) : base("schemas-upnp-org", "Dimming", 1, aDevice) { OpenHome.Net.Core.Parameter param; List<String> allowedValues = new List<String>(); iActionSetLoadLevelTarget = new OpenHome.Net.Core.Action("SetLoadLevelTarget"); param = new ParameterUint("newLoadlevelTarget", 0, 100); iActionSetLoadLevelTarget.AddInputParameter(param); iActionGetLoadLevelTarget = new OpenHome.Net.Core.Action("GetLoadLevelTarget"); param = new ParameterUint("GetLoadlevelTarget", 0, 100); iActionGetLoadLevelTarget.AddOutputParameter(param); iActionGetLoadLevelStatus = new OpenHome.Net.Core.Action("GetLoadLevelStatus"); param = new ParameterUint("retLoadlevelStatus", 0, 100); iActionGetLoadLevelStatus.AddOutputParameter(param); iActionSetOnEffectLevel = new OpenHome.Net.Core.Action("SetOnEffectLevel"); param = new ParameterUint("newOnEffectLevel", 0, 100); iActionSetOnEffectLevel.AddInputParameter(param); iActionSetOnEffect = new OpenHome.Net.Core.Action("SetOnEffect"); allowedValues.Add("OnEffectLevel"); allowedValues.Add("LastSetting"); allowedValues.Add("Default"); param = new ParameterString("newOnEffect", allowedValues); iActionSetOnEffect.AddInputParameter(param); allowedValues.Clear(); iActionGetOnEffectParameters = new OpenHome.Net.Core.Action("GetOnEffectParameters"); allowedValues.Add("OnEffectLevel"); allowedValues.Add("LastSetting"); allowedValues.Add("Default"); param = new ParameterString("retOnEffect", allowedValues); iActionGetOnEffectParameters.AddOutputParameter(param); allowedValues.Clear(); param = new ParameterUint("retOnEffectLevel", 0, 100); iActionGetOnEffectParameters.AddOutputParameter(param); iActionStepUp = new OpenHome.Net.Core.Action("StepUp"); iActionStepDown = new OpenHome.Net.Core.Action("StepDown"); iActionStartRampUp = new OpenHome.Net.Core.Action("StartRampUp"); iActionStartRampDown = new OpenHome.Net.Core.Action("StartRampDown"); iActionStopRamp = new OpenHome.Net.Core.Action("StopRamp"); iActionStartRampToLevel = new OpenHome.Net.Core.Action("StartRampToLevel"); param = new ParameterUint("newLoadLevelTarget", 0, 100); iActionStartRampToLevel.AddInputParameter(param); param = new ParameterUint("newRampTime"); iActionStartRampToLevel.AddInputParameter(param); iActionSetStepDelta = new OpenHome.Net.Core.Action("SetStepDelta"); param = new ParameterUint("newStepDelta", 1, 100); iActionSetStepDelta.AddInputParameter(param); iActionGetStepDelta = new OpenHome.Net.Core.Action("GetStepDelta"); param = new ParameterUint("retStepDelta", 1, 100); iActionGetStepDelta.AddOutputParameter(param); iActionSetRampRate = new OpenHome.Net.Core.Action("SetRampRate"); param = new ParameterUint("newRampRate", 0, 100); iActionSetRampRate.AddInputParameter(param); iActionGetRampRate = new OpenHome.Net.Core.Action("GetRampRate"); param = new ParameterUint("retRampRate", 0, 100); iActionGetRampRate.AddOutputParameter(param); iActionPauseRamp = new OpenHome.Net.Core.Action("PauseRamp"); iActionResumeRamp = new OpenHome.Net.Core.Action("ResumeRamp"); iActionGetIsRamping = new OpenHome.Net.Core.Action("GetIsRamping"); param = new ParameterBool("retIsRamping"); iActionGetIsRamping.AddOutputParameter(param); iActionGetRampPaused = new OpenHome.Net.Core.Action("GetRampPaused"); param = new ParameterBool("retRampPaused"); iActionGetRampPaused.AddOutputParameter(param); iActionGetRampTime = new OpenHome.Net.Core.Action("GetRampTime"); param = new ParameterUint("retRampTime"); iActionGetRampTime.AddOutputParameter(param); iLoadLevelStatus = new PropertyUint("LoadLevelStatus", LoadLevelStatusPropertyChanged); AddProperty(iLoadLevelStatus); iStepDelta = new PropertyUint("StepDelta", StepDeltaPropertyChanged); AddProperty(iStepDelta); iRampRate = new PropertyUint("RampRate", RampRatePropertyChanged); AddProperty(iRampRate); iIsRamping = new PropertyBool("IsRamping", IsRampingPropertyChanged); AddProperty(iIsRamping); iRampPaused = new PropertyBool("RampPaused", RampPausedPropertyChanged); AddProperty(iRampPaused); 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 CpProxyAvOpenhomeOrgVolume1(CpDevice aDevice) : base("av-openhome-org", "Volume", 1, aDevice) { OpenHome.Net.Core.Parameter param; iActionCharacteristics = new OpenHome.Net.Core.Action("Characteristics"); param = new ParameterUint("VolumeMax"); iActionCharacteristics.AddOutputParameter(param); param = new ParameterUint("VolumeUnity"); iActionCharacteristics.AddOutputParameter(param); param = new ParameterUint("VolumeSteps"); iActionCharacteristics.AddOutputParameter(param); param = new ParameterUint("VolumeMilliDbPerStep"); iActionCharacteristics.AddOutputParameter(param); param = new ParameterUint("BalanceMax"); iActionCharacteristics.AddOutputParameter(param); param = new ParameterUint("FadeMax"); iActionCharacteristics.AddOutputParameter(param); iActionSetVolume = new OpenHome.Net.Core.Action("SetVolume"); param = new ParameterUint("Value"); iActionSetVolume.AddInputParameter(param); iActionVolumeInc = new OpenHome.Net.Core.Action("VolumeInc"); iActionVolumeDec = new OpenHome.Net.Core.Action("VolumeDec"); iActionVolume = new OpenHome.Net.Core.Action("Volume"); param = new ParameterUint("Value"); iActionVolume.AddOutputParameter(param); iActionSetBalance = new OpenHome.Net.Core.Action("SetBalance"); param = new ParameterInt("Value"); iActionSetBalance.AddInputParameter(param); iActionBalanceInc = new OpenHome.Net.Core.Action("BalanceInc"); iActionBalanceDec = new OpenHome.Net.Core.Action("BalanceDec"); iActionBalance = new OpenHome.Net.Core.Action("Balance"); param = new ParameterInt("Value"); iActionBalance.AddOutputParameter(param); iActionSetFade = new OpenHome.Net.Core.Action("SetFade"); param = new ParameterInt("Value"); iActionSetFade.AddInputParameter(param); iActionFadeInc = new OpenHome.Net.Core.Action("FadeInc"); iActionFadeDec = new OpenHome.Net.Core.Action("FadeDec"); iActionFade = new OpenHome.Net.Core.Action("Fade"); param = new ParameterInt("Value"); iActionFade.AddOutputParameter(param); iActionSetMute = new OpenHome.Net.Core.Action("SetMute"); param = new ParameterBool("Value"); iActionSetMute.AddInputParameter(param); iActionMute = new OpenHome.Net.Core.Action("Mute"); param = new ParameterBool("Value"); iActionMute.AddOutputParameter(param); iActionVolumeLimit = new OpenHome.Net.Core.Action("VolumeLimit"); param = new ParameterUint("Value"); iActionVolumeLimit.AddOutputParameter(param); iVolume = new PropertyUint("Volume", VolumePropertyChanged); AddProperty(iVolume); iMute = new PropertyBool("Mute", MutePropertyChanged); AddProperty(iMute); iBalance = new PropertyInt("Balance", BalancePropertyChanged); AddProperty(iBalance); iFade = new PropertyInt("Fade", FadePropertyChanged); AddProperty(iFade); iVolumeLimit = new PropertyUint("VolumeLimit", VolumeLimitPropertyChanged); AddProperty(iVolumeLimit); iVolumeMax = new PropertyUint("VolumeMax", VolumeMaxPropertyChanged); AddProperty(iVolumeMax); iVolumeUnity = new PropertyUint("VolumeUnity", VolumeUnityPropertyChanged); AddProperty(iVolumeUnity); iVolumeSteps = new PropertyUint("VolumeSteps", VolumeStepsPropertyChanged); AddProperty(iVolumeSteps); iVolumeMilliDbPerStep = new PropertyUint("VolumeMilliDbPerStep", VolumeMilliDbPerStepPropertyChanged); AddProperty(iVolumeMilliDbPerStep); iBalanceMax = new PropertyUint("BalanceMax", BalanceMaxPropertyChanged); AddProperty(iBalanceMax); iFadeMax = new PropertyUint("FadeMax", FadeMaxPropertyChanged); AddProperty(iFadeMax); 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 CpProxyAvOpenhomeOrgSender1(ICpDevice aDevice) : base("av-openhome-org", "Sender", 1, aDevice) { OpenHome.Net.Core.Parameter param; List<String> allowedValues = new List<String>(); iActionPresentationUrl = new OpenHome.Net.Core.Action("PresentationUrl"); param = new ParameterString("Value", allowedValues); iActionPresentationUrl.AddOutputParameter(param); iActionMetadata = new OpenHome.Net.Core.Action("Metadata"); param = new ParameterString("Value", allowedValues); iActionMetadata.AddOutputParameter(param); iActionAudio = new OpenHome.Net.Core.Action("Audio"); param = new ParameterBool("Value"); iActionAudio.AddOutputParameter(param); iActionStatus = new OpenHome.Net.Core.Action("Status"); allowedValues.Add("Enabled"); allowedValues.Add("Disabled"); allowedValues.Add("Blocked"); param = new ParameterString("Value", allowedValues); iActionStatus.AddOutputParameter(param); allowedValues.Clear(); iActionAttributes = new OpenHome.Net.Core.Action("Attributes"); param = new ParameterString("Value", allowedValues); iActionAttributes.AddOutputParameter(param); iPresentationUrl = new PropertyString("PresentationUrl", PresentationUrlPropertyChanged); AddProperty(iPresentationUrl); iMetadata = new PropertyString("Metadata", MetadataPropertyChanged); AddProperty(iMetadata); iAudio = new PropertyBool("Audio", AudioPropertyChanged); AddProperty(iAudio); iStatus = new PropertyString("Status", StatusPropertyChanged); AddProperty(iStatus); 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 CpProxyAvOpenhomeOrgInfo1(CpDevice aDevice) : base("av-openhome-org", "Info", 1, aDevice) { OpenHome.Net.Core.Parameter param; List<String> allowedValues = new List<String>(); iActionCounters = new OpenHome.Net.Core.Action("Counters"); param = new ParameterUint("TrackCount"); iActionCounters.AddOutputParameter(param); param = new ParameterUint("DetailsCount"); iActionCounters.AddOutputParameter(param); param = new ParameterUint("MetatextCount"); iActionCounters.AddOutputParameter(param); iActionTrack = new OpenHome.Net.Core.Action("Track"); param = new ParameterString("Uri", allowedValues); iActionTrack.AddOutputParameter(param); param = new ParameterString("Metadata", allowedValues); iActionTrack.AddOutputParameter(param); iActionDetails = new OpenHome.Net.Core.Action("Details"); param = new ParameterUint("Duration"); iActionDetails.AddOutputParameter(param); param = new ParameterUint("BitRate"); iActionDetails.AddOutputParameter(param); param = new ParameterUint("BitDepth"); iActionDetails.AddOutputParameter(param); param = new ParameterUint("SampleRate"); iActionDetails.AddOutputParameter(param); param = new ParameterBool("Lossless"); iActionDetails.AddOutputParameter(param); param = new ParameterString("CodecName", allowedValues); iActionDetails.AddOutputParameter(param); iActionMetatext = new OpenHome.Net.Core.Action("Metatext"); param = new ParameterString("Value", allowedValues); iActionMetatext.AddOutputParameter(param); iTrackCount = new PropertyUint("TrackCount", TrackCountPropertyChanged); AddProperty(iTrackCount); iDetailsCount = new PropertyUint("DetailsCount", DetailsCountPropertyChanged); AddProperty(iDetailsCount); iMetatextCount = new PropertyUint("MetatextCount", MetatextCountPropertyChanged); AddProperty(iMetatextCount); iUri = new PropertyString("Uri", UriPropertyChanged); AddProperty(iUri); iMetadata = new PropertyString("Metadata", MetadataPropertyChanged); AddProperty(iMetadata); iDuration = new PropertyUint("Duration", DurationPropertyChanged); AddProperty(iDuration); iBitRate = new PropertyUint("BitRate", BitRatePropertyChanged); AddProperty(iBitRate); iBitDepth = new PropertyUint("BitDepth", BitDepthPropertyChanged); AddProperty(iBitDepth); iSampleRate = new PropertyUint("SampleRate", SampleRatePropertyChanged); AddProperty(iSampleRate); iLossless = new PropertyBool("Lossless", LosslessPropertyChanged); AddProperty(iLossless); iCodecName = new PropertyString("CodecName", CodecNamePropertyChanged); AddProperty(iCodecName); iMetatext = new PropertyString("Metatext", MetatextPropertyChanged); AddProperty(iMetatext); 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 CpProxyAvOpenhomeOrgPlaylistManager1(CpDevice aDevice) : base("av-openhome-org", "PlaylistManager", 1, aDevice) { OpenHome.Net.Core.Parameter param; List<String> allowedValues = new List<String>(); iActionMetadata = new OpenHome.Net.Core.Action("Metadata"); param = new ParameterString("Metadata", allowedValues); iActionMetadata.AddOutputParameter(param); iActionImagesXml = new OpenHome.Net.Core.Action("ImagesXml"); param = new ParameterString("ImagesXml", allowedValues); iActionImagesXml.AddOutputParameter(param); iActionPlaylistReadArray = new OpenHome.Net.Core.Action("PlaylistReadArray"); param = new ParameterUint("Id"); iActionPlaylistReadArray.AddInputParameter(param); param = new ParameterBinary("Array"); iActionPlaylistReadArray.AddOutputParameter(param); iActionPlaylistReadList = new OpenHome.Net.Core.Action("PlaylistReadList"); param = new ParameterString("IdList", allowedValues); iActionPlaylistReadList.AddInputParameter(param); param = new ParameterString("PlaylistList", allowedValues); iActionPlaylistReadList.AddOutputParameter(param); iActionPlaylistRead = new OpenHome.Net.Core.Action("PlaylistRead"); param = new ParameterUint("Id"); iActionPlaylistRead.AddInputParameter(param); param = new ParameterString("Name", allowedValues); iActionPlaylistRead.AddOutputParameter(param); param = new ParameterString("Description", allowedValues); iActionPlaylistRead.AddOutputParameter(param); param = new ParameterUint("ImageId"); iActionPlaylistRead.AddOutputParameter(param); iActionPlaylistSetName = new OpenHome.Net.Core.Action("PlaylistSetName"); param = new ParameterUint("Id"); iActionPlaylistSetName.AddInputParameter(param); param = new ParameterString("Name", allowedValues); iActionPlaylistSetName.AddInputParameter(param); iActionPlaylistSetDescription = new OpenHome.Net.Core.Action("PlaylistSetDescription"); param = new ParameterUint("Id"); iActionPlaylistSetDescription.AddInputParameter(param); param = new ParameterString("Description", allowedValues); iActionPlaylistSetDescription.AddInputParameter(param); iActionPlaylistSetImageId = new OpenHome.Net.Core.Action("PlaylistSetImageId"); param = new ParameterUint("Id"); iActionPlaylistSetImageId.AddInputParameter(param); param = new ParameterUint("ImageId"); iActionPlaylistSetImageId.AddInputParameter(param); iActionPlaylistInsert = new OpenHome.Net.Core.Action("PlaylistInsert"); param = new ParameterUint("AfterId"); iActionPlaylistInsert.AddInputParameter(param); param = new ParameterString("Name", allowedValues); iActionPlaylistInsert.AddInputParameter(param); param = new ParameterString("Description", allowedValues); iActionPlaylistInsert.AddInputParameter(param); param = new ParameterUint("ImageId"); iActionPlaylistInsert.AddInputParameter(param); param = new ParameterUint("NewId"); iActionPlaylistInsert.AddOutputParameter(param); iActionPlaylistDeleteId = new OpenHome.Net.Core.Action("PlaylistDeleteId"); param = new ParameterUint("Value"); iActionPlaylistDeleteId.AddInputParameter(param); iActionPlaylistMove = new OpenHome.Net.Core.Action("PlaylistMove"); param = new ParameterUint("Id"); iActionPlaylistMove.AddInputParameter(param); param = new ParameterUint("AfterId"); iActionPlaylistMove.AddInputParameter(param); iActionPlaylistsMax = new OpenHome.Net.Core.Action("PlaylistsMax"); param = new ParameterUint("Value"); iActionPlaylistsMax.AddOutputParameter(param); iActionTracksMax = new OpenHome.Net.Core.Action("TracksMax"); param = new ParameterUint("Value"); iActionTracksMax.AddOutputParameter(param); iActionPlaylistArrays = new OpenHome.Net.Core.Action("PlaylistArrays"); param = new ParameterUint("Token"); iActionPlaylistArrays.AddOutputParameter(param); param = new ParameterBinary("IdArray"); iActionPlaylistArrays.AddOutputParameter(param); param = new ParameterBinary("TokenArray"); iActionPlaylistArrays.AddOutputParameter(param); iActionPlaylistArraysChanged = new OpenHome.Net.Core.Action("PlaylistArraysChanged"); param = new ParameterUint("Token"); iActionPlaylistArraysChanged.AddInputParameter(param); param = new ParameterBool("Value"); iActionPlaylistArraysChanged.AddOutputParameter(param); iActionRead = new OpenHome.Net.Core.Action("Read"); param = new ParameterUint("Id"); iActionRead.AddInputParameter(param); param = new ParameterUint("TrackId"); iActionRead.AddInputParameter(param); param = new ParameterString("Metadata", allowedValues); iActionRead.AddOutputParameter(param); iActionReadList = new OpenHome.Net.Core.Action("ReadList"); param = new ParameterUint("Id"); iActionReadList.AddInputParameter(param); param = new ParameterString("TrackIdList", allowedValues); iActionReadList.AddInputParameter(param); param = new ParameterString("TrackList", allowedValues); iActionReadList.AddOutputParameter(param); iActionInsert = new OpenHome.Net.Core.Action("Insert"); param = new ParameterUint("Id"); iActionInsert.AddInputParameter(param); param = new ParameterUint("AfterTrackId"); iActionInsert.AddInputParameter(param); param = new ParameterString("Metadata", allowedValues); iActionInsert.AddInputParameter(param); param = new ParameterUint("NewTrackId"); iActionInsert.AddOutputParameter(param); iActionDeleteId = new OpenHome.Net.Core.Action("DeleteId"); param = new ParameterUint("Id"); iActionDeleteId.AddInputParameter(param); param = new ParameterUint("TrackId"); iActionDeleteId.AddInputParameter(param); iActionDeleteAll = new OpenHome.Net.Core.Action("DeleteAll"); param = new ParameterUint("Id"); iActionDeleteAll.AddInputParameter(param); iMetadata = new PropertyString("Metadata", MetadataPropertyChanged); AddProperty(iMetadata); iImagesXml = new PropertyString("ImagesXml", ImagesXmlPropertyChanged); AddProperty(iImagesXml); iIdArray = new PropertyBinary("IdArray", IdArrayPropertyChanged); AddProperty(iIdArray); iTokenArray = new PropertyBinary("TokenArray", TokenArrayPropertyChanged); AddProperty(iTokenArray); iPlaylistsMax = new PropertyUint("PlaylistsMax", PlaylistsMaxPropertyChanged); AddProperty(iPlaylistsMax); iTracksMax = new PropertyUint("TracksMax", TracksMaxPropertyChanged); AddProperty(iTracksMax); 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 CpProxyAvOpenhomeOrgCredentials1(CpDevice aDevice) : base("av-openhome-org", "Credentials", 1, aDevice) { OpenHome.Net.Core.Parameter param; List<String> allowedValues = new List<String>(); iActionSet = new OpenHome.Net.Core.Action("Set"); param = new ParameterString("Id", allowedValues); iActionSet.AddInputParameter(param); param = new ParameterString("UserName", allowedValues); iActionSet.AddInputParameter(param); param = new ParameterBinary("Password"); iActionSet.AddInputParameter(param); iActionClear = new OpenHome.Net.Core.Action("Clear"); param = new ParameterString("Id", allowedValues); iActionClear.AddInputParameter(param); iActionSetEnabled = new OpenHome.Net.Core.Action("SetEnabled"); param = new ParameterString("Id", allowedValues); iActionSetEnabled.AddInputParameter(param); param = new ParameterBool("Enabled"); iActionSetEnabled.AddInputParameter(param); iActionGet = new OpenHome.Net.Core.Action("Get"); param = new ParameterString("Id", allowedValues); iActionGet.AddInputParameter(param); param = new ParameterString("UserName", allowedValues); iActionGet.AddOutputParameter(param); param = new ParameterBinary("Password"); iActionGet.AddOutputParameter(param); param = new ParameterBool("Enabled"); iActionGet.AddOutputParameter(param); param = new ParameterString("Status", allowedValues); iActionGet.AddOutputParameter(param); param = new ParameterString("Data", allowedValues); iActionGet.AddOutputParameter(param); iActionLogin = new OpenHome.Net.Core.Action("Login"); param = new ParameterString("Id", allowedValues); iActionLogin.AddInputParameter(param); param = new ParameterString("Token", allowedValues); iActionLogin.AddOutputParameter(param); iActionReLogin = new OpenHome.Net.Core.Action("ReLogin"); param = new ParameterString("Id", allowedValues); iActionReLogin.AddInputParameter(param); param = new ParameterString("CurrentToken", allowedValues); iActionReLogin.AddInputParameter(param); param = new ParameterString("NewToken", allowedValues); iActionReLogin.AddOutputParameter(param); iActionGetIds = new OpenHome.Net.Core.Action("GetIds"); param = new ParameterString("Ids", allowedValues); iActionGetIds.AddOutputParameter(param); iActionGetPublicKey = new OpenHome.Net.Core.Action("GetPublicKey"); param = new ParameterString("PublicKey", allowedValues); iActionGetPublicKey.AddOutputParameter(param); iActionGetSequenceNumber = new OpenHome.Net.Core.Action("GetSequenceNumber"); param = new ParameterUint("SequenceNumber"); iActionGetSequenceNumber.AddOutputParameter(param); iIds = new PropertyString("Ids", IdsPropertyChanged); AddProperty(iIds); iPublicKey = new PropertyString("PublicKey", PublicKeyPropertyChanged); AddProperty(iPublicKey); iSequenceNumber = new PropertyUint("SequenceNumber", SequenceNumberPropertyChanged); AddProperty(iSequenceNumber); iPropertyLock = new Mutex(); }