导航菜单

页面标题

页面副标题

95爱播免登录版 v3.1.9 - k0.java 源代码

正在查看: 95爱播免登录版 v3.1.9 应用的 k0.java JAVA 源代码文件

本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。


package com.showself.utils;

import android.content.SharedPreferences;
import com.showself.ui.ShowSelfApp;
import com.sina.weibo.sdk.auth.Oauth2AccessToken;
import java.util.HashMap;
import java.util.UUID;

public class k0 {
    private static String b = Utils.O(ShowSelfApp.h()).versionName;
    public static Boolean c = Boolean.TRUE;
    public static int d = 0;

    public static k0 f3378e;
    public String a = "myLoginInfo";

    private k0() {
    }

    private void b() {
        SharedPreferences.Editor edit = ShowSelfApp.h().getSharedPreferences(this.a, 0).edit();
        edit.putInt("loginType", -1);
        edit.commit();
    }

    public static k0 k() {
        if (f3378e == null) {
            f3378e = new k0();
        }
        return f3378e;
    }

    public static String w(String str) {
        if (!y()) {
            return str;
        }
        return str + "_" + UUID.randomUUID().toString();
    }

    public static boolean y() {
        return k().m() == 4;
    }

    public void A(boolean z) {
        if (z) {
            a();
        }
        SharedPreferences.Editor edit = ShowSelfApp.h().getSharedPreferences(this.a, 0).edit();
        edit.putString("unsynctype", null);
        edit.putInt("vip", 0);
        edit.putLong("sync_time", 0L);
        edit.putLong("dateline", 0L);
        edit.putString("fox_position", null);
        edit.putBoolean("wifi", true);
        edit.putBoolean("tele", true);
        edit.putString("using_prop", null);
        edit.commit();
    }

    public void B(boolean z) {
        SharedPreferences.Editor edit = ShowSelfApp.h().getSharedPreferences(this.a, 0).edit();
        edit.putBoolean("activated", z);
        edit.commit();
    }

    public void C(int i2) {
        SharedPreferences.Editor edit = ShowSelfApp.h().getSharedPreferences(this.a, 0).edit();
        edit.putInt("alterpwd", i2);
        edit.commit();
    }

    public void D(int i2) {
        SharedPreferences.Editor edit = ShowSelfApp.h().getSharedPreferences(this.a, 0).edit();
        edit.putInt("android_notifinterval", i2);
        edit.commit();
    }

    public void E(Boolean bool) {
        SharedPreferences.Editor edit = ShowSelfApp.h().getSharedPreferences(this.a, 0).edit();
        edit.putBoolean("chest_dot", bool.booleanValue());
        edit.commit();
    }

    public void F(int i2) {
        SharedPreferences.Editor edit = ShowSelfApp.h().getSharedPreferences(this.a, 0).edit();
        edit.putInt("chest_dot_game_code", i2);
        edit.commit();
    }

    public void G(Boolean bool) {
        SharedPreferences.Editor edit = ShowSelfApp.h().getSharedPreferences(this.a, 0).edit();
        edit.putBoolean("chest_red_dot", bool.booleanValue());
        edit.commit();
    }

    public void H(long j2) {
        SharedPreferences.Editor edit = ShowSelfApp.h().getSharedPreferences(this.a, 0).edit();
        edit.putLong("dateline", j2);
        edit.commit();
    }

    public void I(int i2, int i3) {
        SharedPreferences.Editor edit = ShowSelfApp.h().getSharedPreferences(this.a, 0).edit();
        edit.putString("fox_position", i2 + "#" + i3);
        edit.commit();
    }

    public void J(int i2, int i3) {
        SharedPreferences.Editor edit = ShowSelfApp.h().getSharedPreferences(this.a, 0).edit();
        try {
            edit.putInt("gift_effect_" + i2, i3);
        } catch (Exception e2) {
            e2.printStackTrace();
            if (i3 == 0) {
                edit.putBoolean("gift_effect_" + i2, false);
            } else {
                edit.putBoolean("gift_effect_" + i2, true);
            }
        }
        edit.commit();
    }

    public void K(int i2, String str, String str2) {
        SharedPreferences.Editor edit = ShowSelfApp.h().getSharedPreferences(this.a, 0).edit();
        if (i2 == 0) {
            edit.putString("common_account", str);
            edit.putString("common_pass", str2);
        } else if (i2 == 4) {
            edit.putString("visitor_account", str);
            edit.putString("visitor_pass", str2);
        }
        edit.commit();
    }

    public void L(int i2, String str, String str2, String str3) {
        SharedPreferences.Editor edit = ShowSelfApp.h().getSharedPreferences(this.a, 0).edit();
        if (i2 == 1) {
            edit.putString("weibo_account", str);
            edit.putString("weibo_access_token", str2);
            edit.putString("weibo_expiretime", str3);
            edit.commit();
            return;
        }
        if (i2 == 2) {
            edit.putString("qq_account", str);
            edit.putString("qq_access_token", str2);
            edit.putString("qq_expiretime", str3);
            edit.commit();
            return;
        }
        if (i2 == 3) {
            edit.putString("renren_account", str);
            edit.putString("renren_access_token", str2);
            edit.putString("renren_expiretime", str3);
            edit.commit();
            return;
        }
        if (i2 == 5) {
            edit.putString("union_id", str);
            edit.putString(Oauth2AccessToken.KEY_REFRESH_TOKEN, str2);
            edit.commit();
        } else {
            if (i2 != 8) {
                return;
            }
            edit.putString("one_key_ali_openId", str);
            edit.putString("one_key_ali_token", str2);
            edit.commit();
            String str4 = "account:" + str + " === accesstoken:" + str2;
        }
    }

    public void M(int i2) {
        SharedPreferences.Editor edit = ShowSelfApp.h().getSharedPreferences(this.a, 0).edit();
        edit.putInt("loginType", i2);
        edit.commit();
    }

    public void N(int i2) {
        SharedPreferences.Editor edit = ShowSelfApp.h().getSharedPreferences(this.a, 0).edit();
        edit.putInt("maxMsgLengthForLimitation", i2);
        edit.commit();
    }

    public void O(String str) {
        SharedPreferences.Editor edit = ShowSelfApp.h().getSharedPreferences(this.a, 0).edit();
        edit.putString("minSendMsgAlertMessage", str);
        edit.commit();
    }

    public void P(int i2) {
        SharedPreferences.Editor edit = ShowSelfApp.h().getSharedPreferences(this.a, 0).edit();
        edit.putInt("minSendMsgInterval", i2);
        edit.commit();
    }

    public void Q(int i2) {
        SharedPreferences.Editor edit = ShowSelfApp.h().getSharedPreferences(this.a, 0).edit();
        edit.putInt("minWealthCredit", i2);
        edit.commit();
    }

    public void R(String str) {
        SharedPreferences.Editor edit = ShowSelfApp.h().getSharedPreferences(this.a, 0).edit();
        edit.putString("msgToLongAlertMessage", str);
        edit.commit();
    }

    public void S(int i2) {
        SharedPreferences.Editor edit = ShowSelfApp.h().getSharedPreferences(this.a, 0).edit();
        edit.putInt("global_pp_status", i2);
        edit.commit();
    }

    public void T(String str) {
        SharedPreferences.Editor edit = ShowSelfApp.h().getSharedPreferences(this.a, 0).edit();
        edit.putString("bpi", str);
        edit.commit();
    }

    public void U(String str) {
        SharedPreferences.Editor edit = ShowSelfApp.h().getSharedPreferences(this.a, 0).edit();
        edit.putString("repeatSendMsgAlertMessage", str);
        edit.commit();
    }

    public void V(int i2) {
        SharedPreferences.Editor edit = ShowSelfApp.h().getSharedPreferences(this.a, 0).edit();
        edit.putInt("resource_notifinterval", i2);
        edit.commit();
    }

    public void W(boolean z, int i2) {
        SharedPreferences.Editor edit = ShowSelfApp.h().getSharedPreferences(this.a, 0).edit();
        edit.putBoolean("sound_" + i2, z);
        edit.commit();
    }

    public void X(boolean z) {
        SharedPreferences.Editor edit = ShowSelfApp.h().getSharedPreferences(this.a, 0).edit();
        edit.putBoolean("tele", z);
        edit.commit();
    }

    public void Y(long j2) {
        SharedPreferences.Editor edit = ShowSelfApp.h().getSharedPreferences(this.a, 0).edit();
        edit.putLong("sync_time", j2);
        edit.commit();
    }

    public void Z(int i2) {
        SharedPreferences.Editor edit = ShowSelfApp.h().getSharedPreferences(this.a, 0).edit();
        edit.putInt("sysreply_version", i2);
        edit.commit();
    }

    public void a() {
        b();
        SharedPreferences.Editor edit = ShowSelfApp.h().getSharedPreferences(this.a, 0).edit();
        edit.putString("common_pass", null);
        edit.putString("weibo_account", null);
        edit.putString("weibo_access_token", null);
        edit.putString("weibo_expiretime", null);
        edit.putString("qq_account", null);
        edit.putString("qq_access_token", null);
        edit.putString("qq_expiretime", null);
        edit.putString("one_key_ali_openId", null);
        edit.putString("one_key_ali_token", null);
        edit.commit();
    }

    public void a0(int i2) {
        SharedPreferences.Editor edit = ShowSelfApp.h().getSharedPreferences(this.a, 0).edit();
        edit.putInt("user_grade", i2);
        edit.commit();
    }

    public void b0(int i2, int i3) {
        SharedPreferences.Editor edit = ShowSelfApp.h().getSharedPreferences(this.a, 0).edit();
        edit.putInt("vehicle_effect_" + i2, i3);
        edit.commit();
    }

    public boolean c() {
        return ShowSelfApp.h().getSharedPreferences(this.a, 0).getBoolean("activated", false);
    }

    public void c0(int i2) {
        SharedPreferences.Editor edit = ShowSelfApp.h().getSharedPreferences(this.a, 0).edit();
        edit.putInt("vip", i2);
        edit.commit();
    }

    public java.util.HashMap<java.lang.String, com.showself.show.bean.AffinityRulesBean> d() {
        throw new UnsupportedOperationException("Method not decompiled: com.showself.utils.k0.d():java.util.HashMap");
    }

    public void d0(boolean z) {
        SharedPreferences.Editor edit = ShowSelfApp.h().getSharedPreferences(this.a, 0).edit();
        edit.putBoolean("login.visitor.enable", z);
        edit.commit();
    }

    public Boolean e() {
        return Boolean.valueOf(ShowSelfApp.h().getSharedPreferences(this.a, 0).getBoolean("isAlias", false));
    }

    public void e0(String str, String str2, String str3, String str4) {
        SharedPreferences.Editor edit = ShowSelfApp.h().getSharedPreferences(this.a, 0).edit();
        edit.putString("access_token", str2);
        edit.putString(Oauth2AccessToken.KEY_REFRESH_TOKEN, str3);
        edit.putString("wxOpenid", str);
        edit.putString("union_id", str4);
        edit.commit();
    }

    public Boolean f() {
        return Boolean.valueOf(ShowSelfApp.h().getSharedPreferences(this.a, 0).getBoolean("chest_dot", c.booleanValue()));
    }

    public void f0(int i2) {
        SharedPreferences.Editor edit = ShowSelfApp.h().getSharedPreferences(this.a, 0).edit();
        edit.putInt("max_video", i2);
        edit.commit();
    }

    public int g() {
        return ShowSelfApp.h().getSharedPreferences(this.a, 0).getInt("chest_dot_game_code", -1);
    }

    public void g0(int i2) {
        SharedPreferences.Editor edit = ShowSelfApp.h().getSharedPreferences(this.a, 0).edit();
        edit.putInt("isShowHot", i2);
        edit.commit();
    }

    public long h() {
        return ShowSelfApp.h().getSharedPreferences(this.a, 0).getLong("dateline", System.currentTimeMillis() / 1000);
    }

    public String i() {
        return ShowSelfApp.h().getSharedPreferences(this.a, 0).getString("fox_position", null);
    }

    public int j(int i2) {
        SharedPreferences sharedPreferences = ShowSelfApp.h().getSharedPreferences(this.a, 0);
        if (!b.equals(sharedPreferences.getString("giftEffect_versionName", null))) {
            SharedPreferences.Editor edit = sharedPreferences.edit();
            edit.putString("giftEffect_versionName", b);
            edit.commit();
            J(i2, 1);
            return 1;
        }
        try {
            return sharedPreferences.getInt("gift_effect_" + i2, 1);
        } catch (Exception e2) {
            e2.printStackTrace();
            StringBuilder sb = new StringBuilder();
            sb.append("gift_effect_");
            sb.append(i2);
            return sharedPreferences.getBoolean(sb.toString(), true) ? 1 : 0;
        }
    }

    public HashMap<Object, Object> l(int i2) {
        SharedPreferences sharedPreferences = ShowSelfApp.h().getSharedPreferences(this.a, 0);
        HashMap<Object, Object> hashMap = new HashMap<>();
        if (i2 == 0) {
            hashMap.put("account", sharedPreferences.getString("common_account", null));
            hashMap.put("password", sharedPreferences.getString("common_pass", null));
        } else if (i2 == 1) {
            String string = sharedPreferences.getString("weibo_account", null);
            String string2 = sharedPreferences.getString("weibo_access_token", null);
            String string3 = sharedPreferences.getString("weibo_expiretime", null);
            hashMap.put("account", string);
            hashMap.put("accesstoken", string2);
            hashMap.put("expiretime", string3);
        } else if (i2 == 2) {
            String string4 = sharedPreferences.getString("qq_account", null);
            String string5 = sharedPreferences.getString("qq_access_token", null);
            String string6 = sharedPreferences.getString("qq_expiretime", null);
            hashMap.put("account", string4);
            hashMap.put("accesstoken", string5);
            hashMap.put("expiretime", string6);
        } else if (i2 == 3) {
            String string7 = sharedPreferences.getString("renren_account", null);
            String string8 = sharedPreferences.getString("renren_access_token", null);
            String string9 = sharedPreferences.getString("renren_expiretime", null);
            hashMap.put("account", string7);
            hashMap.put("accesstoken", string8);
            hashMap.put("expiretime", string9);
        } else if (i2 == 4) {
            hashMap.put("account", sharedPreferences.getString("visitor_account", null));
            hashMap.put("password", sharedPreferences.getString("visitor_pass", null));
        } else if (i2 == 5) {
            String string10 = sharedPreferences.getString("union_id", null);
            String string11 = sharedPreferences.getString(Oauth2AccessToken.KEY_REFRESH_TOKEN, null);
            hashMap.put("account", string10);
            hashMap.put("accesstoken", string11);
        } else if (i2 == 8) {
            String string12 = sharedPreferences.getString("one_key_ali_openId", null);
            String string13 = sharedPreferences.getString("one_key_ali_token", null);
            hashMap.put("account", string12);
            hashMap.put("accesstoken", string13);
        }
        return hashMap;
    }

    public int m() {
        return ShowSelfApp.h().getSharedPreferences(this.a, 0).getInt("loginType", -1);
    }

    public String n() {
        return ShowSelfApp.h().getSharedPreferences(this.a, 0).getString("bpi", null);
    }

    public int o() {
        int i2 = ShowSelfApp.h().getSharedPreferences(this.a, 0).getInt("resource_notifinterval", 1810);
        if (i2 == 0) {
            return 1800;
        }
        return i2;
    }

    public boolean p(int i2) {
        return ShowSelfApp.h().getSharedPreferences(this.a, 0).getBoolean("sound_" + i2, false);
    }

    public boolean q() {
        return ShowSelfApp.h().getSharedPreferences(this.a, 0).getBoolean("tele", true);
    }

    public long r() {
        return ShowSelfApp.h().getSharedPreferences(this.a, 0).getLong("sync_time", 0L);
    }

    public int s() {
        return ShowSelfApp.h().getSharedPreferences(this.a, 0).getInt("sysreply_version", 0);
    }

    public int t() {
        return ShowSelfApp.h().getSharedPreferences(this.a, 0).getInt("user_grade", d);
    }

    public int u(int i2) {
        SharedPreferences sharedPreferences = ShowSelfApp.h().getSharedPreferences(this.a, 0);
        if (b.equals(sharedPreferences.getString("vehicleEffect_versionName", null))) {
            return sharedPreferences.getInt("vehicle_effect_" + i2, 0);
        }
        SharedPreferences.Editor edit = sharedPreferences.edit();
        edit.putString("vehicleEffect_versionName", b);
        edit.putInt("vehicle_effect_" + i2, 1);
        edit.commit();
        return 1;
    }

    public int v() {
        return ShowSelfApp.h().getSharedPreferences(this.a, 0).getInt("vip", 0);
    }

    public void x(Boolean bool) {
        SharedPreferences.Editor edit = ShowSelfApp.h().getSharedPreferences(this.a, 0).edit();
        edit.putBoolean("isAlias", bool.booleanValue());
        edit.commit();
    }

    public Boolean z() {
        return Boolean.valueOf(ShowSelfApp.h().getSharedPreferences(this.a, 0).getBoolean("login.visitor.enable", true));
    }
}