void Dance(Result result) { var sdk = new SDK(); switch (result) { case Result.success: sdk.Alert(BusylightColor.Green, BusylightSoundClip.FairyTale, BusylightVolume.Low); System.Threading.Thread.Sleep(3000); sdk.Light(BusylightColor.Off); break; case Result.failure: sdk.Alert(BusylightColor.Red, BusylightSoundClip.Funky, BusylightVolume.Low); System.Threading.Thread.Sleep(3000); sdk.Light(BusylightColor.Off); break; default: break; } // TODO: Use skype dll to set light to skype status afterwards. }
private static void alert(BusylightColor color, BusylightSoundClip sound = BusylightSoundClip.FairyTale, BusylightVolume volume = BusylightVolume.Middle) { sdk.Light(BusylightColor.Off); sdk.Alert(color, sound, volume); }