C# Class OSAERest.api

Inheritance: IRestService
显示文件 Open project: opensourceautomation/Open-Source-Automation

Public Methods

Method Description
AddObject ( string name, string alias, string description, string type, string address, string container, int mintruestlevel, string enabled ) : System.Boolean
ExecuteMethod ( string name, string method, string param1, string param2 ) : System.Boolean
GetObject ( string name ) : OSAEObject
GetObjectState ( string name ) : OSAE.OSAEObjectState
GetObjectsByBaseType ( string type ) : OSAEObjectCollection
GetObjectsByContainer ( string container ) : OSAEObjectCollection
GetObjectsByType ( string type ) : OSAEObjectCollection
GetPlugins ( ) : OSAEObjectCollection
GetPropertyHistory ( string objName, string propName, string from, string to ) : List
GetStateHistory ( string objName, string from, string to ) : List
GetSystemStates ( ) : List
SendPattern ( string match ) : System.Boolean
SetObjectProperty ( string objName, string propName, string propVal ) : System.Boolean
SetObjectState ( string name, string state ) : System.Boolean
UpdateObject ( string oldName, string newName, string alias, string description, string type, string address, string container, int mintruestlevel, string enabled ) : System.Boolean
getPropertyList ( string objName, string propName ) : List

Private Methods

Method Description
StringToBoolean ( string passedvalue ) : bool
getProperties ( string objName ) : OSAEObjectPropertyCollection
oRecognizer_SpeechRecognized ( object sender, System e ) : void

Method Details

AddObject() public method

public AddObject ( string name, string alias, string description, string type, string address, string container, int mintruestlevel, string enabled ) : System.Boolean
name string
alias string
description string
type string
address string
container string
mintruestlevel int
enabled string
return System.Boolean

ExecuteMethod() public method

public ExecuteMethod ( string name, string method, string param1, string param2 ) : System.Boolean
name string
method string
param1 string
param2 string
return System.Boolean

GetObject() public method

public GetObject ( string name ) : OSAEObject
name string
return OSAE.OSAEObject

GetObjectState() public method

public GetObjectState ( string name ) : OSAE.OSAEObjectState
name string
return OSAE.OSAEObjectState

GetObjectsByBaseType() public method

public GetObjectsByBaseType ( string type ) : OSAEObjectCollection
type string
return OSAEObjectCollection

GetObjectsByContainer() public method

public GetObjectsByContainer ( string container ) : OSAEObjectCollection
container string
return OSAEObjectCollection

GetObjectsByType() public method

public GetObjectsByType ( string type ) : OSAEObjectCollection
type string
return OSAEObjectCollection

GetPlugins() public method

public GetPlugins ( ) : OSAEObjectCollection
return OSAEObjectCollection

GetPropertyHistory() public method

public GetPropertyHistory ( string objName, string propName, string from, string to ) : List
objName string
propName string
from string
to string
return List

GetStateHistory() public method

public GetStateHistory ( string objName, string from, string to ) : List
objName string
from string
to string
return List

GetSystemStates() public method

public GetSystemStates ( ) : List
return List

SendPattern() public method

public SendPattern ( string match ) : System.Boolean
match string
return System.Boolean

SetObjectProperty() public method

public SetObjectProperty ( string objName, string propName, string propVal ) : System.Boolean
objName string
propName string
propVal string
return System.Boolean

SetObjectState() public method

public SetObjectState ( string name, string state ) : System.Boolean
name string
state string
return System.Boolean

UpdateObject() public method

public UpdateObject ( string oldName, string newName, string alias, string description, string type, string address, string container, int mintruestlevel, string enabled ) : System.Boolean
oldName string
newName string
alias string
description string
type string
address string
container string
mintruestlevel int
enabled string
return System.Boolean

getPropertyList() public method

public getPropertyList ( string objName, string propName ) : List
objName string
propName string
return List