com.applitools.eyes.universal.mapper.AppEnvironmentMapper Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of eyes-sdk-core-java5 Show documentation
Show all versions of eyes-sdk-core-java5 Show documentation
Applitools Eyes SDK base for Java
package com.applitools.eyes.universal.mapper;
import com.applitools.eyes.RectangleSize;
import com.applitools.eyes.universal.dto.AppEnvironmentDto;
/**
* Environment mapper.
*/
public class AppEnvironmentMapper {
public static AppEnvironmentDto toAppEnvironmentMapper(String os, String hostingApp, RectangleSize viewportSize,
String deviceName, String osInfo, String hostingAppInfo) {
AppEnvironmentDto environmentDto = new AppEnvironmentDto();
environmentDto.setOs(os);
environmentDto.setDisplayOs(osInfo);
environmentDto.setHostingApp(hostingApp);
environmentDto.setDisplayHostingApp(hostingAppInfo);
environmentDto.setDeviceName(deviceName);
environmentDto.setViewportSize(ViewportSizeMapper.toViewportSizeDto(viewportSize));
return environmentDto;
}
}