package com.ubt.jimu.user.setting.presenter; import com.ubt.jimu.JimuApplication; import com.ubt.jimu.R; import com.ubt.jimu.base.mvp.BaseRxView; import com.ubt.jimu.base.mvp.RxPresenter; import com.ubt.jimu.blockly.Utils; import com.ubt.jimu.user.model.TeachModel; import java.util.ArrayList; import java.util.List; /* loaded from: classes2.dex */ public class TeachPresenter extends RxPresenter { private String b; private String a = "jimu/help"; private String c = "https://jimu.ubtrobot.com/%s/%s/%s"; public interface TeachView extends BaseRxView { void f(List list); } public void a() { this.b = JimuApplication.l().c(); if (!this.b.equals("CN")) { this.b = "EN"; } ArrayList arrayList = new ArrayList(); TeachModel teachModel = new TeachModel(); teachModel.a(JimuApplication.l().getString(R.string.setting_study_component)); teachModel.b(String.format(this.c, this.a, this.b, "Component.html")); arrayList.add(teachModel); TeachModel teachModel2 = new TeachModel(); teachModel2.a(JimuApplication.l().getString(R.string.setting_study_assemble)); teachModel2.b(String.format(this.c, this.a, this.b, "Build.html")); teachModel2.c("https://video.ubtrobot.com/jimu/videos/build.mp4"); teachModel2.a(R.drawable.setting_study_play); arrayList.add(teachModel2); TeachModel teachModel3 = new TeachModel(); teachModel3.b(String.format(this.c, this.a, this.b, "Connect.html")); teachModel3.a(JimuApplication.l().getString(R.string.setting_study_connect)); arrayList.add(teachModel3); TeachModel teachModel4 = new TeachModel(); teachModel4.b(String.format(this.c, this.a, this.b, "Actions.html")); teachModel4.c("https://video.ubtrobot.com/jimu/videos/action.mp4"); teachModel4.a(R.drawable.setting_study_play); teachModel4.a(JimuApplication.l().getString(R.string.setting_study_actions)); arrayList.add(teachModel4); TeachModel teachModel5 = new TeachModel(); teachModel5.a(JimuApplication.l().getString(R.string.setting_study_programming)); teachModel5.b(Utils.getBlocklyHelpUrl()); arrayList.add(teachModel5); TeachModel teachModel6 = new TeachModel(); teachModel6.a(JimuApplication.l().getString(R.string.setting_qa)); String g = JimuApplication.l().g(); if (!"zh-hans".equals(g)) { g = "en"; } teachModel6.b(String.format("https://video.ubtrobot.com/jimu/product/h5/QA/index_%s.html", g)); arrayList.add(teachModel6); if (getView() != null) { getView().f(arrayList); } } }