All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.applitools.eyes.selenium.universal.mapper.IosDeviceInfoMapper Maven / Gradle / Ivy

There is a newer version: 5.73.0
Show newest version
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;

  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy