C# Class HA4IoT.Components.ComponentBase

Inheritance: IComponent
Mostra file Open project: chkr1011/CK.HomeAutomation

Public Methods

Method Description
ExportConfiguration ( ) : JToken
ExportStatus ( ) : JToken
GetState ( ) : ComponentState
GetSupportedStates ( ) : IList
HandleApiCall ( IApiContext apiContext ) : void

Protected Methods

Method Description
ComponentBase ( ComponentId id ) : System
OnActiveStateChanged ( ComponentState oldState, ComponentState newState ) : void

Method Details

ComponentBase() protected method

protected ComponentBase ( ComponentId id ) : System
id ComponentId
return System

ExportConfiguration() public method

public ExportConfiguration ( ) : JToken
return JToken

ExportStatus() public method

public ExportStatus ( ) : JToken
return JToken

GetState() public abstract method

public abstract GetState ( ) : ComponentState
return ComponentState

GetSupportedStates() public abstract method

public abstract GetSupportedStates ( ) : IList
return IList

HandleApiCall() public method

public HandleApiCall ( IApiContext apiContext ) : void
apiContext IApiContext
return void

OnActiveStateChanged() protected method

protected OnActiveStateChanged ( ComponentState oldState, ComponentState newState ) : void
oldState ComponentState
newState ComponentState
return void