C# Class AdapterLib.MockLightingServiceHandler

Inheritance: ILSFHandler, INotifyPropertyChanged
Datei anzeigen Open project: dotMorten/AllJoynDeviceSimulator Class Usage Examples

Private Properties

Property Type Description
ApplyPulseEffectAsync void
OnPropertyChanged void
TransitionLampStateAsync void
kelvinToUInt System.UInt32

Public Methods

Method Description
ClearLampFault ( uint InLampFaultCode, uint &LampResponseCode, uint &OutLampFaultCode ) : uint
FromAhsb ( float hue, float saturation, float brightness ) : Windows.UI.Color
FromJson ( string json, Windows dispatcher ) : MockLightingServiceHandler
LampState_ApplyPulseEffect ( BridgeRT FromState, BridgeRT ToState, uint Period, uint Duration, uint NumPulses, ulong Timestamp, uint &LampResponseCode ) : uint
MockLightingServiceHandler ( string name, string id, bool isDimmable, bool supportsColor, bool supportsTemperature, Windows dispatcher ) : AllJoyn.Dsb
ToJson ( ) : string
TransitionLampState ( ulong Timestamp, BridgeRT NewState, uint TransitionPeriod, uint &LampResponseCode ) : uint

Private Methods

Method Description
ApplyPulseEffectAsync ( BridgeRT FromState, BridgeRT ToState, uint Period, uint Duration, uint NumPulses, ulong Timestamp ) : void

Change the state of the lamp at the specified time, between the specified OnOff, Brightness, Hue, Saturation, and ColorTemp values. Pulse for the specified number of times, at the specified duration

OnPropertyChanged ( [ propertyName = null ) : void
TransitionLampStateAsync ( ulong Timestamp, BridgeRT NewState, uint TransitionPeriod ) : void
kelvinToUInt ( double kelvin ) : UInt32

Method Details

ClearLampFault() public method

public ClearLampFault ( uint InLampFaultCode, uint &LampResponseCode, uint &OutLampFaultCode ) : uint
InLampFaultCode uint
LampResponseCode uint
OutLampFaultCode uint
return uint

FromAhsb() public static method

public static FromAhsb ( float hue, float saturation, float brightness ) : Windows.UI.Color
hue float
saturation float
brightness float
return Windows.UI.Color

FromJson() public static method

public static FromJson ( string json, Windows dispatcher ) : MockLightingServiceHandler
json string
dispatcher Windows
return MockLightingServiceHandler

LampState_ApplyPulseEffect() public method

public LampState_ApplyPulseEffect ( BridgeRT FromState, BridgeRT ToState, uint Period, uint Duration, uint NumPulses, ulong Timestamp, uint &LampResponseCode ) : uint
FromState BridgeRT
ToState BridgeRT
Period uint
Duration uint
NumPulses uint
Timestamp ulong
LampResponseCode uint
return uint

MockLightingServiceHandler() public method

public MockLightingServiceHandler ( string name, string id, bool isDimmable, bool supportsColor, bool supportsTemperature, Windows dispatcher ) : AllJoyn.Dsb
name string
id string
isDimmable bool
supportsColor bool
supportsTemperature bool
dispatcher Windows
return AllJoyn.Dsb

ToJson() public method

public ToJson ( ) : string
return string

TransitionLampState() public method

public TransitionLampState ( ulong Timestamp, BridgeRT NewState, uint TransitionPeriod, uint &LampResponseCode ) : uint
Timestamp ulong
NewState BridgeRT
TransitionPeriod uint
LampResponseCode uint
return uint