package com.martsnew.data.model.response;

import B6.v;
import P6.g;
import d5.AbstractC0844a;
import e0.C0853a;
import o6.AbstractC1391k;
import o6.AbstractC1394n;
import o6.AbstractC1397q;
import o6.x;

/* JADX INFO: loaded from: classes.dex */
public final class AllSettingsResponseJsonAdapter extends AbstractC1391k {

    /* JADX INFO: renamed from: a, reason: collision with root package name */
    public final C0853a f10655a;

    /* JADX INFO: renamed from: b, reason: collision with root package name */
    public final AbstractC1391k f10656b;

    /* JADX INFO: renamed from: c, reason: collision with root package name */
    public final AbstractC1391k f10657c;

    /* JADX INFO: renamed from: d, reason: collision with root package name */
    public final AbstractC1391k f10658d;

    /* JADX INFO: renamed from: e, reason: collision with root package name */
    public final AbstractC1391k f10659e;

    public AllSettingsResponseJsonAdapter(x xVar) {
        g.e(xVar, "moshi");
        this.f10655a = C0853a.B("player", "download", "contacts", "app_token");
        v vVar = v.f1034q;
        this.f10656b = xVar.b(ListPlayerResponse.class, vVar, "player");
        this.f10657c = xVar.b(DownloaderResponse.class, vVar, "downloader");
        this.f10658d = xVar.b(ContactLinkResponse.class, vVar, "contactLink");
        this.f10659e = xVar.b(String.class, vVar, "appToken");
    }

    @Override // o6.AbstractC1391k
    public final Object b(AbstractC1394n abstractC1394n) {
        g.e(abstractC1394n, "reader");
        abstractC1394n.b();
        ListPlayerResponse listPlayerResponse = null;
        DownloaderResponse downloaderResponse = null;
        ContactLinkResponse contactLinkResponse = null;
        String str = null;
        while (abstractC1394n.n()) {
            int iQ = abstractC1394n.Q(this.f10655a);
            if (iQ == -1) {
                abstractC1394n.V();
                abstractC1394n.f0();
            } else if (iQ == 0) {
                listPlayerResponse = (ListPlayerResponse) this.f10656b.b(abstractC1394n);
            } else if (iQ == 1) {
                downloaderResponse = (DownloaderResponse) this.f10657c.b(abstractC1394n);
            } else if (iQ == 2) {
                contactLinkResponse = (ContactLinkResponse) this.f10658d.b(abstractC1394n);
            } else if (iQ == 3) {
                str = (String) this.f10659e.b(abstractC1394n);
            }
        }
        abstractC1394n.j();
        return new AllSettingsResponse(listPlayerResponse, downloaderResponse, contactLinkResponse, str);
    }

    @Override // o6.AbstractC1391k
    public final void e(AbstractC1397q abstractC1397q, Object obj) {
        AllSettingsResponse allSettingsResponse = (AllSettingsResponse) obj;
        g.e(abstractC1397q, "writer");
        if (allSettingsResponse == null) {
            throw new NullPointerException("value_ was null! Wrap in .nullSafe() to write nullable values.");
        }
        abstractC1397q.b();
        abstractC1397q.m("player");
        this.f10656b.e(abstractC1397q, allSettingsResponse.f10651a);
        abstractC1397q.m("download");
        this.f10657c.e(abstractC1397q, allSettingsResponse.f10652b);
        abstractC1397q.m("contacts");
        this.f10658d.e(abstractC1397q, allSettingsResponse.f10653c);
        abstractC1397q.m("app_token");
        this.f10659e.e(abstractC1397q, allSettingsResponse.f10654d);
        abstractC1397q.g();
    }

    public final String toString() {
        return AbstractC0844a.h(41, "GeneratedJsonAdapter(AllSettingsResponse)");
    }
}
