-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #13 from mujik-tigers/docs/fetch-rooms
merge to dev
- Loading branch information
Showing
7 changed files
with
177 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
package site.youtogether.room.dto; | ||
|
||
import lombok.Builder; | ||
import lombok.Getter; | ||
|
||
@Getter | ||
public class RoomDetail { | ||
|
||
private String roomCode; | ||
private String roomTitle; | ||
private String videoTitle; | ||
private String videoThumbnail; | ||
private int capacity; | ||
private int currentParticipant; | ||
|
||
@Builder | ||
public RoomDetail(String roomCode, String roomTitle, String videoTitle, String videoThumbnail, int capacity, int currentParticipant) { | ||
this.roomCode = roomCode; | ||
this.roomTitle = roomTitle; | ||
this.videoTitle = videoTitle; | ||
this.videoThumbnail = videoThumbnail; | ||
this.capacity = capacity; | ||
this.currentParticipant = currentParticipant; | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
package site.youtogether.room.dto; | ||
|
||
import java.util.List; | ||
|
||
import lombok.Builder; | ||
import lombok.Getter; | ||
|
||
@Getter | ||
public class RoomList { | ||
|
||
private int pageNumber; | ||
private int pageSize; | ||
private int totalData; | ||
private int totalPage; | ||
private boolean hasPrevious; | ||
private boolean hasNext; | ||
|
||
private List<RoomDetail> rooms; | ||
|
||
@Builder | ||
public RoomList(int pageNumber, int pageSize, int totalData, int totalPage, boolean hasPrevious, boolean hasNext, List<RoomDetail> rooms) { | ||
this.pageNumber = pageNumber; | ||
this.pageSize = pageSize; | ||
this.totalData = totalData; | ||
this.totalPage = totalPage; | ||
this.hasPrevious = hasPrevious; | ||
this.hasNext = hasNext; | ||
this.rooms = rooms; | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters