Skip to content

Commit

Permalink
[refactoring] rename VoicRoomDtoList->VoiceRoomListDto
Browse files Browse the repository at this point in the history
  • Loading branch information
drbug2000 committed Oct 8, 2024
1 parent dfb2a27 commit 6b9348c
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,16 +11,16 @@
import java.util.stream.Collectors;
import java.util.stream.Stream;

public class VoiceRoomDtoList {
public class VoiceRoomListDto {
private List<RoomDto> roomDtoList;

public VoiceRoomDtoList(List<RoomDto> roomDtos){
public VoiceRoomListDto(List<RoomDto> roomDtos){
this.roomDtoList=roomDtos;
}

public static VoiceRoomDtoList from(List<VoiceRoom> voiceRoomEntityList){
public static VoiceRoomListDto from(List<VoiceRoom> voiceRoomEntityList){
List<RoomDto> roomDtos = convertRoomDtoListByVoiceRoom(voiceRoomEntityList);
return new VoiceRoomDtoList(roomDtos);
return new VoiceRoomListDto(roomDtos);
}

public static List<RoomDto> convertRoomDtoListByVoiceRoom(List<VoiceRoom> voiceRoomList){
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -76,8 +76,8 @@ public List<GetVoiceRoomList.VoiceRoomInfo> getVoiceRoomInfoListConcurrency(long
//๋ถˆ๋ณ€ list๋กœ ๋ณ€ํ™˜
List<LivekitModels.Room> roomResponses = Collections.unmodifiableList(roomResponsesTemp);

VoiceRoomDtoList voiceRoomDtoList=VoiceRoomDtoList.from(voiceRoomDataList);
voiceRoomDtoList.setActiveRoom(roomResponsesTemp);
VoiceRoomListDto voiceRoomListDto = VoiceRoomListDto.from(voiceRoomDataList);
voiceRoomListDto.setActiveRoom(roomResponsesTemp);


//ToDo setRoomDto ํ•จ์ˆ˜๋ฅผ RoomDtoList ๊ฐ์ฒด๋กœ ์ด๋™
Expand All @@ -100,10 +100,10 @@ public List<GetVoiceRoomList.VoiceRoomInfo> 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;
Expand Down

0 comments on commit 6b9348c

Please sign in to comment.