コード例 #1
0
 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;
 }
コード例 #2
0
 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;
 }