private object SwitchQuery(int QueryIndex) { switch (QueryIndex) { case 0: return(client.GetSpeed()); case 1: return(client.GetBattery()); case 2: return(client.GetTime()); case 3: return(client.GetWifiSignalStrength()); case 4: return(client.GetSDK()); case 5: return(client.GetSerialNumber()); default: return(String.Empty); } }