package com.bloatit.framework;

import com.bloatit.model.data.DaoJoinGroupInvitation;

public class JoinGroupInvitation extends Identifiable {

    private DaoJoinGroupInvitation dao;

    public Member getSender() {
        return Member.create(dao.getSender());
    }

    public Member getReciever() {
        return Member.create(dao.getReciever());
    }

    public Group getGroup() {
        return Group.create(dao.getGroup());
    }

    public void accept() {
        dao.accept();
    }

    public void refuse() {
        dao.refuse();
    }

    @Override
    public int getId() {
        return dao.getId();
    }

}

@@ -176,16 +176,301 @@
 ion dao;
+%0A    %0A    private JoinGroupInvitation(DaoJoinGroupInvitation dao) %7B%0A        this.dao = dao;%0A    %7D%0A%0A    public static JoinGroupInvitation create(DaoJoinGroupInvitation dao)%7B%0A        if ( dao != null)%7B%0A            return new JoinGroupInvitation(dao);%0A        %7D%0A        return null;%0A    %7D
 %0A%0A    pu

fix create method