Newer
Older
CosmosServer / src / main / java / com / example / cosmos_serversb / jsons / MembersJson.java
package com.example.cosmos_serversb.jsons;

import java.util.HashSet;
import java.util.Set;

import com.example.cosmos_serversb.entities.*;


public class MembersJson {
    private Set<User> member = new HashSet<>();

    public MembersJson(){

    }

    public MembersJson(Group group){
        setMember(group.getMembers());
    }

    public MembersJson(Set<User> set){
        setMember(set);
    }

    private void setMember(Set<User> member) {
        this.member = member;
    }

    public Set<User> getMember() {
        return member;
    }
}