public static PlayerUser mapFromAdminDto(PlayerUserDto dto) { PlayerUser playerUser = new PlayerUser(); playerUser.setPlayer(dto.getPlayer()); playerUser.setEmail(dto.getEmail()); playerUser.setImageUrl(dto.getImageUrl()); playerUser.setEmailNotification(dto.getEmailNotification()); dto.setMeetingPointNotification(playerUser.getMeetingPointNotification()); dto.setPushBulletApiKey(playerUser.getPushBulletApiKey()); return playerUser; }
public static PlayerUserDto mapToDto(PlayerUser playerUser) { PlayerUserDto dto = new PlayerUserDto(); dto.setPlayer(playerUser.getPlayer()); dto.setEmail(playerUser.getEmail()); dto.setAppUserEmail(playerUser.getAppUserEmail()); dto.setImageUrl(playerUser.getImageUrl()); dto.setEmailNotification(playerUser.getEmailNotification()); dto.setMeetingPointNotification(playerUser.getMeetingPointNotification()); dto.setPushBulletApiKey(playerUser.getPushBulletApiKey()); return dto; }