public static ApiRequestMessage FromDevice(AndroidDevice device)
        {
            var requestMessage = new ApiRequestMessage
            {
                PhoneId = device.PhoneGuid.ToString(), Guid = device.DeviceGuid, DeviceId = device.DeviceId
            };

            return(requestMessage);
        }
        public static AndroidDevice GetRandomAndroidDevice()
        {
            AndroidDevice device;

            do
            {
                var randomDeviceIndex = Rnd.Next(0, DevicesNames.Count);
                device            = AndroidDeviceSets.ElementAt(randomDeviceIndex).Value;
                device.PhoneGuid  = Guid.NewGuid();
                device.DeviceGuid = Guid.NewGuid();
                device.DeviceId   = ApiRequestMessage.GenerateDeviceIdFromGuid(device.DeviceGuid);
            } while (lastDevice != null && device.DeviceId == lastDevice.DeviceId);

            lastDevice = device;
            return(device);
        }