package com.naijab.nextzytimeline.ui.people.addform;

import android.content.Context;

import com.naijab.nextzytimeline.base.BaseMvpInterface;
import com.naijab.nextzytimeline.ui.people.model.PeopleModel;

public class AddPeopleFragmentInterface {

    public interface View extends BaseMvpInterface.View {

        void response(String message);

        void saveIsFinish(boolean isSuccess);

    }

    public interface Presenter extends BaseMvpInterface.Presenter<AddPeopleFragmentInterface.View> {

        void saveIntoRealm(PeopleModel peopleModel, Context context);

    }
}

package com.naijab.nextzytimeline.ui.people.addform;

import android.content.Context;

import com.naijab.nextzytimeline.base.BaseMvpInterface;
import com.naijab.nextzytimeline.ui.people.model.PeopleModel;

public class AddPeopleFragmentInterface {

    public interface View extends BaseMvpInterface.View {

        void response(String message);

        void saveIsFinish(boolean isSuccess);

    }

    public interface Presenter extends BaseMvpInterface.Presenter<AddPeopleFragmentInterface.View> {

        void saveIntoRealm(PeopleModel peopleModel, Context context);

        void deleteAllRealm(Context context);

    }
}

Add interface deleteAllRealm