本文整理汇总了C#中OpenHome.Net.Core.PropertyString类的典型用法代码示例。如果您正苦于以下问题:C# PropertyString类的具体用法?C# PropertyString怎么用?C# PropertyString使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
PropertyString类属于OpenHome.Net.Core命名空间,在下文中一共展示了PropertyString类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: DvProviderUpnpOrgAVTransport1
/// <summary>
/// Constructor
/// </summary>
/// <param name="aDevice">Device which owns this provider</param>
protected DvProviderUpnpOrgAVTransport1(DvDevice aDevice)
: base(aDevice, "upnp.org", "AVTransport", 1)
{
iGch = GCHandle.Alloc(this);
List<String> allowedValues = new List<String>();
iPropertyLastChange = new PropertyString(new ParameterString("LastChange", allowedValues));
AddProperty(iPropertyLastChange);
}
示例2: DvProviderUpnpOrgScheduledRecording2
/// <summary>
/// Constructor
/// </summary>
/// <param name="aDevice">Device which owns this provider</param>
protected DvProviderUpnpOrgScheduledRecording2(DvDevice aDevice)
: base(aDevice, "upnp.org", "ScheduledRecording", 2)
{
iGch = GCHandle.Alloc(this);
List<String> allowedValues = new List<String>();
iPropertyLastChange = new PropertyString(new ParameterString("LastChange", allowedValues));
AddProperty(iPropertyLastChange);
}
示例3: DvProviderUpnpOrgConnectionManager1
/// <summary>
/// Constructor
/// </summary>
/// <param name="aDevice">Device which owns this provider</param>
protected DvProviderUpnpOrgConnectionManager1(DvDevice aDevice)
: base(aDevice, "upnp.org", "ConnectionManager", 1)
{
iGch = GCHandle.Alloc(this);
List<String> allowedValues = new List<String>();
iPropertySourceProtocolInfo = new PropertyString(new ParameterString("SourceProtocolInfo", allowedValues));
AddProperty(iPropertySourceProtocolInfo);
iPropertySinkProtocolInfo = new PropertyString(new ParameterString("SinkProtocolInfo", allowedValues));
AddProperty(iPropertySinkProtocolInfo);
iPropertyCurrentConnectionIDs = new PropertyString(new ParameterString("CurrentConnectionIDs", allowedValues));
AddProperty(iPropertyCurrentConnectionIDs);
}
示例4: CpProxyAvOpenhomeOrgReceiver1
/// <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 CpProxyAvOpenhomeOrgReceiver1(CpDevice aDevice)
: base("av-openhome-org", "Receiver", 1, aDevice)
{
OpenHome.Net.Core.Parameter param;
List<String> allowedValues = new List<String>();
iActionPlay = new OpenHome.Net.Core.Action("Play");
iActionStop = new OpenHome.Net.Core.Action("Stop");
iActionSetSender = new OpenHome.Net.Core.Action("SetSender");
param = new ParameterString("Uri", allowedValues);
iActionSetSender.AddInputParameter(param);
param = new ParameterString("Metadata", allowedValues);
iActionSetSender.AddInputParameter(param);
iActionSender = new OpenHome.Net.Core.Action("Sender");
param = new ParameterString("Uri", allowedValues);
iActionSender.AddOutputParameter(param);
param = new ParameterString("Metadata", allowedValues);
iActionSender.AddOutputParameter(param);
iActionProtocolInfo = new OpenHome.Net.Core.Action("ProtocolInfo");
param = new ParameterString("Value", allowedValues);
iActionProtocolInfo.AddOutputParameter(param);
iActionTransportState = new OpenHome.Net.Core.Action("TransportState");
allowedValues.Add("Stopped");
allowedValues.Add("Playing");
allowedValues.Add("Waiting");
allowedValues.Add("Buffering");
param = new ParameterString("Value", allowedValues);
iActionTransportState.AddOutputParameter(param);
allowedValues.Clear();
iUri = new PropertyString("Uri", UriPropertyChanged);
AddProperty(iUri);
iMetadata = new PropertyString("Metadata", MetadataPropertyChanged);
AddProperty(iMetadata);
iTransportState = new PropertyString("TransportState", TransportStatePropertyChanged);
AddProperty(iTransportState);
iProtocolInfo = new PropertyString("ProtocolInfo", ProtocolInfoPropertyChanged);
AddProperty(iProtocolInfo);
iPropertyLock = new Mutex();
}
示例5: CpProxyUpnpOrgAVTransport1
//.........这里部分代码省略.........
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();
param = new ParameterString("RecQualityMode", allowedValues);
iActionGetTransportSettings.AddOutputParameter(param);
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);
param = new ParameterString("Speed", allowedValues);
iActionPlay.AddInputParameter(param);
iActionPause = new OpenHome.Net.Core.Action("Pause");
param = new ParameterUint("InstanceID");
iActionPause.AddInputParameter(param);
iActionRecord = new OpenHome.Net.Core.Action("Record");
param = new ParameterUint("InstanceID");
iActionRecord.AddInputParameter(param);
iActionSeek = new OpenHome.Net.Core.Action("Seek");
param = new ParameterUint("InstanceID");
iActionSeek.AddInputParameter(param);
allowedValues.Add("TRACK_NR");
allowedValues.Add("ABS_TIME");
allowedValues.Add("REL_TIME");
allowedValues.Add("ABS_COUNT");
allowedValues.Add("REL_COUNT");
allowedValues.Add("CHANNEL_FREQ");
allowedValues.Add("TAPE-INDEX");
allowedValues.Add("FRAME");
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");
param = new ParameterString("NewPlayMode", allowedValues);
iActionSetPlayMode.AddInputParameter(param);
allowedValues.Clear();
iActionSetRecordQualityMode = new OpenHome.Net.Core.Action("SetRecordQualityMode");
param = new ParameterUint("InstanceID");
iActionSetRecordQualityMode.AddInputParameter(param);
param = new ParameterString("NewRecordQualityMode", allowedValues);
iActionSetRecordQualityMode.AddInputParameter(param);
iActionGetCurrentTransportActions = new OpenHome.Net.Core.Action("GetCurrentTransportActions");
param = new ParameterUint("InstanceID");
iActionGetCurrentTransportActions.AddInputParameter(param);
param = new ParameterString("Actions", allowedValues);
iActionGetCurrentTransportActions.AddOutputParameter(param);
iLastChange = new PropertyString("LastChange", LastChangePropertyChanged);
AddProperty(iLastChange);
iPropertyLock = new Mutex();
}
示例6: CpProxyUpnpOrgRenderingControl1
//.........这里部分代码省略.........
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();
}
示例7: EnablePropertyCurrentConnectionIDs
/// <summary>
/// Enable the CurrentConnectionIDs property.
/// </summary>
public void EnablePropertyCurrentConnectionIDs()
{
List<String> allowedValues = new List<String>();
iPropertyCurrentConnectionIDs = new PropertyString(new ParameterString("CurrentConnectionIDs", allowedValues));
AddProperty(iPropertyCurrentConnectionIDs);
}
示例8: EnablePropertyMetadata
/// <summary>
/// Enable the Metadata property.
/// </summary>
public void EnablePropertyMetadata()
{
List<String> allowedValues = new List<String>();
iPropertyMetadata = new PropertyString(new ParameterString("Metadata", allowedValues));
AddProperty(iPropertyMetadata);
}
示例9: CpProxyAvOpenhomeOrgProduct1
/// <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);
//.........这里部分代码省略.........
示例10: CpProxyAvOpenhomeOrgRadio1
/// <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);
//.........这里部分代码省略.........
示例11: CpProxyUpnpOrgContentDirectory2
//.........这里部分代码省略.........
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();
}
示例12: EnablePropertyTransportState
/// <summary>
/// Enable the TransportState property.
/// </summary>
public void EnablePropertyTransportState()
{
List<String> allowedValues = new List<String>();
allowedValues.Add("Stopped");
allowedValues.Add("Playing");
allowedValues.Add("Paused");
allowedValues.Add("Buffering");
iPropertyTransportState = new PropertyString(new ParameterString("TransportState", allowedValues));
AddProperty(iPropertyTransportState);
allowedValues.Clear();
}
示例13: EnablePropertyUri
/// <summary>
/// Enable the Uri property.
/// </summary>
public void EnablePropertyUri()
{
List<String> allowedValues = new List<String>();
iPropertyUri = new PropertyString(new ParameterString("Uri", allowedValues));
AddProperty(iPropertyUri);
}
示例14: DvProviderAvOpenhomeOrgRadio1
/// <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);
}
示例15: EnablePropertyStatus
/// <summary>
/// Enable the Status property.
/// </summary>
public void EnablePropertyStatus()
{
List<String> allowedValues = new List<String>();
allowedValues.Add("Enabled");
allowedValues.Add("Disabled");
allowedValues.Add("Blocked");
iPropertyStatus = new PropertyString(new ParameterString("Status", allowedValues));
AddProperty(iPropertyStatus);
allowedValues.Clear();
}