public LampDataObject GetStatus() { LightService svc = CurrentService; LampDataObject obj = new LampDataObject { burn = svc.On }; return(obj); }
public void SetStatus(LampDataObject obj) { LightService svc = CurrentService; svc.On = obj.burn; }