本文整理汇总了C#中OpenHome.Net.Core.Action.AddOutputParameter方法的典型用法代码示例。如果您正苦于以下问题:C# Action.AddOutputParameter方法的具体用法?C# Action.AddOutputParameter怎么用?C# Action.AddOutputParameter使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类OpenHome.Net.Core.Action
的用法示例。
在下文中一共展示了Action.AddOutputParameter方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: EnableActionGetColorComponents
/// <summary>
/// Signal that the action GetColorComponents is supported.
/// </summary>
/// <remarks>The action's availability will be published in the device's service.xml.
/// GetColorComponents must be overridden if this is called.</remarks>
protected void EnableActionGetColorComponents()
{
OpenHome.Net.Core.Action action = new OpenHome.Net.Core.Action("GetColorComponents");
action.AddInputParameter(new ParameterUint("Color"));
action.AddOutputParameter(new ParameterUint("Brightness"));
action.AddOutputParameter(new ParameterUint("Red"));
action.AddOutputParameter(new ParameterUint("Green"));
action.AddOutputParameter(new ParameterUint("Blue"));
iDelegateGetColorComponents = new ActionDelegate(DoGetColorComponents);
EnableAction(action, iDelegateGetColorComponents, GCHandle.ToIntPtr(iGch));
}
示例2: EnableActionSubscribe
/// <summary>
/// Signal that the action Subscribe is supported.
/// </summary>
/// <remarks>The action's availability will be published in the device's service.xml.
/// Subscribe must be overridden if this is called.</remarks>
protected void EnableActionSubscribe()
{
OpenHome.Net.Core.Action action = new OpenHome.Net.Core.Action("Subscribe");
List<String> allowedValues = new List<String>();
action.AddInputParameter(new ParameterString("ClientId", allowedValues));
action.AddInputParameter(new ParameterString("Udn", allowedValues));
action.AddInputParameter(new ParameterString("Service", allowedValues));
action.AddInputParameter(new ParameterUint("RequestedDuration"));
action.AddOutputParameter(new ParameterString("Sid", allowedValues));
action.AddOutputParameter(new ParameterUint("Duration"));
iDelegateSubscribe = new ActionDelegate(DoSubscribe);
EnableAction(action, iDelegateSubscribe, GCHandle.ToIntPtr(iGch));
}
示例3: CpProxyAvOpenhomeOrgNetworkMonitor1
/// <summary>
/// Constructor
/// </summary>
/// <remarks>Use CpProxy::[Un]Subscribe() to enable/disable querying of state variable and reporting of their changes.</remarks>
/// <param name="aDevice">The device to use</param>
public CpProxyAvOpenhomeOrgNetworkMonitor1(CpDevice aDevice)
: base("av-openhome-org", "NetworkMonitor", 1, aDevice)
{
OpenHome.Net.Core.Parameter param;
List<String> allowedValues = new List<String>();
iActionName = new OpenHome.Net.Core.Action("Name");
param = new ParameterString("Name", allowedValues);
iActionName.AddOutputParameter(param);
iActionPorts = new OpenHome.Net.Core.Action("Ports");
param = new ParameterUint("Sender");
iActionPorts.AddOutputParameter(param);
param = new ParameterUint("Receiver");
iActionPorts.AddOutputParameter(param);
param = new ParameterUint("Results");
iActionPorts.AddOutputParameter(param);
iName = new PropertyString("Name", NamePropertyChanged);
AddProperty(iName);
iSender = new PropertyUint("Sender", SenderPropertyChanged);
AddProperty(iSender);
iReceiver = new PropertyUint("Receiver", ReceiverPropertyChanged);
AddProperty(iReceiver);
iResults = new PropertyUint("Results", ResultsPropertyChanged);
AddProperty(iResults);
iPropertyLock = new Mutex();
}
示例4: EnableActionGetColor
/// <summary>
/// Signal that the action GetColor is supported.
/// </summary>
/// <remarks>The action's availability will be published in the device's service.xml.
/// GetColor must be overridden if this is called.</remarks>
protected void EnableActionGetColor()
{
OpenHome.Net.Core.Action action = new OpenHome.Net.Core.Action("GetColor");
action.AddInputParameter(new ParameterUint("Index"));
action.AddOutputParameter(new ParameterUint("Color"));
iDelegateGetColor = new ActionDelegate(DoGetColor);
EnableAction(action, iDelegateGetColor, GCHandle.ToIntPtr(iGch));
}
示例5: EnableActionGetPropertyUpdates
/// <summary>
/// Signal that the action GetPropertyUpdates is supported.
/// </summary>
/// <remarks>The action's availability will be published in the device's service.xml.
/// GetPropertyUpdates must be overridden if this is called.</remarks>
protected void EnableActionGetPropertyUpdates()
{
OpenHome.Net.Core.Action action = new OpenHome.Net.Core.Action("GetPropertyUpdates");
List<String> allowedValues = new List<String>();
action.AddInputParameter(new ParameterString("ClientId", allowedValues));
action.AddOutputParameter(new ParameterString("Updates", allowedValues));
iDelegateGetPropertyUpdates = new ActionDelegate(DoGetPropertyUpdates);
EnableAction(action, iDelegateGetPropertyUpdates, GCHandle.ToIntPtr(iGch));
}
示例6: EnableActionRenew
/// <summary>
/// Signal that the action Renew is supported.
/// </summary>
/// <remarks>The action's availability will be published in the device's service.xml.
/// Renew must be overridden if this is called.</remarks>
protected void EnableActionRenew()
{
OpenHome.Net.Core.Action action = new OpenHome.Net.Core.Action("Renew");
List<String> allowedValues = new List<String>();
action.AddInputParameter(new ParameterString("Sid", allowedValues));
action.AddInputParameter(new ParameterUint("RequestedDuration"));
action.AddOutputParameter(new ParameterUint("Duration"));
iDelegateRenew = new ActionDelegate(DoRenew);
EnableAction(action, iDelegateRenew, GCHandle.ToIntPtr(iGch));
}
示例7: CpProxyAvOpenhomeOrgTime1
/// <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();
}
示例8: CpProxyOpenhomeOrgSubscriptionLongPoll1
/// <summary>
/// Constructor
/// </summary>
/// <remarks>Use CpProxy::[Un]Subscribe() to enable/disable querying of state variable and reporting of their changes.</remarks>
/// <param name="aDevice">The device to use</param>
public CpProxyOpenhomeOrgSubscriptionLongPoll1(CpDevice aDevice)
: base("openhome-org", "SubscriptionLongPoll", 1, aDevice)
{
OpenHome.Net.Core.Parameter param;
List<String> allowedValues = new List<String>();
iActionSubscribe = new OpenHome.Net.Core.Action("Subscribe");
param = new ParameterString("ClientId", allowedValues);
iActionSubscribe.AddInputParameter(param);
param = new ParameterString("Udn", allowedValues);
iActionSubscribe.AddInputParameter(param);
param = new ParameterString("Service", allowedValues);
iActionSubscribe.AddInputParameter(param);
param = new ParameterUint("RequestedDuration");
iActionSubscribe.AddInputParameter(param);
param = new ParameterString("Sid", allowedValues);
iActionSubscribe.AddOutputParameter(param);
param = new ParameterUint("Duration");
iActionSubscribe.AddOutputParameter(param);
iActionUnsubscribe = new OpenHome.Net.Core.Action("Unsubscribe");
param = new ParameterString("Sid", allowedValues);
iActionUnsubscribe.AddInputParameter(param);
iActionRenew = new OpenHome.Net.Core.Action("Renew");
param = new ParameterString("Sid", allowedValues);
iActionRenew.AddInputParameter(param);
param = new ParameterUint("RequestedDuration");
iActionRenew.AddInputParameter(param);
param = new ParameterUint("Duration");
iActionRenew.AddOutputParameter(param);
iActionGetPropertyUpdates = new OpenHome.Net.Core.Action("GetPropertyUpdates");
param = new ParameterString("ClientId", allowedValues);
iActionGetPropertyUpdates.AddInputParameter(param);
param = new ParameterString("Updates", allowedValues);
iActionGetPropertyUpdates.AddOutputParameter(param);
}
示例9: CpProxyOpenhomeOrgTestDimmableLight1
/// <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();
}
示例10: CpProxyUpnpOrgSwitchPower1
/// <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();
}
示例11: CpProxyUpnpOrgRenderingControl1
/// <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);
//.........这里部分代码省略.........
示例12: CpProxyUpnpOrgScheduledRecording2
/// <summary>
/// Constructor
/// </summary>
/// <remarks>Use CpProxy::[Un]Subscribe() to enable/disable querying of state variable and reporting of their changes.</remarks>
/// <param name="aDevice">The device to use</param>
public CpProxyUpnpOrgScheduledRecording2(CpDevice aDevice)
: base("schemas-upnp-org", "ScheduledRecording", 2, aDevice)
{
OpenHome.Net.Core.Parameter param;
List<String> allowedValues = new List<String>();
iActionGetSortCapabilities = new OpenHome.Net.Core.Action("GetSortCapabilities");
param = new ParameterString("SortCaps", allowedValues);
iActionGetSortCapabilities.AddOutputParameter(param);
param = new ParameterUint("SortLevelCap");
iActionGetSortCapabilities.AddOutputParameter(param);
iActionGetPropertyList = new OpenHome.Net.Core.Action("GetPropertyList");
allowedValues.Add("A_ARG_TYPE_RecordSchedule");
allowedValues.Add("A_ARG_TYPE_RecordTask");
allowedValues.Add("A_ARG_TYPE_RecordScheduleParts");
param = new ParameterString("DataTypeID", allowedValues);
iActionGetPropertyList.AddInputParameter(param);
allowedValues.Clear();
param = new ParameterString("PropertyList", allowedValues);
iActionGetPropertyList.AddOutputParameter(param);
iActionGetAllowedValues = new OpenHome.Net.Core.Action("GetAllowedValues");
allowedValues.Add("A_ARG_TYPE_RecordSchedule");
allowedValues.Add("A_ARG_TYPE_RecordTask");
allowedValues.Add("A_ARG_TYPE_RecordScheduleParts");
param = new ParameterString("DataTypeID", allowedValues);
iActionGetAllowedValues.AddInputParameter(param);
allowedValues.Clear();
param = new ParameterString("Filter", allowedValues);
iActionGetAllowedValues.AddInputParameter(param);
param = new ParameterString("PropertyInfo", allowedValues);
iActionGetAllowedValues.AddOutputParameter(param);
iActionGetStateUpdateID = new OpenHome.Net.Core.Action("GetStateUpdateID");
param = new ParameterUint("Id");
iActionGetStateUpdateID.AddOutputParameter(param);
iActionBrowseRecordSchedules = new OpenHome.Net.Core.Action("BrowseRecordSchedules");
param = new ParameterString("Filter", allowedValues);
iActionBrowseRecordSchedules.AddInputParameter(param);
param = new ParameterUint("StartingIndex");
iActionBrowseRecordSchedules.AddInputParameter(param);
param = new ParameterUint("RequestedCount");
iActionBrowseRecordSchedules.AddInputParameter(param);
param = new ParameterString("SortCriteria", allowedValues);
iActionBrowseRecordSchedules.AddInputParameter(param);
param = new ParameterString("Result", allowedValues);
iActionBrowseRecordSchedules.AddOutputParameter(param);
param = new ParameterUint("NumberReturned");
iActionBrowseRecordSchedules.AddOutputParameter(param);
param = new ParameterUint("TotalMatches");
iActionBrowseRecordSchedules.AddOutputParameter(param);
param = new ParameterUint("UpdateID");
iActionBrowseRecordSchedules.AddOutputParameter(param);
iActionBrowseRecordTasks = new OpenHome.Net.Core.Action("BrowseRecordTasks");
param = new ParameterString("RecordScheduleID", allowedValues);
iActionBrowseRecordTasks.AddInputParameter(param);
param = new ParameterString("Filter", allowedValues);
iActionBrowseRecordTasks.AddInputParameter(param);
param = new ParameterUint("StartingIndex");
iActionBrowseRecordTasks.AddInputParameter(param);
param = new ParameterUint("RequestedCount");
iActionBrowseRecordTasks.AddInputParameter(param);
param = new ParameterString("SortCriteria", allowedValues);
iActionBrowseRecordTasks.AddInputParameter(param);
param = new ParameterString("Result", allowedValues);
iActionBrowseRecordTasks.AddOutputParameter(param);
param = new ParameterUint("NumberReturned");
iActionBrowseRecordTasks.AddOutputParameter(param);
param = new ParameterUint("TotalMatches");
iActionBrowseRecordTasks.AddOutputParameter(param);
param = new ParameterUint("UpdateID");
iActionBrowseRecordTasks.AddOutputParameter(param);
iActionCreateRecordSchedule = new OpenHome.Net.Core.Action("CreateRecordSchedule");
param = new ParameterString("Elements", allowedValues);
iActionCreateRecordSchedule.AddInputParameter(param);
param = new ParameterString("RecordScheduleID", allowedValues);
iActionCreateRecordSchedule.AddOutputParameter(param);
param = new ParameterString("Result", allowedValues);
iActionCreateRecordSchedule.AddOutputParameter(param);
param = new ParameterUint("UpdateID");
iActionCreateRecordSchedule.AddOutputParameter(param);
iActionDeleteRecordSchedule = new OpenHome.Net.Core.Action("DeleteRecordSchedule");
param = new ParameterString("RecordScheduleID", allowedValues);
iActionDeleteRecordSchedule.AddInputParameter(param);
iActionGetRecordSchedule = new OpenHome.Net.Core.Action("GetRecordSchedule");
param = new ParameterString("RecordScheduleID", allowedValues);
iActionGetRecordSchedule.AddInputParameter(param);
param = new ParameterString("Filter", allowedValues);
iActionGetRecordSchedule.AddInputParameter(param);
//.........这里部分代码省略.........
示例13: EnableActionGetProtocolInfo
/// <summary>
/// Signal that the action GetProtocolInfo is supported.
/// </summary>
/// <remarks>The action's availability will be published in the device's service.xml.
/// GetProtocolInfo must be overridden if this is called.</remarks>
protected void EnableActionGetProtocolInfo()
{
OpenHome.Net.Core.Action action = new OpenHome.Net.Core.Action("GetProtocolInfo");
action.AddOutputParameter(new ParameterRelated("Source", iPropertySourceProtocolInfo));
action.AddOutputParameter(new ParameterRelated("Sink", iPropertySinkProtocolInfo));
iDelegateGetProtocolInfo = new ActionDelegate(DoGetProtocolInfo);
EnableAction(action, iDelegateGetProtocolInfo, GCHandle.ToIntPtr(iGch));
}
示例14: EnableActionGetCurrentConnectionIDs
/// <summary>
/// Signal that the action GetCurrentConnectionIDs is supported.
/// </summary>
/// <remarks>The action's availability will be published in the device's service.xml.
/// GetCurrentConnectionIDs must be overridden if this is called.</remarks>
protected void EnableActionGetCurrentConnectionIDs()
{
OpenHome.Net.Core.Action action = new OpenHome.Net.Core.Action("GetCurrentConnectionIDs");
action.AddOutputParameter(new ParameterRelated("ConnectionIDs", iPropertyCurrentConnectionIDs));
iDelegateGetCurrentConnectionIDs = new ActionDelegate(DoGetCurrentConnectionIDs);
EnableAction(action, iDelegateGetCurrentConnectionIDs, GCHandle.ToIntPtr(iGch));
}
示例15: EnableActionListPresets
/// <summary>
/// Signal that the action ListPresets is supported.
/// </summary>
/// <remarks>The action's availability will be published in the device's service.xml.
/// ListPresets must be overridden if this is called.</remarks>
protected void EnableActionListPresets()
{
OpenHome.Net.Core.Action action = new OpenHome.Net.Core.Action("ListPresets");
List<String> allowedValues = new List<String>();
action.AddInputParameter(new ParameterUint("InstanceID"));
action.AddOutputParameter(new ParameterString("CurrentPresetNameList", allowedValues));
iDelegateListPresets = new ActionDelegate(DoListPresets);
EnableAction(action, iDelegateListPresets, GCHandle.ToIntPtr(iGch));
}