//--- IBluetoothRadio TestRadioStates(RadioModes expectedModes, RadioMode expectedMode, HardwareStatus expectedStatus, Android.Bluetooth.State state, Android.Bluetooth.ScanMode scanMode) { var values = new AndroidMockValues { Radio_Address = "10:23:45:67:89:ab", Radio_Name = "radio2222", Radio_State = state, Radio_ScanMode = scanMode, }; var f = AndroidTestInfra.Init(values); var r = f.DoGetPrimaryRadio(); // Assert.AreEqual(expectedMode, r.Mode, "r.Mode"); Assert.AreEqual(expectedModes, r.Modes, "r.Modes"); Assert.AreEqual(expectedStatus, r.HardwareStatus, "r.HardwareStatus"); return(r); }
public static void SetRadioMode(this Client player, RadioModes newMode) { switch (newMode) { case RadioModes.OFF: player.setData("RADIO_MODE", "off"); break; case RadioModes.LISTENING: player.setData("RADIO_MODE", "on"); break; case RadioModes.SPEAKING: player.setData("RADIO_MODE", "send"); break; default: break; } }