C# 클래스 AdapterLib.MockLightingServiceHandler

상속: ILSFHandler, INotifyPropertyChanged
파일 보기 프로젝트 열기: dotMorten/AllJoynDeviceSimulator 1 사용 예제들

Private Properties

프로퍼티 타입 설명
ApplyPulseEffectAsync void
OnPropertyChanged void
TransitionLampStateAsync void
kelvinToUInt System.UInt32

공개 메소드들

메소드 설명
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

비공개 메소드들

메소드 설명
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

메소드 상세

ClearLampFault() 공개 메소드

public ClearLampFault ( uint InLampFaultCode, uint &LampResponseCode, uint &OutLampFaultCode ) : uint
InLampFaultCode uint
LampResponseCode uint
OutLampFaultCode uint
리턴 uint

FromAhsb() 공개 정적인 메소드

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

FromJson() 공개 정적인 메소드

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

LampState_ApplyPulseEffect() 공개 메소드

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
리턴 uint

MockLightingServiceHandler() 공개 메소드

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
리턴 AllJoyn.Dsb

ToJson() 공개 메소드

public ToJson ( ) : string
리턴 string

TransitionLampState() 공개 메소드

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