-
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 #856 from bounswe/main
Deploy recent changes 26.11.2023 16.34
- Loading branch information
Showing
3 changed files
with
106 additions
and
6 deletions.
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
54 changes: 54 additions & 0 deletions
54
...ackend/src/main/java/com/app/gamereview/dto/response/group/GetGroupDetailResponseDto.java
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,54 @@ | ||
package com.app.gamereview.dto.response.group; | ||
|
||
import com.app.gamereview.enums.MembershipPolicy; | ||
import com.app.gamereview.model.Tag; | ||
import lombok.Getter; | ||
import lombok.Setter; | ||
|
||
import java.time.LocalDateTime; | ||
import java.util.ArrayList; | ||
import java.util.List; | ||
|
||
|
||
@Getter | ||
@Setter | ||
public class GetGroupDetailResponseDto { | ||
private String id; | ||
|
||
private String title; | ||
|
||
private String description; | ||
|
||
private MembershipPolicy membershipPolicy; | ||
|
||
private List<Tag> tags = new ArrayList<>(); // list of tags | ||
|
||
private String gameId; // id of related game | ||
|
||
private String forumId; // id of the forum of the group | ||
|
||
private int quota; | ||
|
||
private List<MemberInfo> moderators = new ArrayList<>(); // userIds of the moderators | ||
|
||
private List<MemberInfo> members = new ArrayList<>(); // userIds of the members | ||
|
||
private List<MemberInfo> bannedMembers = new ArrayList<>(); // userIds of the banned members | ||
|
||
private Boolean avatarOnly; | ||
|
||
private LocalDateTime createdAt; | ||
|
||
private Boolean userJoined; | ||
|
||
public static class MemberInfo { | ||
public String id; | ||
|
||
public String username; | ||
|
||
public String photoUrl; | ||
} | ||
public void populateTag(Tag tag){ | ||
this.tags.add(tag); | ||
} | ||
} |
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