Newer
Older
CosmosServer / src / main / java / com / example / cosmos_serversb / jsons / MembersJson.java
  1. package com.example.cosmos_serversb.jsons;
  2.  
  3. import java.util.HashSet;
  4. import java.util.Set;
  5.  
  6. import com.example.cosmos_serversb.entities.*;
  7.  
  8.  
  9. public class MembersJson {
  10. private Set<User> member = new HashSet<>();
  11.  
  12. public MembersJson(){
  13.  
  14. }
  15.  
  16. public MembersJson(Group group){
  17. setMember(group.getMembers());
  18. }
  19.  
  20. public MembersJson(Set<User> set){
  21. setMember(set);
  22. }
  23.  
  24. private void setMember(Set<User> member) {
  25. this.member = member;
  26. }
  27.  
  28. public Set<User> getMember() {
  29. return member;
  30. }
  31. }