FlixOlé v4.4.0版本的 MD5 值为:50e7f767ca3e8715936523e9ef089581

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


package i.f.a.e.o.b.f;

import android.content.Context;
import com.magine.android.mamo.api.PioneerServiceSource;
import com.magine.android.mamo.api.data.PioneerService;
import com.magine.api.service.qrcode.model.TVInfo;
import com.magine.api.service.qrcode.model.UserCode;
import kotlin.Unit;
import okhttp3.internal.Util;
import rx.Subscription;
public final class r implements p {
    public final q f8956n;
    public final i.f.a.e.f.p0.n f8957o;
    public Subscription f8958p;

    public r(q qVar, i.f.a.e.f.p0.n nVar) {
        l.z.d.l.f(qVar, "view");
        l.z.d.l.f(nVar, "systemDataProvider");
        this.f8956n = qVar;
        this.f8957o = nVar;
    }

    public static final void e0(r rVar, Throwable th) {
        l.z.d.l.f(rVar, "this$0");
        rVar.f8956n.T0();
    }

    public static final void f0(r rVar) {
        l.z.d.l.f(rVar, "this$0");
        rVar.f8956n.d(true);
    }

    public static final void g0(r rVar, Unit unit) {
        l.z.d.l.f(rVar, "this$0");
        rVar.f8956n.T0();
    }

    public static final void h0(r rVar) {
        l.z.d.l.f(rVar, "this$0");
        rVar.f8956n.d(true);
    }

    public static final void i0(r rVar) {
        l.z.d.l.f(rVar, "this$0");
        rVar.f8956n.d(false);
    }

    public static final void j0(r rVar, String str, TVInfo tVInfo) {
        l.z.d.l.f(rVar, "this$0");
        l.z.d.l.f(str, "$userId");
        rVar.f8956n.V(str, tVInfo);
    }

    public static final void k0(r rVar, String str, Throwable th) {
        l.z.d.l.f(rVar, "this$0");
        l.z.d.l.f(str, "$userId");
        rVar.f8956n.D(str);
    }

    public static final void w0(r rVar) {
        l.z.d.l.f(rVar, "this$0");
        rVar.f8956n.d(true);
    }

    public static final void x0(r rVar) {
        l.z.d.l.f(rVar, "this$0");
        rVar.f8956n.d(false);
    }

    public static final void y0(r rVar, Unit unit) {
        l.z.d.l.f(rVar, "this$0");
        rVar.f8956n.a1();
    }

    public static final void z0(r rVar, String str, Throwable th) {
        l.z.d.l.f(rVar, "this$0");
        l.z.d.l.f(str, "$userId");
        rVar.f8956n.D(str);
    }

    @Override
    public void M(Context context, final String str) {
        l.z.d.l.f(context, "context");
        l.z.d.l.f(str, "userId");
        String userCode = new UserCode(str).toString();
        PioneerService pioneerService = i.f.a.e.h.b.b.a.a().getPioneerService();
        i.f.a.e.f.i0.a aVar = i.f.a.e.f.i0.a.a;
        this.f8958p = pioneerService.pioneerRequest(!aVar.h(context) ? "https://device-auth.eu-west-1.prod.magine.com/code/confirm" : "https://device-auth.eu-west-1.test.tvoli.com/code/confirm", PioneerServiceSource.POST, userCode, Util.userAgent, aVar.h(context) ? i.f.a.e.a.a.b() : i.f.a.e.a.a.a(), Unit.class, null, i.f.a.e.f.p0.e.a.a(this.f8957o.a(), context), this.f8957o.b()).P(q.n.a.c()).C(q.g.b.a.c()).j(new q.i.a() {
            @Override
            public final void call() {
                r.w0(r.this);
            }
        }).k(new q.i.a() {
            @Override
            public final void call() {
                r.x0(r.this);
            }
        }).N(new q.i.b() {
            @Override
            public final void call(Object obj) {
                r.y0(r.this, (Unit) obj);
            }
        }, new q.i.b() {
            @Override
            public final void call(Object obj) {
                r.z0(r.this, str, (Throwable) obj);
            }
        });
    }

    @Override
    public void l(Context context, String str) {
        l.z.d.l.f(context, "context");
        l.z.d.l.f(str, "userId");
        String userCode = new UserCode(str).toString();
        PioneerService pioneerService = i.f.a.e.h.b.b.a.a().getPioneerService();
        i.f.a.e.f.i0.a aVar = i.f.a.e.f.i0.a.a;
        this.f8958p = pioneerService.pioneerRequest(!aVar.h(context) ? "https://device-auth.eu-west-1.prod.magine.com/code/deny" : "https://device-auth.eu-west-1.test.tvoli.com/code/deny", PioneerServiceSource.POST, userCode, Util.userAgent, aVar.h(context) ? i.f.a.e.a.a.b() : i.f.a.e.a.a.a(), Unit.class, null, i.f.a.e.f.p0.e.a.a(this.f8957o.a(), context), this.f8957o.b()).P(q.n.a.c()).C(q.g.b.a.c()).j(new q.i.a() {
            @Override
            public final void call() {
                r.f0(r.this);
            }
        }).N(new q.i.b() {
            @Override
            public final void call(Object obj) {
                r.g0(r.this, (Unit) obj);
            }
        }, new q.i.b() {
            @Override
            public final void call(Object obj) {
                r.e0(r.this, (Throwable) obj);
            }
        });
    }

    @Override
    public void q(Context context, final String str) {
        StringBuilder sb;
        String str2;
        l.z.d.l.f(context, "context");
        l.z.d.l.f(str, "userId");
        PioneerService pioneerService = i.f.a.e.h.b.b.a.a().getPioneerService();
        i.f.a.e.f.i0.a aVar = i.f.a.e.f.i0.a.a;
        if (aVar.h(context)) {
            sb = new StringBuilder();
            str2 = "https://device-auth.eu-west-1.test.tvoli.com/code/check?userCode=";
        } else {
            sb = new StringBuilder();
            str2 = "https://device-auth.eu-west-1.prod.magine.com/code/check?userCode=";
        }
        sb.append(str2);
        sb.append(str);
        this.f8958p = pioneerService.pioneerRequest(sb.toString(), PioneerServiceSource.GET, "", Util.userAgent, aVar.h(context) ? i.f.a.e.a.a.b() : i.f.a.e.a.a.a(), TVInfo.class, null, i.f.a.e.f.p0.e.a.a(this.f8957o.a(), context), this.f8957o.b()).P(q.n.a.c()).C(q.g.b.a.c()).j(new q.i.a() {
            @Override
            public final void call() {
                r.h0(r.this);
            }
        }).k(new q.i.a() {
            @Override
            public final void call() {
                r.i0(r.this);
            }
        }).N(new q.i.b() {
            @Override
            public final void call(Object obj) {
                r.j0(r.this, str, (TVInfo) obj);
            }
        }, new q.i.b() {
            @Override
            public final void call(Object obj) {
                r.k0(r.this, str, (Throwable) obj);
            }
        });
    }
}