41 lines
1.3 KiB
Java
41 lines
1.3 KiB
Java
package com.ubt.jimu.community.presenter;
|
|
|
|
import androidx.viewpager.widget.ViewPager;
|
|
import com.ubt.jimu.base.http.ApiObserver;
|
|
import com.ubt.jimu.base.http.manager.CommunityManager;
|
|
import com.ubt.jimu.community.contract.SearchRecommendContact$Presenter;
|
|
import com.ubt.jimu.community.contract.SearchRecommendContact$View;
|
|
import com.ubt.jimu.community.view.adapter.search.SearchRecommendAdapter;
|
|
import com.ubt.jimu.community.view.fragment.RecommendFragment;
|
|
import com.ubtech.utils.StringUtils;
|
|
|
|
/* loaded from: classes.dex */
|
|
public class SearchPresenter implements SearchRecommendContact$Presenter {
|
|
private SearchRecommendContact$View a;
|
|
|
|
public SearchPresenter(SearchRecommendContact$View searchRecommendContact$View) {
|
|
this.a = searchRecommendContact$View;
|
|
}
|
|
|
|
public void a() {
|
|
this.a.B();
|
|
this.a.g(2);
|
|
this.a.g(0);
|
|
}
|
|
|
|
public void a(String str) {
|
|
if (StringUtils.e(str)) {
|
|
return;
|
|
}
|
|
this.a.h(str);
|
|
}
|
|
|
|
public void a(ViewPager viewPager, int i) {
|
|
viewPager.setCurrentItem(i);
|
|
}
|
|
|
|
public void a(RecommendFragment recommendFragment, SearchRecommendAdapter searchRecommendAdapter, ApiObserver apiObserver) {
|
|
CommunityManager.create().presentSearchResult(apiObserver);
|
|
}
|
|
}
|