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

com.applitools.eyes.universal.mapper.AppEnvironmentMapper Maven / Gradle / Ivy

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy