diff --git a/src/main/java/space/space_spring/dto/VoiceRoom/VoiceRoomDtoList.java b/src/main/java/space/space_spring/dto/VoiceRoom/VoiceRoomListDto.java similarity index 92% rename from src/main/java/space/space_spring/dto/VoiceRoom/VoiceRoomDtoList.java rename to src/main/java/space/space_spring/dto/VoiceRoom/VoiceRoomListDto.java index 708ce962..ffc5ad9e 100644 --- a/src/main/java/space/space_spring/dto/VoiceRoom/VoiceRoomDtoList.java +++ b/src/main/java/space/space_spring/dto/VoiceRoom/VoiceRoomListDto.java @@ -11,16 +11,16 @@ import java.util.stream.Collectors; import java.util.stream.Stream; -public class VoiceRoomDtoList { +public class VoiceRoomListDto { private List roomDtoList; - public VoiceRoomDtoList(List roomDtos){ + public VoiceRoomListDto(List roomDtos){ this.roomDtoList=roomDtos; } - public static VoiceRoomDtoList from(List voiceRoomEntityList){ + public static VoiceRoomListDto from(List voiceRoomEntityList){ List roomDtos = convertRoomDtoListByVoiceRoom(voiceRoomEntityList); - return new VoiceRoomDtoList(roomDtos); + return new VoiceRoomListDto(roomDtos); } public static List convertRoomDtoListByVoiceRoom(List voiceRoomList){ diff --git a/src/main/java/space/space_spring/service/VoiceRoomService.java b/src/main/java/space/space_spring/service/VoiceRoomService.java index e6e726b7..09ab1d90 100644 --- a/src/main/java/space/space_spring/service/VoiceRoomService.java +++ b/src/main/java/space/space_spring/service/VoiceRoomService.java @@ -76,8 +76,8 @@ public List getVoiceRoomInfoListConcurrency(long //불변 list로 변환 List roomResponses = Collections.unmodifiableList(roomResponsesTemp); - VoiceRoomDtoList voiceRoomDtoList=VoiceRoomDtoList.from(voiceRoomDataList); - voiceRoomDtoList.setActiveRoom(roomResponsesTemp); + VoiceRoomListDto voiceRoomListDto = VoiceRoomListDto.from(voiceRoomDataList); + voiceRoomListDto.setActiveRoom(roomResponsesTemp); //ToDo setRoomDto 함수를 RoomDtoList 객체로 이동 @@ -100,10 +100,10 @@ public List getVoiceRoomInfoListConcurrency(long //#2 convert if(limit==null||limit<=0) { - return voiceRoomDtoList.convertVoicRoomInfoList(); + return voiceRoomListDto.convertVoicRoomInfoList(); //return GetVoiceRoomList.VoiceRoomInfo.convertRoomDtoList(roomDtoList); }else{ - return voiceRoomDtoList.convertVoicRoomInfoList(limit); + return voiceRoomListDto.convertVoicRoomInfoList(limit); //return GetVoiceRoomList.VoiceRoomInfo.convertRoomDtoList(roomDtoList,limit); } //return null;