/// <summary> /// Constructor /// </summary> /// <param name="aDevice">Device which owns this provider</param> protected DvProviderOpenhomeOrgTestDimmableLight1(DvDevice aDevice) : base(aDevice, "openhome.org", "TestDimmableLight", 1) { iGch = GCHandle.Alloc(this); iPropertyA_ARG_Level = new PropertyUint(new ParameterUint("A_ARG_Level")); AddProperty(iPropertyA_ARG_Level); }
/// <summary> /// Constructor /// </summary> /// <param name="aDevice">Device which owns this provider</param> protected DvProviderAvOpenhomeOrgTime1(DvDevice aDevice) : base(aDevice, "av.openhome.org", "Time", 1) { iGch = GCHandle.Alloc(this); iPropertyTrackCount = new PropertyUint(new ParameterUint("TrackCount")); AddProperty(iPropertyTrackCount); iPropertyDuration = new PropertyUint(new ParameterUint("Duration")); AddProperty(iPropertyDuration); iPropertySeconds = new PropertyUint(new ParameterUint("Seconds")); AddProperty(iPropertySeconds); }
/// <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 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 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> /// Enable the PlaylistsMax property. /// </summary> public void EnablePropertyPlaylistsMax() { iPropertyPlaylistsMax = new PropertyUint(new ParameterUint("PlaylistsMax")); AddProperty(iPropertyPlaylistsMax); }
/// <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> /// Enable the SystemUpdateID property. /// </summary> public void EnablePropertySystemUpdateID() { iPropertySystemUpdateID = new PropertyUint(new ParameterUint("SystemUpdateID")); AddProperty(iPropertySystemUpdateID); }
/// <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 CpProxyUpnpOrgAVTransport1(CpDevice aDevice) : base("schemas-upnp-org", "AVTransport", 1, aDevice) { OpenHome.Net.Core.Parameter param; List<String> allowedValues = new List<String>(); iActionSetAVTransportURI = new OpenHome.Net.Core.Action("SetAVTransportURI"); param = new ParameterUint("InstanceID"); iActionSetAVTransportURI.AddInputParameter(param); param = new ParameterString("CurrentURI", allowedValues); iActionSetAVTransportURI.AddInputParameter(param); param = new ParameterString("CurrentURIMetaData", allowedValues); iActionSetAVTransportURI.AddInputParameter(param); iActionBendAVTransportURI = new OpenHome.Net.Core.Action("BendAVTransportURI"); param = new ParameterUint("InstanceID"); iActionBendAVTransportURI.AddInputParameter(param); param = new ParameterString("CurrentURI", allowedValues); iActionBendAVTransportURI.AddInputParameter(param); param = new ParameterString("CurrentURIMetaData", allowedValues); iActionBendAVTransportURI.AddInputParameter(param); iActionLoveCurrentTrack = new OpenHome.Net.Core.Action("LoveCurrentTrack"); param = new ParameterUint("InstanceID"); iActionLoveCurrentTrack.AddInputParameter(param); iActionBanCurrentTrack = new OpenHome.Net.Core.Action("BanCurrentTrack"); param = new ParameterUint("InstanceID"); iActionBanCurrentTrack.AddInputParameter(param); iActionSetResourceForCurrentStream = new OpenHome.Net.Core.Action("SetResourceForCurrentStream"); param = new ParameterString("ResourceURI", allowedValues); iActionSetResourceForCurrentStream.AddInputParameter(param); iActionGetStreamProperties = new OpenHome.Net.Core.Action("GetStreamProperties"); param = new ParameterString("CurrentContentType", allowedValues); iActionGetStreamProperties.AddOutputParameter(param); param = new ParameterUint("CurrentBitrate"); iActionGetStreamProperties.AddOutputParameter(param); iActionPause = new OpenHome.Net.Core.Action("Pause"); param = new ParameterUint("InstanceID"); iActionPause.AddInputParameter(param); iActionGetMediaInfo = new OpenHome.Net.Core.Action("GetMediaInfo"); param = new ParameterUint("InstanceID"); iActionGetMediaInfo.AddInputParameter(param); param = new ParameterUint("NrTracks"); iActionGetMediaInfo.AddOutputParameter(param); param = new ParameterString("MediaDuration", allowedValues); iActionGetMediaInfo.AddOutputParameter(param); param = new ParameterString("CurrentURI", allowedValues); iActionGetMediaInfo.AddOutputParameter(param); param = new ParameterString("CurrentURIMetaData", allowedValues); iActionGetMediaInfo.AddOutputParameter(param); param = new ParameterString("NextURI", allowedValues); iActionGetMediaInfo.AddOutputParameter(param); param = new ParameterString("NextURIMetaData", allowedValues); iActionGetMediaInfo.AddOutputParameter(param); allowedValues.Add("NETWORK"); param = new ParameterString("PlayMedium", allowedValues); iActionGetMediaInfo.AddOutputParameter(param); allowedValues.Clear(); allowedValues.Add("NOT_IMPLEMENTED"); param = new ParameterString("RecordMedium", allowedValues); iActionGetMediaInfo.AddOutputParameter(param); allowedValues.Clear(); allowedValues.Add("NOT_IMPLEMENTED"); param = new ParameterString("WriteStatus", allowedValues); iActionGetMediaInfo.AddOutputParameter(param); allowedValues.Clear(); iActionGetTransportInfo = new OpenHome.Net.Core.Action("GetTransportInfo"); param = new ParameterUint("InstanceID"); iActionGetTransportInfo.AddInputParameter(param); allowedValues.Add("STOPPED"); allowedValues.Add("PLAYING"); allowedValues.Add("TRANSITIONING"); allowedValues.Add("NO_MEDIA_PRESENT"); param = new ParameterString("CurrentTransportState", allowedValues); iActionGetTransportInfo.AddOutputParameter(param); allowedValues.Clear(); allowedValues.Add("OK"); allowedValues.Add("ERROR_OCCURRED"); param = new ParameterString("CurrentTransportStatus", allowedValues); iActionGetTransportInfo.AddOutputParameter(param); allowedValues.Clear(); allowedValues.Add("1"); param = new ParameterString("CurrentSpeed", allowedValues); iActionGetTransportInfo.AddOutputParameter(param); allowedValues.Clear(); iActionGetPositionInfo = new OpenHome.Net.Core.Action("GetPositionInfo"); param = new ParameterUint("InstanceID"); iActionGetPositionInfo.AddInputParameter(param); param = new ParameterUint("Track"); iActionGetPositionInfo.AddOutputParameter(param); param = new ParameterString("TrackDuration", allowedValues); iActionGetPositionInfo.AddOutputParameter(param); param = new ParameterString("TrackMetaData", allowedValues); iActionGetPositionInfo.AddOutputParameter(param); param = new ParameterString("TrackURI", allowedValues); iActionGetPositionInfo.AddOutputParameter(param); param = new ParameterString("RelTime", allowedValues); iActionGetPositionInfo.AddOutputParameter(param); param = new ParameterString("AbsTime", allowedValues); iActionGetPositionInfo.AddOutputParameter(param); param = new ParameterInt("RelCount"); iActionGetPositionInfo.AddOutputParameter(param); param = new ParameterInt("AbsCount"); iActionGetPositionInfo.AddOutputParameter(param); iActionGetDeviceCapabilities = new OpenHome.Net.Core.Action("GetDeviceCapabilities"); param = new ParameterUint("InstanceID"); iActionGetDeviceCapabilities.AddInputParameter(param); param = new ParameterString("PlayMedia", allowedValues); iActionGetDeviceCapabilities.AddOutputParameter(param); param = new ParameterString("RecMedia", allowedValues); iActionGetDeviceCapabilities.AddOutputParameter(param); param = new ParameterString("RecQualityModes", allowedValues); iActionGetDeviceCapabilities.AddOutputParameter(param); iActionGetTransportSettings = new OpenHome.Net.Core.Action("GetTransportSettings"); param = new ParameterUint("InstanceID"); iActionGetTransportSettings.AddInputParameter(param); allowedValues.Add("NORMAL"); param = new ParameterString("PlayMode", allowedValues); iActionGetTransportSettings.AddOutputParameter(param); allowedValues.Clear(); allowedValues.Add("NOT_IMPLEMENTED"); param = new ParameterString("RecQualityMode", allowedValues); iActionGetTransportSettings.AddOutputParameter(param); allowedValues.Clear(); iActionStop = new OpenHome.Net.Core.Action("Stop"); param = new ParameterUint("InstanceID"); iActionStop.AddInputParameter(param); iActionPlay = new OpenHome.Net.Core.Action("Play"); param = new ParameterUint("InstanceID"); iActionPlay.AddInputParameter(param); allowedValues.Add("1"); param = new ParameterString("Speed", allowedValues); iActionPlay.AddInputParameter(param); allowedValues.Clear(); iActionSeek = new OpenHome.Net.Core.Action("Seek"); param = new ParameterUint("InstanceID"); iActionSeek.AddInputParameter(param); allowedValues.Add("TRACK_NR"); allowedValues.Add("ABS_TIME"); param = new ParameterString("Unit", allowedValues); iActionSeek.AddInputParameter(param); allowedValues.Clear(); param = new ParameterString("Target", allowedValues); iActionSeek.AddInputParameter(param); iActionNext = new OpenHome.Net.Core.Action("Next"); param = new ParameterUint("InstanceID"); iActionNext.AddInputParameter(param); iActionPrevious = new OpenHome.Net.Core.Action("Previous"); param = new ParameterUint("InstanceID"); iActionPrevious.AddInputParameter(param); iActionSetPlayMode = new OpenHome.Net.Core.Action("SetPlayMode"); param = new ParameterUint("InstanceID"); iActionSetPlayMode.AddInputParameter(param); allowedValues.Add("NORMAL"); allowedValues.Add("SHUFFLE"); allowedValues.Add("RANDOM"); allowedValues.Add("REPEAT_ONE"); allowedValues.Add("REPEAT_ALL"); param = new ParameterString("NewPlayMode", allowedValues); iActionSetPlayMode.AddInputParameter(param); allowedValues.Clear(); iActionGetCurrentTransportActions = new OpenHome.Net.Core.Action("GetCurrentTransportActions"); param = new ParameterUint("InstanceID"); iActionGetCurrentTransportActions.AddInputParameter(param); param = new ParameterString("Actions", allowedValues); iActionGetCurrentTransportActions.AddOutputParameter(param); iActionSetNextStartTriggerTime = new OpenHome.Net.Core.Action("SetNextStartTriggerTime"); param = new ParameterUint("InstanceID"); iActionSetNextStartTriggerTime.AddInputParameter(param); param = new ParameterString("TimeService", allowedValues); iActionSetNextStartTriggerTime.AddInputParameter(param); param = new ParameterString("StartTime", allowedValues); iActionSetNextStartTriggerTime.AddInputParameter(param); iBufferFilled = new PropertyUint("BufferFilled", BufferFilledPropertyChanged); AddProperty(iBufferFilled); iLastChange = new PropertyString("LastChange", LastChangePropertyChanged); AddProperty(iLastChange); iPropertyLock = new Mutex(); }
/// <summary> /// Enable the Id property. /// </summary> public void EnablePropertyId() { iPropertyId = new PropertyUint(new ParameterUint("Id")); AddProperty(iPropertyId); }
/// <summary> /// Enable the BitDepth property. /// </summary> public void EnablePropertyBitDepth() { iPropertyBitDepth = new PropertyUint(new ParameterUint("BitDepth")); AddProperty(iPropertyBitDepth); }
/// <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 CpProxyAvOpenhomeOrgMediaServer1(CpDevice aDevice) : base("av-openhome-org", "MediaServer", 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("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); iActionAttributes = new OpenHome.Net.Core.Action("Attributes"); param = new ParameterString("Value", allowedValues); iActionAttributes.AddOutputParameter(param); iActionQueryPort = new OpenHome.Net.Core.Action("QueryPort"); param = new ParameterUint("Value"); iActionQueryPort.AddOutputParameter(param); iActionBrowsePort = new OpenHome.Net.Core.Action("BrowsePort"); param = new ParameterUint("Value"); iActionBrowsePort.AddOutputParameter(param); iActionUpdateCount = new OpenHome.Net.Core.Action("UpdateCount"); param = new ParameterUint("Value"); iActionUpdateCount.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); 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); iAttributes = new PropertyString("Attributes", AttributesPropertyChanged); AddProperty(iAttributes); iQueryPort = new PropertyUint("QueryPort", QueryPortPropertyChanged); AddProperty(iQueryPort); iBrowsePort = new PropertyUint("BrowsePort", BrowsePortPropertyChanged); AddProperty(iBrowsePort); iUpdateCount = new PropertyUint("UpdateCount", UpdateCountPropertyChanged); AddProperty(iUpdateCount); iPropertyLock = new Mutex(); }
/// <summary> /// Enable the SourceIndex property. /// </summary> public void EnablePropertySourceIndex() { iPropertySourceIndex = new PropertyUint(new ParameterUint("SourceIndex")); AddProperty(iPropertySourceIndex); }
/// <summary> /// Enable the SourceCount property. /// </summary> public void EnablePropertySourceCount() { iPropertySourceCount = new PropertyUint(new ParameterUint("SourceCount")); AddProperty(iPropertySourceCount); }
/// <summary> /// Constructor /// </summary> /// <param name="aDevice">Device which owns this provider</param> protected DvProviderAvOpenhomeOrgRadio1(DvDevice aDevice) : base(aDevice, "av.openhome.org", "Radio", 1) { iGch = GCHandle.Alloc(this); List<String> allowedValues = new List<String>(); iPropertyUri = new PropertyString(new ParameterString("Uri", allowedValues)); AddProperty(iPropertyUri); iPropertyMetadata = new PropertyString(new ParameterString("Metadata", allowedValues)); AddProperty(iPropertyMetadata); allowedValues.Add("Stopped"); allowedValues.Add("Playing"); allowedValues.Add("Paused"); allowedValues.Add("Buffering"); iPropertyTransportState = new PropertyString(new ParameterString("TransportState", allowedValues)); AddProperty(iPropertyTransportState); allowedValues.Clear(); iPropertyId = new PropertyUint(new ParameterUint("Id")); AddProperty(iPropertyId); iPropertyIdArray = new PropertyBinary(new ParameterBinary("IdArray")); AddProperty(iPropertyIdArray); iPropertyChannelsMax = new PropertyUint(new ParameterUint("ChannelsMax")); AddProperty(iPropertyChannelsMax); iPropertyProtocolInfo = new PropertyString(new ParameterString("ProtocolInfo", allowedValues)); AddProperty(iPropertyProtocolInfo); }
/// <summary> /// Enable the ChannelsMax property. /// </summary> public void EnablePropertyChannelsMax() { iPropertyChannelsMax = new PropertyUint(new ParameterUint("ChannelsMax")); AddProperty(iPropertyChannelsMax); }
/// <summary> /// Enable the DetailsCount property. /// </summary> public void EnablePropertyDetailsCount() { iPropertyDetailsCount = new PropertyUint(new ParameterUint("DetailsCount")); AddProperty(iPropertyDetailsCount); }
/// <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> /// Enable the Duration property. /// </summary> public void EnablePropertyDuration() { iPropertyDuration = new PropertyUint(new ParameterUint("Duration")); AddProperty(iPropertyDuration); }
/// <summary> /// Constructor /// </summary> /// <param name="aDevice">Device which owns this provider</param> protected DvProviderUpnpOrgDimming1(DvDevice aDevice) : base(aDevice, "upnp.org", "Dimming", 1) { iGch = GCHandle.Alloc(this); iPropertyLoadLevelStatus = new PropertyUint(new ParameterUint("LoadLevelStatus", 0, 100)); AddProperty(iPropertyLoadLevelStatus); iPropertyStepDelta = new PropertyUint(new ParameterUint("StepDelta", 1, 100)); AddProperty(iPropertyStepDelta); iPropertyRampRate = new PropertyUint(new ParameterUint("RampRate", 0, 100)); AddProperty(iPropertyRampRate); iPropertyIsRamping = new PropertyBool(new ParameterBool("IsRamping")); AddProperty(iPropertyIsRamping); iPropertyRampPaused = new PropertyBool(new ParameterBool("RampPaused")); AddProperty(iPropertyRampPaused); }
/// <summary> /// Enable the MetatextCount property. /// </summary> public void EnablePropertyMetatextCount() { iPropertyMetatextCount = new PropertyUint(new ParameterUint("MetatextCount")); AddProperty(iPropertyMetatextCount); }
/// <summary> /// Utility function which updates the value of a PropertyUint. (Not intended for external use) /// </summary> /// <remarks>If the property value has changed and the properties are not locked (PropertiesLock() /// called more recently than PropertiesUnlock()), publication of an update is scheduled. /// /// Throws ParameterValidationError if the property has a range of allowed values and /// the new value is not in this range</remarks> /// <param name="aProperty">Property to be updated</param> /// <param name="aValue">New value for the property</param> /// <returns>true if the property's value has changed (aValue was different to the previous value)</returns> protected unsafe bool SetPropertyUint(PropertyUint aProperty, uint aValue) { uint changed; int err = DvProviderSetPropertyUint(iHandle, aProperty.Handle(), aValue, &changed); if (err != 0) { throw new PropertyUpdateError(); } return (changed != 0); }
/// <summary> /// Enable the SampleRate property. /// </summary> public void EnablePropertySampleRate() { iPropertySampleRate = new PropertyUint(new ParameterUint("SampleRate")); AddProperty(iPropertySampleRate); }
/// <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 CpProxyUpnpOrgContentDirectory2(CpDevice aDevice) : base("schemas-upnp-org", "ContentDirectory", 2, aDevice) { OpenHome.Net.Core.Parameter param; List<String> allowedValues = new List<String>(); iActionGetSearchCapabilities = new OpenHome.Net.Core.Action("GetSearchCapabilities"); param = new ParameterString("SearchCaps", allowedValues); iActionGetSearchCapabilities.AddOutputParameter(param); iActionGetSortCapabilities = new OpenHome.Net.Core.Action("GetSortCapabilities"); param = new ParameterString("SortCaps", allowedValues); iActionGetSortCapabilities.AddOutputParameter(param); iActionGetSortExtensionCapabilities = new OpenHome.Net.Core.Action("GetSortExtensionCapabilities"); param = new ParameterString("SortExtensionCaps", allowedValues); iActionGetSortExtensionCapabilities.AddOutputParameter(param); iActionGetFeatureList = new OpenHome.Net.Core.Action("GetFeatureList"); param = new ParameterString("FeatureList", allowedValues); iActionGetFeatureList.AddOutputParameter(param); iActionGetSystemUpdateID = new OpenHome.Net.Core.Action("GetSystemUpdateID"); param = new ParameterUint("Id"); iActionGetSystemUpdateID.AddOutputParameter(param); iActionBrowse = new OpenHome.Net.Core.Action("Browse"); param = new ParameterString("ObjectID", allowedValues); iActionBrowse.AddInputParameter(param); allowedValues.Add("BrowseMetadata"); allowedValues.Add("BrowseDirectChildren"); param = new ParameterString("BrowseFlag", allowedValues); iActionBrowse.AddInputParameter(param); allowedValues.Clear(); param = new ParameterString("Filter", allowedValues); iActionBrowse.AddInputParameter(param); param = new ParameterUint("StartingIndex"); iActionBrowse.AddInputParameter(param); param = new ParameterUint("RequestedCount"); iActionBrowse.AddInputParameter(param); param = new ParameterString("SortCriteria", allowedValues); iActionBrowse.AddInputParameter(param); param = new ParameterString("Result", allowedValues); iActionBrowse.AddOutputParameter(param); param = new ParameterUint("NumberReturned"); iActionBrowse.AddOutputParameter(param); param = new ParameterUint("TotalMatches"); iActionBrowse.AddOutputParameter(param); param = new ParameterUint("UpdateID"); iActionBrowse.AddOutputParameter(param); iActionSearch = new OpenHome.Net.Core.Action("Search"); param = new ParameterString("ContainerID", allowedValues); iActionSearch.AddInputParameter(param); param = new ParameterString("SearchCriteria", allowedValues); iActionSearch.AddInputParameter(param); param = new ParameterString("Filter", allowedValues); iActionSearch.AddInputParameter(param); param = new ParameterUint("StartingIndex"); iActionSearch.AddInputParameter(param); param = new ParameterUint("RequestedCount"); iActionSearch.AddInputParameter(param); param = new ParameterString("SortCriteria", allowedValues); iActionSearch.AddInputParameter(param); param = new ParameterString("Result", allowedValues); iActionSearch.AddOutputParameter(param); param = new ParameterUint("NumberReturned"); iActionSearch.AddOutputParameter(param); param = new ParameterUint("TotalMatches"); iActionSearch.AddOutputParameter(param); param = new ParameterUint("UpdateID"); iActionSearch.AddOutputParameter(param); iActionCreateObject = new OpenHome.Net.Core.Action("CreateObject"); param = new ParameterString("ContainerID", allowedValues); iActionCreateObject.AddInputParameter(param); param = new ParameterString("Elements", allowedValues); iActionCreateObject.AddInputParameter(param); param = new ParameterString("ObjectID", allowedValues); iActionCreateObject.AddOutputParameter(param); param = new ParameterString("Result", allowedValues); iActionCreateObject.AddOutputParameter(param); iActionDestroyObject = new OpenHome.Net.Core.Action("DestroyObject"); param = new ParameterString("ObjectID", allowedValues); iActionDestroyObject.AddInputParameter(param); iActionUpdateObject = new OpenHome.Net.Core.Action("UpdateObject"); param = new ParameterString("ObjectID", allowedValues); iActionUpdateObject.AddInputParameter(param); param = new ParameterString("CurrentTagValue", allowedValues); iActionUpdateObject.AddInputParameter(param); param = new ParameterString("NewTagValue", allowedValues); iActionUpdateObject.AddInputParameter(param); iActionMoveObject = new OpenHome.Net.Core.Action("MoveObject"); param = new ParameterString("ObjectID", allowedValues); iActionMoveObject.AddInputParameter(param); param = new ParameterString("NewParentID", allowedValues); iActionMoveObject.AddInputParameter(param); param = new ParameterString("NewObjectID", allowedValues); iActionMoveObject.AddOutputParameter(param); iActionImportResource = new OpenHome.Net.Core.Action("ImportResource"); param = new ParameterString("SourceURI", allowedValues); iActionImportResource.AddInputParameter(param); param = new ParameterString("DestinationURI", allowedValues); iActionImportResource.AddInputParameter(param); param = new ParameterUint("TransferID"); iActionImportResource.AddOutputParameter(param); iActionExportResource = new OpenHome.Net.Core.Action("ExportResource"); param = new ParameterString("SourceURI", allowedValues); iActionExportResource.AddInputParameter(param); param = new ParameterString("DestinationURI", allowedValues); iActionExportResource.AddInputParameter(param); param = new ParameterUint("TransferID"); iActionExportResource.AddOutputParameter(param); iActionDeleteResource = new OpenHome.Net.Core.Action("DeleteResource"); param = new ParameterString("ResourceURI", allowedValues); iActionDeleteResource.AddInputParameter(param); iActionStopTransferResource = new OpenHome.Net.Core.Action("StopTransferResource"); param = new ParameterUint("TransferID"); iActionStopTransferResource.AddInputParameter(param); iActionGetTransferProgress = new OpenHome.Net.Core.Action("GetTransferProgress"); param = new ParameterUint("TransferID"); iActionGetTransferProgress.AddInputParameter(param); allowedValues.Add("COMPLETED"); allowedValues.Add("ERROR"); allowedValues.Add("IN_PROGRESS"); allowedValues.Add("STOPPED"); param = new ParameterString("TransferStatus", allowedValues); iActionGetTransferProgress.AddOutputParameter(param); allowedValues.Clear(); param = new ParameterString("TransferLength", allowedValues); iActionGetTransferProgress.AddOutputParameter(param); param = new ParameterString("TransferTotal", allowedValues); iActionGetTransferProgress.AddOutputParameter(param); iActionCreateReference = new OpenHome.Net.Core.Action("CreateReference"); param = new ParameterString("ContainerID", allowedValues); iActionCreateReference.AddInputParameter(param); param = new ParameterString("ObjectID", allowedValues); iActionCreateReference.AddInputParameter(param); param = new ParameterString("NewID", allowedValues); iActionCreateReference.AddOutputParameter(param); iSystemUpdateID = new PropertyUint("SystemUpdateID", SystemUpdateIDPropertyChanged); AddProperty(iSystemUpdateID); iContainerUpdateIDs = new PropertyString("ContainerUpdateIDs", ContainerUpdateIDsPropertyChanged); AddProperty(iContainerUpdateIDs); iTransferIDs = new PropertyString("TransferIDs", TransferIDsPropertyChanged); AddProperty(iTransferIDs); iPropertyLock = new Mutex(); }
/// <summary> /// Enable the TrackCount property. /// </summary> public void EnablePropertyTrackCount() { iPropertyTrackCount = new PropertyUint(new ParameterUint("TrackCount")); AddProperty(iPropertyTrackCount); }
/// <summary> /// Enable the TracksMax property. /// </summary> public void EnablePropertyTracksMax() { iPropertyTracksMax = new PropertyUint(new ParameterUint("TracksMax")); AddProperty(iPropertyTracksMax); }
/// <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 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> /// <param name="aDevice">Device which owns this provider</param> protected DvProviderAvOpenhomeOrgPlaylist1(DvDevice aDevice) : base(aDevice, "av.openhome.org", "Playlist", 1) { iGch = GCHandle.Alloc(this); List<String> allowedValues = new List<String>(); allowedValues.Add("Playing"); allowedValues.Add("Paused"); allowedValues.Add("Stopped"); allowedValues.Add("Buffering"); iPropertyTransportState = new PropertyString(new ParameterString("TransportState", allowedValues)); AddProperty(iPropertyTransportState); allowedValues.Clear(); iPropertyRepeat = new PropertyBool(new ParameterBool("Repeat")); AddProperty(iPropertyRepeat); iPropertyShuffle = new PropertyBool(new ParameterBool("Shuffle")); AddProperty(iPropertyShuffle); iPropertyId = new PropertyUint(new ParameterUint("Id")); AddProperty(iPropertyId); iPropertyIdArray = new PropertyBinary(new ParameterBinary("IdArray")); AddProperty(iPropertyIdArray); iPropertyTracksMax = new PropertyUint(new ParameterUint("TracksMax")); AddProperty(iPropertyTracksMax); iPropertyProtocolInfo = new PropertyString(new ParameterString("ProtocolInfo", allowedValues)); AddProperty(iPropertyProtocolInfo); }