Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package p382s3;
- import android.content.Context;
- import android.os.Bundle;
- import android.text.TextUtils;
- import android.util.Log;
- import com.google.common.primitives.Ints;
- import com.google.firebase.perf.network.FirebasePerfOkHttpClient;
- import com.google.gson.JsonSyntaxException;
- import com.jeuxvideo.api.utils.JVGsonConverter;
- import com.jeuxvideo.api.web.JVApiService;
- import com.jeuxvideo.models.api.AssetCallback;
- import com.jeuxvideo.models.api.JVCallback;
- import com.jeuxvideo.models.api.ads.SponsoWrapperWrapper;
- import com.jeuxvideo.models.api.comment.UserComment;
- import com.jeuxvideo.models.api.common.JVBean;
- import com.jeuxvideo.models.api.forum.Forum;
- import com.jeuxvideo.models.api.forum.Topic;
- import com.jeuxvideo.models.api.games.Game;
- import com.jeuxvideo.models.api.news.News;
- import com.jeuxvideo.models.api.report.Report;
- import com.jeuxvideo.models.api.review.AbstractReview;
- import com.jeuxvideo.models.api.user.Favorites;
- import com.jeuxvideo.models.api.user.Machines;
- import com.jeuxvideo.models.api.user.NewsLetters;
- import com.jeuxvideo.models.api.user.Page;
- import com.jeuxvideo.models.api.user.Profile;
- import com.jeuxvideo.models.api.user.User;
- import com.jeuxvideo.models.api.user.UserLogin;
- import com.jeuxvideo.models.api.user.UserRegister;
- import com.jeuxvideo.models.api.user.UserValidate;
- import com.jeuxvideo.models.events.api.AssetLoadEvent;
- import com.jeuxvideo.models.events.api.JVActionEvent;
- import com.jeuxvideo.models.events.api.SentRequestEvent;
- import com.jeuxvideo.models.interfaces.IUserText;
- import java.io.File;
- import okhttp3.MediaType;
- import okhttp3.OkHttpClient;
- import okhttp3.Request;
- import okhttp3.RequestBody;
- import org.greenrobot.eventbus.ThreadMode;
- import retrofit2.Call;
- import sb.C17827c;
- import sb.Subscribe;
- /* renamed from: s3.f */
- /* loaded from: /home/alex/Téléchargements/com.jeuxvideo-deobfuscated/classes5.dex */
- public class JVApiManager {
- /* renamed from: d */
- private static final String f37111d = "f";
- /* renamed from: e */
- private static final MediaType f37112e = MediaType.parse("application/octet-stream");
- /* renamed from: a */
- private final Context f37113a;
- /* renamed from: b */
- private JVApiService f37114b;
- /* renamed from: c */
- private final OkHttpClient f37115c;
- public JVApiManager(Context context, JVApiService jVApiService, OkHttpClient okHttpClient) {
- this.f37113a = context.getApplicationContext();
- this.f37114b = jVApiService;
- this.f37115c = okHttpClient;
- }
- /* renamed from: a */
- private String m5945a(JVActionEvent jVActionEvent) {
- int i = jVActionEvent.getData().getInt("id", -1);
- if (i == -1) {
- return User.ME_PARAM;
- }
- return Integer.toString(i);
- }
- /* renamed from: b */
- private int m5944b(JVActionEvent jVActionEvent) {
- Bundle data = jVActionEvent.getData();
- if (data == null) {
- return 0;
- }
- return data.getInt(JVBean.BEAN_ID, 0);
- }
- /* renamed from: c */
- private void m5943c(JVActionEvent jVActionEvent) {
- if (Ints.contains(C17805a.f37106c, jVActionEvent.getScreen())) {
- C17805a m5965b = C17805a.m5965b(this.f37113a);
- Object obj = null;
- if (jVActionEvent.getClassType() != null && jVActionEvent.getCacheKey() != null) {
- String m5963e = C17805a.m5963e(jVActionEvent.getScreen(), jVActionEvent.getCacheKey().intValue());
- String mo5960f = m5965b.mo5960f(m5963e);
- if (!TextUtils.isEmpty(mo5960f)) {
- try {
- obj = JVGsonConverter.m27186i(this.f37113a).fromJson(mo5960f, (Class<Object>) jVActionEvent.getClassType());
- } catch (JsonSyntaxException e) {
- Log.w(f37111d, "Error while trying to deserialize from cache", e);
- m5965b.mo5959g(m5963e);
- }
- }
- }
- if (obj == null) {
- String str = f37111d;
- Log.i(str, "No cached version for event : '" + jVActionEvent + "'");
- return;
- }
- String str2 = f37111d;
- Log.i(str2, "A cached version of '" + jVActionEvent + "' exists.");
- C17827c.m5883d().m5873n(obj);
- }
- }
- /* JADX WARN: Can't fix incorrect switch cases order, some code will duplicate */
- /* JADX WARN: Code restructure failed: missing block: B:274:0x06f6, code lost:
- if (r4.equals(com.jeuxvideo.models.api.games.Game.IMAGES_ARTIFACT) == false) goto L217;
- */
- /* JADX WARN: Code restructure failed: missing block: B:49:0x0159, code lost:
- if (r7.equals(com.jeuxvideo.models.api.comment.UserComment.UPDATE_COMMENT_ARTIFACT) == false) goto L41;
- */
- /* JADX WARN: Code restructure failed: missing block: B:95:0x02cf, code lost:
- if (r4.equals(com.jeuxvideo.models.api.report.Report.ACCOUNT_ARTIFACT) == false) goto L82;
- */
- /* JADX WARN: Removed duplicated region for block: B:301:0x07f4 */
- @Subscribe(threadMode = ThreadMode.ASYNC)
- /*
- Code decompiled incorrectly, please refer to instructions dump.
- */
- public final void callApi(JVActionEvent jVActionEvent) {
- String str;
- Call<SponsoWrapperWrapper> contentList;
- String string;
- String string2;
- String string3;
- String string4;
- String string5;
- char c;
- Call deleteFavorisForum;
- String string6;
- String string7;
- int i;
- boolean z;
- Integer num;
- Integer num2;
- m5943c(jVActionEvent);
- char c2 = 0;
- if (jVActionEvent.canUseETag()) {
- str = C17805a.m5965b(this.f37113a).mo5960f(C17805a.m5963e(jVActionEvent.getScreen(), 0));
- } else {
- str = null;
- }
- JVCallback jVCallback = new JVCallback(this.f37113a, jVActionEvent);
- Bundle data = jVActionEvent.getData();
- String excludedMachines = jVActionEvent.getExcludedMachines();
- String selectedMachine = jVActionEvent.getSelectedMachine();
- if (TextUtils.isEmpty(selectedMachine)) {
- selectedMachine = "any";
- }
- int screen = jVActionEvent.getScreen();
- if (screen != 120) {
- if (screen != 121) {
- switch (screen) {
- case 0:
- contentList = this.f37114b.config(str);
- break;
- case 1:
- contentList = this.f37114b.getHeadlineList(excludedMachines, jVActionEvent.getPage(), jVActionEvent.getPerPage(), str);
- break;
- case 2:
- contentList = this.f37114b.getContentList(jVActionEvent.getCategories(), jVActionEvent.getTypes(), null, excludedMachines, jVActionEvent.getPage(), jVActionEvent.getPerPage(), str);
- break;
- case 3:
- if (data == null) {
- string = null;
- } else {
- string = data.getString("artifact");
- }
- if (string == null) {
- contentList = this.f37114b.getNews(m5944b(jVActionEvent));
- break;
- } else {
- if (string.equals(News.NEWS_ARTIFACT)) {
- contentList = this.f37114b.getRelatedNews(m5944b(jVActionEvent), jVActionEvent.getPage(), jVActionEvent.getPerPage());
- break;
- }
- contentList = null;
- break;
- }
- case 4:
- contentList = this.f37114b.getContentList(jVActionEvent.getCategories(), jVActionEvent.getTypes(), jVActionEvent.getEvents(), excludedMachines, jVActionEvent.getPage(), jVActionEvent.getPerPage(), str);
- break;
- case 5:
- contentList = this.f37114b.getVideo(m5944b(jVActionEvent));
- break;
- case 6:
- contentList = this.f37114b.getRelatedVideos(m5944b(jVActionEvent), jVActionEvent.getPage(), jVActionEvent.getPerPage());
- break;
- case 7:
- contentList = this.f37114b.getVideoList(jVActionEvent.getCategories(), jVActionEvent.getShow(), excludedMachines, jVActionEvent.getTypes(), jVActionEvent.getPage(), jVActionEvent.getPerPage(), str);
- break;
- case 8:
- contentList = this.f37114b.getChroniclesSummary(excludedMachines);
- break;
- case 9:
- contentList = this.f37114b.getVideosSummary(excludedMachines);
- break;
- case 10:
- if (data == null) {
- string2 = null;
- } else {
- string2 = data.getString("artifact");
- }
- if (string2 == null) {
- contentList = this.f37114b.getArticle(m5944b(jVActionEvent));
- break;
- } else {
- if (TextUtils.equals(string2, "wikis")) {
- contentList = this.f37114b.getRelatedWikis(m5944b(jVActionEvent), jVActionEvent.getPage(), jVActionEvent.getPerPage());
- break;
- }
- contentList = null;
- break;
- }
- case 11:
- contentList = this.f37114b.getArticleList(excludedMachines, jVActionEvent.getPage(), jVActionEvent.getPerPage(), String.valueOf(55), str);
- break;
- case 12:
- contentList = this.f37114b.getArticleList(excludedMachines, jVActionEvent.getPage(), jVActionEvent.getPerPage(), String.valueOf(56), str);
- break;
- default:
- String str2 = "";
- String str3 = User.ME_PARAM;
- switch (screen) {
- case 14:
- int m5944b = m5944b(jVActionEvent);
- if (data == null) {
- string3 = null;
- } else {
- string3 = data.getString("artifact");
- }
- if (string3 == null) {
- contentList = this.f37114b.getGame(m5944b, selectedMachine);
- break;
- } else {
- switch (string3.hashCode()) {
- case -1185250696:
- break;
- case -816678056:
- if (string3.equals("videos")) {
- c2 = 1;
- break;
- }
- c2 = 65535;
- break;
- case -41509031:
- if (string3.equals(Game.ADD_REVIEW_ARTIFACT)) {
- c2 = 2;
- break;
- }
- c2 = 65535;
- break;
- case 102970646:
- if (string3.equals(Game.LIGHT_ARTIFACT)) {
- c2 = 3;
- break;
- }
- c2 = 65535;
- break;
- case 113133251:
- if (string3.equals("wikis")) {
- c2 = 4;
- break;
- }
- c2 = 65535;
- break;
- case 798086608:
- if (string3.equals(Game.USER_REVIEWS_ARTIFACT)) {
- c2 = 5;
- break;
- }
- c2 = 65535;
- break;
- case 1000972032:
- if (string3.equals(Game.NEWS_ARTIFACT)) {
- c2 = 6;
- break;
- }
- c2 = 65535;
- break;
- case 1099953179:
- if (string3.equals("reviews")) {
- c2 = 7;
- break;
- }
- c2 = 65535;
- break;
- case 1557721666:
- if (string3.equals(Game.DETAILS_ARTIFACT)) {
- c2 = '\b';
- break;
- }
- c2 = 65535;
- break;
- case 1765413312:
- if (string3.equals(Game.SINGLE_REVIEW_ARTIFACT)) {
- c2 = '\t';
- break;
- }
- c2 = 65535;
- break;
- default:
- c2 = 65535;
- break;
- }
- switch (c2) {
- case 0:
- contentList = this.f37114b.getGameImages(m5944b, selectedMachine, jVActionEvent.getPage(), jVActionEvent.getPerPage());
- break;
- case 1:
- contentList = this.f37114b.getGameVideos(m5944b, selectedMachine, jVActionEvent.getPage(), jVActionEvent.getPerPage());
- break;
- case 2:
- contentList = this.f37114b.addReview(m5944b, selectedMachine, (AbstractReview.Body) data.getParcelable(AbstractReview.REVIEW));
- break;
- case 3:
- contentList = this.f37114b.getLightGame(m5944b, selectedMachine);
- break;
- case 4:
- contentList = this.f37114b.getGameWikis(m5944b, selectedMachine, jVActionEvent.getPage(), jVActionEvent.getPerPage());
- break;
- case 5:
- contentList = this.f37114b.getGameUserReviews(m5944b, selectedMachine, jVActionEvent.getPage(), jVActionEvent.getPerPage());
- break;
- case 6:
- contentList = this.f37114b.getGameNews(m5944b, selectedMachine, jVActionEvent.getPage(), jVActionEvent.getPerPage());
- break;
- case 7:
- if (jVActionEvent.getSelectedMachine() == null) {
- contentList = this.f37114b.getGameReviews(m5944b);
- break;
- } else {
- contentList = this.f37114b.getGameReviews(m5944b, selectedMachine);
- break;
- }
- case '\b':
- contentList = this.f37114b.getGameDetails(m5944b, selectedMachine);
- break;
- case '\t':
- contentList = this.f37114b.getGameReview(m5944b, selectedMachine, data.getInt("id"));
- break;
- default:
- contentList = null;
- break;
- }
- }
- case 15:
- if (data == null) {
- string4 = null;
- } else {
- string4 = data.getString("month");
- }
- if (data == null) {
- string5 = null;
- } else {
- string5 = data.getString("year");
- }
- contentList = this.f37114b.getGameReleaseList(string4, string5, excludedMachines, jVActionEvent.getPage(), jVActionEvent.getPerPage(), str);
- break;
- case 16:
- contentList = this.f37114b.getGameList("trending", excludedMachines, null, null, null, jVActionEvent.getPage(), jVActionEvent.getPerPage(), str);
- break;
- case 17:
- contentList = this.f37114b.getGameList("awaited", excludedMachines, null, null, null, jVActionEvent.getPage(), jVActionEvent.getPerPage(), str);
- break;
- case 18:
- contentList = this.f37114b.getGameSummary(excludedMachines);
- break;
- case 19:
- contentList = this.f37114b.getContentList(null, "74", null, null, jVActionEvent.getPage(), jVActionEvent.getPerPage(), str);
- break;
- case 20:
- contentList = this.f37114b.search(jVActionEvent.getStringData());
- break;
- case 21:
- contentList = this.f37114b.searchAutocomplete(jVActionEvent.getStringData());
- break;
- case 22:
- contentList = this.f37114b.searchGames(jVActionEvent.getStringData(), jVActionEvent.getPage(), jVActionEvent.getPerPage());
- break;
- case 23:
- contentList = this.f37114b.searchNews(jVActionEvent.getStringData(), jVActionEvent.getPage(), jVActionEvent.getPerPage());
- break;
- case 24:
- contentList = this.f37114b.searchArticles(jVActionEvent.getStringData(), jVActionEvent.getPage(), jVActionEvent.getPerPage());
- break;
- case 25:
- contentList = this.f37114b.searchVideos(jVActionEvent.getStringData(), jVActionEvent.getPage(), jVActionEvent.getPerPage());
- break;
- case 26:
- contentList = this.f37114b.searchWikis(jVActionEvent.getStringData(), jVActionEvent.getPage(), jVActionEvent.getPerPage());
- break;
- case 27:
- contentList = this.f37114b.login((UserLogin) jVActionEvent.getParcelableData());
- break;
- case 28:
- contentList = this.f37114b.reinitPassword((UserLogin) jVActionEvent.getParcelableData());
- break;
- case 29:
- contentList = this.f37114b.logout();
- break;
- case 30:
- String string8 = data.getString("token");
- contentList = this.f37114b.register((UserRegister) data.getParcelable(UserRegister.BUNDLE_KEY), string8);
- break;
- case 31:
- case 32:
- if (jVActionEvent.getScreen() != 31) {
- str3 = m5945a(jVActionEvent);
- }
- contentList = this.f37114b.getAccount(str3);
- break;
- case 33:
- contentList = this.f37114b.validateAccount((UserValidate) jVActionEvent.getParcelableData());
- break;
- case 34:
- contentList = this.f37114b.uploadAvatar(RequestBody.create(f37112e, (File) jVActionEvent.getSerializableData()));
- break;
- case 35:
- contentList = this.f37114b.uploadCover(RequestBody.create(f37112e, (File) jVActionEvent.getSerializableData()));
- break;
- case 36:
- String m5945a = m5945a(jVActionEvent);
- if (data != null) {
- str2 = data.getString("artifact", "");
- }
- str2.hashCode();
- switch (str2.hashCode()) {
- case -2035746319:
- if (str2.equals(Favorites.FORUM_REMOVE_ARTIFACT)) {
- c = 0;
- break;
- }
- c = 65535;
- break;
- case -1768273120:
- if (str2.equals(Favorites.GAMES_ALL_ARTIFACT)) {
- c = 1;
- break;
- }
- c = 65535;
- break;
- case -1724546052:
- if (str2.equals("description")) {
- c = 2;
- break;
- }
- c = 65535;
- break;
- case -1268770958:
- if (str2.equals("forums")) {
- c = 3;
- break;
- }
- c = 65535;
- break;
- case -1074482200:
- if (str2.equals(Profile.FAVORIS_ARTIFACT)) {
- c = 4;
- break;
- }
- c = 65535;
- break;
- case -868034268:
- if (str2.equals(Favorites.TOPIC_ARTIFACT)) {
- c = 5;
- break;
- }
- c = 65535;
- break;
- case -195635377:
- if (str2.equals(Favorites.GAME_ADD_ARTIFACT)) {
- c = 6;
- break;
- }
- c = 65535;
- break;
- case -185121524:
- if (str2.equals("machines")) {
- c = 7;
- break;
- }
- c = 65535;
- break;
- case 98120385:
- if (str2.equals("games")) {
- c = '\b';
- break;
- }
- c = 65535;
- break;
- case 125770998:
- if (str2.equals(Profile.EXCLUDED_MACHINES_ARTIFACT)) {
- c = '\t';
- break;
- }
- c = 65535;
- break;
- case 585102102:
- if (str2.equals(Favorites.GAME_REMOVE_ARTIFACT)) {
- c = '\n';
- break;
- }
- c = 65535;
- break;
- case 703351807:
- if (str2.equals(Favorites.TOPIC_REMOVE_ARTIFACT)) {
- c = 11;
- break;
- }
- c = 65535;
- break;
- default:
- c = 65535;
- break;
- }
- switch (c) {
- case 0:
- deleteFavorisForum = this.f37114b.deleteFavorisForum(m5945a, new Forum.Ids(data.getIntArray(Topic.Ids.KEY)));
- break;
- case 1:
- deleteFavorisForum = this.f37114b.getAllFavorisGames(m5945a);
- break;
- case 2:
- deleteFavorisForum = this.f37114b.saveDescription(new Profile.SaveDesc(data.getString("description")));
- break;
- case 3:
- deleteFavorisForum = this.f37114b.getFavorisForum(m5945a, jVActionEvent.getPage(), jVActionEvent.getPerPage());
- break;
- case 4:
- deleteFavorisForum = this.f37114b.getFavoris(m5945a);
- break;
- case 5:
- deleteFavorisForum = this.f37114b.getFavorisTopics(m5945a, jVActionEvent.getPage(), jVActionEvent.getPerPage());
- break;
- case 6:
- deleteFavorisForum = this.f37114b.addFavorisGames(m5945a, new Game.Keys(data.getParcelableArrayList(Game.Keys.KEY)));
- break;
- case 7:
- int[] intArray = data.getIntArray("machines");
- if (intArray == null) {
- intArray = new int[0];
- }
- deleteFavorisForum = this.f37114b.saveMachines(new Machines(intArray));
- break;
- case '\b':
- deleteFavorisForum = this.f37114b.getFavorisGames(m5945a, jVActionEvent.getPage(), jVActionEvent.getPerPage());
- break;
- case '\t':
- int[] intArray2 = data.getIntArray("machines");
- if (intArray2 == null) {
- intArray2 = new int[0];
- }
- deleteFavorisForum = this.f37114b.saveExcludedMachines(new Machines(intArray2));
- break;
- case '\n':
- deleteFavorisForum = this.f37114b.deleteFavorisGames(m5945a, new Game.Keys(data.getParcelableArrayList(Game.Keys.KEY)));
- break;
- case 11:
- deleteFavorisForum = this.f37114b.deleteFavorisTopics(m5945a, new Topic.Ids(data.getIntArray(Topic.Ids.KEY)));
- break;
- default:
- deleteFavorisForum = this.f37114b.getProfile(m5945a);
- break;
- }
- contentList = deleteFavorisForum;
- break;
- case 37:
- String m5945a2 = m5945a(jVActionEvent);
- if (data == null) {
- string6 = null;
- } else {
- string6 = data.getString("artifact", "");
- }
- string6.hashCode();
- if (!string6.equals(Page.CONTENTS_ARTIFACT)) {
- if (!string6.equals("reviews")) {
- deleteFavorisForum = this.f37114b.getProfilePage(m5945a2);
- } else {
- deleteFavorisForum = this.f37114b.getPageReviews(m5945a2, jVActionEvent.getPage(), jVActionEvent.getPerPage());
- }
- } else {
- deleteFavorisForum = this.f37114b.getPageContents(m5945a2, jVActionEvent.getPage(), jVActionEvent.getPerPage());
- }
- contentList = deleteFavorisForum;
- break;
- case 38:
- contentList = this.f37114b.getCaptcha(jVActionEvent.getIntData());
- break;
- default:
- switch (screen) {
- case 40:
- int m5944b2 = m5944b(jVActionEvent);
- if (data == null) {
- string7 = null;
- } else {
- string7 = data.getString("artifact");
- }
- if (data == null) {
- i = 0;
- } else {
- i = data.getInt(IUserText.USER_TEXT_ID);
- }
- if (data != null && data.getBoolean(Report.ADD_REPORT)) {
- z = true;
- } else {
- z = false;
- }
- if (string7 != null) {
- switch (string7.hashCode()) {
- case -409481308:
- break;
- case 1090323161:
- if (string7.equals(Report.REVIEW_ARTIFACT)) {
- c2 = 1;
- break;
- }
- c2 = 65535;
- break;
- case 1536033714:
- if (string7.equals(Report.COMMENT_ARTIFACT)) {
- c2 = 2;
- break;
- }
- c2 = 65535;
- break;
- default:
- c2 = 65535;
- break;
- }
- switch (c2) {
- case 0:
- if (z) {
- deleteFavorisForum = this.f37114b.reportAccount(String.valueOf(m5944b2), (Report) data.getParcelable(Report.REPORT));
- } else {
- deleteFavorisForum = this.f37114b.getCurrentAccountReport(String.valueOf(m5944b2));
- }
- contentList = deleteFavorisForum;
- break;
- case 1:
- if (z) {
- deleteFavorisForum = this.f37114b.reportReview(m5944b2, selectedMachine, i, (Report) data.getParcelable(Report.REPORT));
- } else {
- deleteFavorisForum = this.f37114b.getCurrentReviewReport(m5944b2, selectedMachine, i);
- }
- contentList = deleteFavorisForum;
- break;
- case 2:
- if (z) {
- deleteFavorisForum = this.f37114b.reportComment(String.valueOf(m5944b2), String.valueOf(i), (Report) data.getParcelable(Report.REPORT));
- } else {
- deleteFavorisForum = this.f37114b.getCurrentCommentReport(String.valueOf(m5944b2), String.valueOf(i));
- }
- contentList = deleteFavorisForum;
- break;
- }
- }
- contentList = null;
- break;
- case 41:
- contentList = this.f37114b.getStores(m5944b(jVActionEvent), selectedMachine);
- break;
- case 42:
- int m5944b3 = m5944b(jVActionEvent);
- UserComment.Body body = new UserComment.Body(data.getString(UserComment.Body.COMMENT_CONTENT));
- if (data.containsKey(UserComment.COMMENT_ID)) {
- num = Integer.valueOf(data.getInt(UserComment.COMMENT_ID));
- } else {
- num = null;
- }
- if (num != null) {
- contentList = this.f37114b.addReply(String.valueOf(m5944b3), String.valueOf(num), body);
- break;
- } else {
- contentList = this.f37114b.addComment(String.valueOf(m5944b3), body);
- break;
- }
- case 43:
- int m5944b4 = m5944b(jVActionEvent);
- Integer valueOf = Integer.valueOf(data.getInt(UserComment.COMMENT_ID));
- contentList = this.f37114b.addCommentVote(String.valueOf(m5944b4), String.valueOf(valueOf), UserComment.Vote.upVote());
- break;
- case 44:
- contentList = this.f37114b.deleteCommentVote(String.valueOf(m5944b(jVActionEvent)), String.valueOf(Integer.valueOf(data.getInt(UserComment.COMMENT_ID))));
- break;
- case 45:
- int m5944b5 = m5944b(jVActionEvent);
- Integer valueOf2 = Integer.valueOf(data.getInt(UserComment.COMMENT_ID));
- contentList = this.f37114b.addCommentVote(String.valueOf(m5944b5), String.valueOf(valueOf2), UserComment.Vote.downVote());
- break;
- case 46:
- contentList = this.f37114b.getComments(String.valueOf(m5944b(jVActionEvent)), jVActionEvent.getPage(), jVActionEvent.getPerPage());
- break;
- case 47:
- contentList = this.f37114b.getCommentAnswers(String.valueOf(m5944b(jVActionEvent)), String.valueOf(Integer.valueOf(data.getInt(UserComment.COMMENT_ID))));
- break;
- case 48:
- contentList = this.f37114b.getTopsComments(String.valueOf(m5944b(jVActionEvent)));
- break;
- case 49:
- int m5944b6 = m5944b(jVActionEvent);
- if (data.containsKey(UserComment.COMMENT_ID)) {
- num2 = Integer.valueOf(data.getInt(UserComment.COMMENT_ID));
- } else {
- num2 = null;
- }
- String string9 = data.getString("artifact");
- if (string9 == null) {
- contentList = this.f37114b.getComment(String.valueOf(m5944b6), String.valueOf(num2));
- break;
- } else {
- switch (string9.hashCode()) {
- case -545552042:
- break;
- case 619337713:
- if (string9.equals(UserComment.RESTORE_COMMENT_ARTIFACT)) {
- c2 = 1;
- break;
- }
- c2 = 65535;
- break;
- case 745626164:
- if (string9.equals(UserComment.DELETE_COMMENT_ARTIFACT)) {
- c2 = 2;
- break;
- }
- c2 = 65535;
- break;
- default:
- c2 = 65535;
- break;
- }
- switch (c2) {
- case 0:
- contentList = this.f37114b.updateComment(String.valueOf(m5944b6), String.valueOf(num2), new UserComment.Body(data.getString(UserComment.Body.COMMENT_CONTENT)));
- break;
- case 1:
- contentList = this.f37114b.restoreComment(String.valueOf(m5944b6), String.valueOf(num2), "");
- break;
- case 2:
- contentList = this.f37114b.deleteComment(String.valueOf(m5944b6), String.valueOf(num2));
- break;
- }
- }
- break;
- case 50:
- contentList = this.f37114b.getContentList(null, "59,63, 78", null, null, jVActionEvent.getPage(), jVActionEvent.getPerPage(), str);
- break;
- case 51:
- contentList = this.f37114b.getArticleList(excludedMachines, jVActionEvent.getPage(), jVActionEvent.getPerPage(), "76", str);
- break;
- case 52:
- contentList = this.f37114b.getArticleList(excludedMachines, jVActionEvent.getPage(), jVActionEvent.getPerPage(), "77", str);
- break;
- case 53:
- contentList = this.f37114b.getTechList(jVActionEvent.getPage(), jVActionEvent.getPerPage(), str);
- break;
- case 54:
- contentList = this.f37114b.sponso(str);
- String str4 = f37111d;
- Log.i(str4, "Nothing to do with this event : " + jVActionEvent);
- break;
- default:
- switch (screen) {
- case 301:
- contentList = this.f37114b.updateNewsLettersStatus(User.ME_PARAM, (NewsLetters) data.getParcelable(NewsLetters.PARTNERS_KEY));
- break;
- case 302:
- contentList = this.f37114b.updateNewsLettersStatus(User.ME_PARAM, (NewsLetters) data.getParcelable(NewsLetters.EDITORIAL_KEY));
- break;
- case 303:
- contentList = this.f37114b.getNewsLettersStatus(User.ME_PARAM);
- break;
- default:
- contentList = null;
- String str42 = f37111d;
- Log.i(str42, "Nothing to do with this event : " + jVActionEvent);
- break;
- }
- }
- }
- }
- } else {
- contentList = this.f37114b.getContentList(null, "63", null, null, jVActionEvent.getPage(), jVActionEvent.getPerPage(), str);
- }
- } else {
- contentList = this.f37114b.getContentList(null, "54", null, excludedMachines, jVActionEvent.getPage(), jVActionEvent.getPerPage(), str);
- }
- if (contentList != null) {
- contentList.enqueue(jVCallback);
- }
- C17827c.m5883d().m5873n(new SentRequestEvent(jVActionEvent));
- }
- @Subscribe(threadMode = ThreadMode.BACKGROUND)
- public final void loadAsset(AssetLoadEvent assetLoadEvent) {
- if (assetLoadEvent.getAsset() != null && assetLoadEvent.getAsset().getUrl() != null) {
- FirebasePerfOkHttpClient.enqueue(this.f37115c.newCall(new Request.Builder().url(assetLoadEvent.getAsset().getUrl()).build()), new AssetCallback(this.f37113a, assetLoadEvent));
- }
- }
- @Subscribe(threadMode = ThreadMode.ASYNC)
- public final void updateApiService(JVApiService jVApiService) {
- this.f37114b = jVApiService;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment