com.applitools.eyes.universal.mapper.AccessibilitySettingsMapper 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.AccessibilitySettings;
import com.applitools.eyes.universal.dto.AccessibilitySettingsDto;
/**
* Accessibility settings mapper
*/
public class AccessibilitySettingsMapper {
public static AccessibilitySettingsDto toAccessibilitySettingsDto(AccessibilitySettings accessibilitySettings) {
if (accessibilitySettings == null) {
return null;
}
AccessibilitySettingsDto accessibilitySettingsDto = new AccessibilitySettingsDto();
accessibilitySettingsDto.setLevel(accessibilitySettings.getLevel().name());
accessibilitySettingsDto.setVersion(accessibilitySettings.getGuidelinesVersion().name());
return accessibilitySettingsDto;
}
}