Wallkin v1.86859532693版本的 MD5 值为:c3099a56aae2c3706b2239994117cc3a

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


package com.joaomgcd.taskerm.net;

import com.joaomgcd.taskerm.net.e;
import com.joaomgcd.taskerm.util.af;
import com.joaomgcd.taskerm.util.an;
import java.io.IOException;
import java.net.HttpURLConnection;
import org.jsoup.helper.HttpConnection;
public class o<TArgs extends e<TResult, TResultError>, TResult, TResultError extends af> extends m<TArgs, TResult, TResultError> {

    static final class a extends c.f.b.l implements c.f.a.a<Boolean> {
        final String f8184a;

        a(String str) {
            super(0);
            this.f8184a = str;
        }

        @Override
        public Boolean invoke() {
            return Boolean.valueOf(a());
        }

        public final boolean a() {
            d.s e2 = d.s.e(this.f8184a);
            return (e2 != null ? e2.m() : 0) > 0;
        }
    }

    public o(TArgs targs) {
        super(targs);
        c.f.b.k.b(targs, "args");
    }

    @Override
    protected long b(HttpURLConnection httpURLConnection, boolean z) throws IOException {
        String str;
        String str2;
        c.f.b.k.b(httpURLConnection, "receiver$0");
        String n = ((e) b()).n();
        if (n != null) {
            String requestProperty = httpURLConnection.getRequestProperty(ab.a());
            if (requestProperty == null || requestProperty.length() == 0) {
                if ((n.length() == 0) || com.joaomgcd.taskerm.n.l.a(n)) {
                    str = "application/json";
                } else if (com.joaomgcd.taskerm.l.b.a(n)) {
                    str = "text/xml";
                } else {
                    if (c.l.n.a(n, "http", false, 2, (Object) null)) {
                        str2 = n;
                    } else {
                        str2 = "https://example.com/test?" + n;
                    }
                    Boolean bool = (Boolean) an.a((c.f.a.b) null, new a(str2), 1, (Object) null);
                    str = bool != null ? bool.booleanValue() : false ? HttpConnection.FORM_URL_ENCODED : "text/plain";
                }
                httpURLConnection.setRequestProperty(ab.a(), str);
            }
            return ab.a(a(httpURLConnection, z), n);
        }
        return 0L;
    }

    @Override
    public Long c() {
        return Long.valueOf(((e) b()).n().length());
    }
}