public MockLightingServiceHandler(string name, string id, bool isDimmable, bool supportsColor, bool supportsTemperature, Windows.UI.Core.CoreDispatcher dispatcher)
{
this.dispatcher = dispatcher;
Name = name;
Id = id;
LampDetails_Color = supportsColor;
LampDetails_ColorRenderingIndex = 80;
LampDetails_Dimmable = isDimmable;
LampDetails_HasEffects = true;
LampDetails_IncandescentEquivalent = 60;
LampDetails_LampBaseType = (uint)1;
LampDetails_LampBeamAngle = 130;
LampDetails_LampID = id;
LampDetails_LampType = (uint) 1;
LampDetails_Make = (uint)AdapterLib.LsfEnums.LampMake.MAKE_OEM1;
LampDetails_MaxLumens = 1000;
LampDetails_MaxTemperature = (uint)(supportsTemperature ? 9000 : 2800);
LampDetails_MaxVoltage = 120;
LampDetails_MinTemperature = 2800;
colorTemp = kelvinToUInt(LampDetails_MinTemperature);
LampDetails_MinVoltage = 100;
LampDetails_Model = 1;
LampDetails_Type = (uint)AdapterLib.LsfEnums.DeviceType.TYPE_LAMP;
LampDetails_VariableColorTemp = supportsTemperature;
LampDetails_Version = 1;
LampDetails_Wattage = 7;
if (!supportsColor) saturation = 0;
_LampStateChanged = new AdapterSignal(Constants.LAMP_STATE_CHANGED_SIGNAL_NAME);
_LampStateChanged.Params.Add(new AdapterValue("LampID", id));
}
[DataMember]