个性装扮展示完成
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
package com.example.modulevocal.conacts;
|
||||
|
||||
import android.app.Activity;
|
||||
|
||||
import com.qxcm.moduleutil.activity.IPresenter;
|
||||
import com.qxcm.moduleutil.activity.IView;
|
||||
import com.qxcm.moduleutil.bean.PersonaltyBean;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
public class PersonalityConacts {
|
||||
public interface View extends IView<Activity> {
|
||||
void getPersonaltyList(List<PersonaltyBean> personaltyBean);
|
||||
|
||||
}
|
||||
public interface IMePre extends IPresenter {
|
||||
void getPersonaltyList();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,33 @@
|
||||
package com.example.modulevocal.presenter;
|
||||
|
||||
import android.content.Context;
|
||||
|
||||
import com.example.modulevocal.conacts.PersonalityConacts;
|
||||
import com.qxcm.moduleutil.bean.PersonaltyBean;
|
||||
import com.qxcm.moduleutil.http.BaseObserver;
|
||||
import com.qxcm.moduleutil.presenter.BasePresenter;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import io.reactivex.disposables.Disposable;
|
||||
|
||||
public class PersonalityPresenter extends BasePresenter<PersonalityConacts.View> implements PersonalityConacts.IMePre{
|
||||
public PersonalityPresenter(PersonalityConacts.View view, Context context) {
|
||||
super(view, context);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void getPersonaltyList() {
|
||||
api.getPersonaltyList(new BaseObserver<List<PersonaltyBean>>() {
|
||||
@Override
|
||||
public void onSubscribe(Disposable d) {
|
||||
addDisposable(d);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onNext(List<PersonaltyBean> personaltyBeans) {
|
||||
MvpRef.get().getPersonaltyList(personaltyBeans);
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user