com.applitools.eyes.selenium.universal.mapper.IosDeviceInfoMapper Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of eyes-selenium-java5 Show documentation
Show all versions of eyes-selenium-java5 Show documentation
Applitools Eyes SDK for Selenium Java WebDriver
package com.applitools.eyes.selenium.universal.mapper;
import com.applitools.eyes.universal.dto.IosDeviceInfoDto;
import com.applitools.eyes.visualgrid.model.IosDeviceInfo;
/**
* IosDeviceInfoMapper
*/
public class IosDeviceInfoMapper {
public static IosDeviceInfoDto toIosDeviceInfoDto(IosDeviceInfo iosDeviceInfo) {
if (iosDeviceInfo == null) {
return null;
}
IosDeviceInfoDto iosDeviceInfoDto = new IosDeviceInfoDto();
iosDeviceInfoDto.setDeviceName(iosDeviceInfo.getDeviceName());
iosDeviceInfoDto.setScreenOrientation(iosDeviceInfo.getScreenOrientation().getOrientation());
iosDeviceInfoDto.setVersion(iosDeviceInfo.getVersion().getVersion());
return iosDeviceInfoDto;
}
}