C# Class OpenHome.Net.Core.Action

(Service) Action
Each service has 0..n of these. Each action has 0..n input parameters and 0..m output parameters. Each parameter must be either input or output.
Inheritance: IDisposable
Afficher le fichier Open project: openhome/ohNet Class Usage Examples

Méthodes publiques

Méthode Description
Action ( String aName ) : System

Constructor

AddInputParameter ( Parameter aParameter ) : void

Add an input parameter

AddOutputParameter ( Parameter aParameter ) : void

Add an output parameter

Dispose ( ) : void
InputParameter ( int aIndex ) : Parameter

Retrieve an input parameter

Name ( ) : String

Query the name of the action

OutputParameter ( int aIndex ) : Parameter

Retrieve an output parameter

Private Methods

Méthode Description
Handle ( ) : IntPtr
ServiceActionAddInputParameter ( IntPtr aAction, IntPtr aParameter ) : void
ServiceActionAddOutputParameter ( IntPtr aAction, IntPtr aParameter ) : void
ServiceActionCreate ( IntPtr aName ) : IntPtr
ServiceActionDestroy ( IntPtr aAction ) : void
ServiceActionGetName ( IntPtr aAction, IntPtr &aName, uint &aLen ) : void

Method Details

Action() public méthode

Constructor
public Action ( String aName ) : System
aName String Action name
Résultat System

AddInputParameter() public méthode

Add an input parameter
public AddInputParameter ( Parameter aParameter ) : void
aParameter Parameter Input parameter. Ownership is passed to the action
Résultat void

AddOutputParameter() public méthode

Add an output parameter
public AddOutputParameter ( Parameter aParameter ) : void
aParameter Parameter Output parameter. Ownership is passed to the action
Résultat void

Dispose() public méthode

public Dispose ( ) : void
Résultat void

InputParameter() public méthode

Retrieve an input parameter
public InputParameter ( int aIndex ) : Parameter
aIndex int (Zero-based) Index of the parameter
Résultat Parameter

Name() public méthode

Query the name of the action
public Name ( ) : String
Résultat String

OutputParameter() public méthode

Retrieve an output parameter
public OutputParameter ( int aIndex ) : Parameter
aIndex int (Zero-based) Index of the parameter
Résultat Parameter