Newer
Older
CosmosServer / src / main / java / com / example / cosmos_serversb / entities / Group.java
//このクラスは仮です
package com.example.cosmos_serversb.entities;

import java.util.ArrayList;

public class Group {
    private String gId, uri, name;
    //private ArrayList<User> members;
    private ArrayList<Request> requests;


    private Group(){

    }

    public Group(String gId, String uri, String name, String uId){
        setGid(gId);
        setUri(uri);
        setName(name);
        //addMemberByUid(uId);
    }

    private void setGid(String gId){
        this.gId = gId;
    }

    public String getGid(){
        return gId;
    }

    private void setUri(String uri){
        this.uri = uri;
    }

    public String getUriByGid(String gId){
        return uri;
    }

    public void setName(String name){
        this.name = name;
    }

    public String getNameByGid(String gId){
        return name;
    }

    /*メンバー*/
    //public ArrayList<User> getMembersList(){
    //    return null;
    //}

    //public void addMemberByUid(String uId){
    //
    //    members.add(user);
    //}

    //public DeleteResult deleteMember(String uid){
    //    members.remove(members.indexOf(uid));
    //    return null;
    //}

    /*リクエスト*/
//


}