CheetahGram v8.5.4版本的 MD5 值为:3d14e79cc242c314d3933620ff3ab030

以下内容为反编译后的 i75.java 源代码,内容仅作参考


package org.telegram.messenger.p110;

import android.os.AsyncTask;
import android.os.Build;
import java.util.concurrent.Executor;

public class i75 {
    c a = new a();
    private String b;

    public class a implements c {

        class AsyncTaskC0093a extends AsyncTask<Void, Void, b> {
            final String a;
            final zp b;
            final qd7 c;

            AsyncTaskC0093a(String str, zp zpVar, qd7 qd7Var) {
                this.a = str;
                this.b = zpVar;
                this.c = qd7Var;
            }

            @Override
            public b doInBackground(Void... voidArr) {
                Exception exc = null;
                Object[] objArr = 0;
                Object[] objArr2 = 0;
                Object[] objArr3 = 0;
                try {
                    return new b(i75.this, j75.e(m75.a(this.b), fi4.a(this.a).a()), exc, objArr3 == true ? 1 : 0);
                } catch (k75 e) {
                    return new b(i75.this, objArr2 == true ? 1 : 0, e, objArr == true ? 1 : 0);
                }
            }

            @Override
            public void onPostExecute(b bVar) {
                i75.this.h(bVar, this.c);
            }
        }

        a() {
        }

        @Override
        public void a(zp zpVar, String str, Executor executor, qd7 qd7Var) {
            i75.this.f(executor, new AsyncTaskC0093a(str, zpVar, qd7Var));
        }
    }

    public class b {
        final pd7 a;
        final Exception b;

        private b(i75 i75Var, pd7 pd7Var, Exception exc) {
            this.b = exc;
            this.a = pd7Var;
        }

        b(i75 i75Var, pd7 pd7Var, Exception exc, a aVar) {
            this(i75Var, pd7Var, exc);
        }
    }

    public interface c {
        void a(zp zpVar, String str, Executor executor, qd7 qd7Var);
    }

    public i75(String str) {
        g(str);
    }

    public void f(Executor executor, AsyncTask<Void, Void, b> asyncTask) {
        if (executor == null || Build.VERSION.SDK_INT <= 11) {
            asyncTask.execute(new Void[0]);
        } else {
            asyncTask.executeOnExecutor(executor, new Void[0]);
        }
    }

    public void h(b bVar, qd7 qd7Var) {
        pd7 pd7Var = bVar.a;
        if (pd7Var != null) {
            qd7Var.a(pd7Var);
            return;
        }
        Exception exc = bVar.b;
        if (exc == null) {
            exc = new RuntimeException("Somehow got neither a token response or an error response");
        }
        qd7Var.onError(exc);
    }

    private void i(String str) {
        if (str == null || str.length() == 0) {
            throw new sd("Invalid Publishable Key: You must use a valid publishable key to create a token.  For more info, see https://stripe.com/docs/stripe.js.", null, 0);
        }
        if (str.startsWith("sk_")) {
            throw new sd("Invalid Publishable Key: You are using a secret key to create a token, instead of the publishable one. For more info, see https://stripe.com/docs/stripe.js", null, 0);
        }
    }

    public void c(zp zpVar, String str, Executor executor, qd7 qd7Var) {
        try {
            if (zpVar == null) {
                throw new RuntimeException("Required Parameter: 'card' is required to create a token");
            }
            if (qd7Var == null) {
                throw new RuntimeException("Required Parameter: 'callback' is required to use the created token and handle errors");
            }
            i(str);
            this.a.a(zpVar, str, executor, qd7Var);
        } catch (sd e) {
            qd7Var.onError(e);
        }
    }

    public void d(zp zpVar, String str, qd7 qd7Var) {
        c(zpVar, str, null, qd7Var);
    }

    public void e(zp zpVar, qd7 qd7Var) {
        d(zpVar, this.b, qd7Var);
    }

    public void g(String str) {
        i(str);
        this.b = str;
    }
}