翰林优商.apk(点击下载) / u.java


package com.kwad.sdk.api.loader;

import android.content.Context;

public final class u {
    private static String aRy = "kssdk_api_pref";

    public static long H(Context context, String str) {
        return b(context, str, 0);
    }

    public static void a(Context context, String str, long j) {
        context.getSharedPreferences(aRy, 0).edit().putLong(str, j).commit();
    }

    public static void a(Context context, String str, boolean z) {
        context.getSharedPreferences(aRy, 0).edit().putBoolean(str, z).commit();
    }

    private static long b(Context context, String str, long j) {
        return context.getSharedPreferences(aRy, 0).getLong(str, 0);
    }

    public static boolean b(Context context, String str, boolean z) {
        return context.getSharedPreferences(aRy, 0).getBoolean(str, false);
    }

    public static void e(Context context, String str, String str2) {
        context.getSharedPreferences(aRy, 0).edit().putString(str, str2).commit();
    }

    public static String f(Context context, String str, String str2) {
        return context.getSharedPreferences(aRy, 0).getString(str, str2);
    }

    public static String getString(Context context, String str) {
        return f(context, str, "");
    }
}