Esempio n. 1
0
        private static void PlayRandomEffect(AuraMethod method, SynchronousOptionInput syncOption, UpsOptionInput upsOption)
        {
            Console.Clear();
            PrintLine("Setting all colors...");
            if (method == AuraMethod.AuraDev)
            {
                if (syncOption == SynchronousOptionInput.Synchronous)
                {
                    AuraDev.PlayRandomEffectSync(GetUps(upsOption));
                }
                else
                {
                    AuraDev.PlayRandomEffectAsync(GetUps(upsOption));
                }
            }

            if (method == AuraMethod.AuraSdk)
            {
                if (syncOption == SynchronousOptionInput.Synchronous)
                {
                    AuraSync.PlayRandomEffectSync(GetUps(upsOption));
                }
                else
                {
                    AuraSync.PlayRandomEffectAsync(GetUps(upsOption));
                }
            }
        }
Esempio n. 2
0
        private static void SetAllColors(AuraMethod method, Color color)
        {
            Console.Clear();
            PrintLine("Setting all colors...");
            if (method == AuraMethod.AuraDev)
            {
                AuraDev.ChangeAllDevicesColor(color);
            }
            if (method == AuraMethod.AuraSdk)
            {
                AuraSync.ChangeAllDevicesColor(color);
            }

            ContinueLine();
        }
Esempio n. 3
0
 private static void PrintDeviceInfo()
 {
     AuraDev.PrintDeviceInfo();
     ContinueLine();
 }