package com.ifpdos.udi.sdk.service.doc.opensdk;

import com.ifpdos.udi.sdk.kotlin.comment.parser.CommentDetails;
import com.ifpdos.udi.sdk.service.doc.base.ApiInfo;
import com.ifpdos.udi.sdk.service.doc.base.ClassParser;
import com.ifpdos.udi.sdk.service.doc.base.GenericClassWrapper;
import com.ifpdos.udi.sdk.service.doc.base.GenericFieldWrapper;
import com.ifpdos.udi.sdk.service.doc.base.IClassWrapper;
import com.ifpdos.udi.sdk.service.doc.base.IDocGenerator;
import com.ifpdos.udi.sdk.service.doc.base.IFieldWrapper;
import com.ifpdos.udi.sdk.service.doc.base.Notify;
import com.ifpdos.udi.sdk.service.doc.base.Request;
import com.ifpdos.udi.sdk.service.doc.base.Uri;
import com.ifpdos.udi.sdk.service.doc.opensdk.OpenSdkUdiExtendDescGenerator;
import com.seewo.vcommons.constants.SeewoIntent;
import com.seewo.vcommons.utils.ShellCommandUtils;
import java.io.File;
import java.io.FileOutputStream;
import java.io.OutputStreamWriter;
import java.util.ArrayList;
import java.util.Iterator;
import java.util.LinkedHashMap;
import java.util.LinkedHashSet;
import java.util.List;
import java.util.Map;
import java.util.Set;
import kotlin.Metadata;
import kotlin.Unit;
import kotlin.collections.CollectionsKt;
import kotlin.io.CloseableKt;
import kotlin.jvm.functions.Function1;
import kotlin.jvm.internal.DefaultConstructorMarker;
import kotlin.jvm.internal.Intrinsics;
import kotlin.text.StringsKt;
import kotlinx.serialization.json.internal.AbstractJsonLexerKt;

/* JADX INFO: compiled from: OpenSdkUdiExtendDescGenerator.kt */
/* JADX INFO: loaded from: classes.dex */
@Metadata(d1 = {"\u0000j\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0010 \n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010#\n\u0002\u0010\u000e\n\u0002\b\u0002\n\u0002\u0010$\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0010\u0002\n\u0002\b\u0003\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0018\u0002\n\u0002\b\u0005\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u000e\u0018\u00002\u00020\u0001:\u0007-./0123B\u0005¢\u0006\u0002\u0010\u0002J\u0010\u0010\u0015\u001a\u00020\u00162\u0006\u0010\u0017\u001a\u00020\u0007H\u0002J\u0010\u0010\u0018\u001a\u00020\u00162\u0006\u0010\u0019\u001a\u00020\u001aH\u0002J\u0010\u0010\u0018\u001a\u00020\u00162\u0006\u0010\u0017\u001a\u00020\u0007H\u0002J.\u0010\u001b\u001a\u00020\u00162\f\u0010\u0003\u001a\b\u0012\u0004\u0012\u00020\u00050\u00042\u0006\u0010\u0012\u001a\u00020\u00132\u0006\u0010\b\u001a\u00020\t2\u0006\u0010\u001c\u001a\u00020\u0007H\u0016J\u0010\u0010\u001d\u001a\u00020\u00162\u0006\u0010\u0019\u001a\u00020\u001eH\u0002J\u0010\u0010\u001f\u001a\u00020\u00162\u0006\u0010 \u001a\u00020\u0007H\u0002J\u0010\u0010!\u001a\u00020\u00162\u0006\u0010\u0019\u001a\u00020\u001aH\u0002J\u001e\u0010\"\u001a\u00020\u00162\u0006\u0010\u0019\u001a\u00020\u001a2\f\u0010#\u001a\b\u0012\u0004\u0012\u00020$0\u0004H\u0002J\u0010\u0010%\u001a\u00020&2\u0006\u0010'\u001a\u00020\u0005H\u0002J\u0010\u0010(\u001a\u00020\u00162\u0006\u0010)\u001a\u00020\fH\u0002J\u0012\u0010*\u001a\u0004\u0018\u00010\f2\u0006\u0010+\u001a\u00020\u0013H\u0002J\u0012\u0010,\u001a\u00020\f2\b\u0010+\u001a\u0004\u0018\u00010\fH\u0002R\u0014\u0010\u0003\u001a\b\u0012\u0004\u0012\u00020\u00050\u0004X\u0082.¢\u0006\u0002\n\u0000R\u000e\u0010\u0006\u001a\u00020\u0007X\u0082.¢\u0006\u0002\n\u0000R\u000e\u0010\b\u001a\u00020\tX\u0082.¢\u0006\u0002\n\u0000R\u0014\u0010\n\u001a\b\u0012\u0004\u0012\u00020\f0\u000bX\u0082\u0004¢\u0006\u0002\n\u0000R\u000e\u0010\r\u001a\u00020\u0007X\u0082.¢\u0006\u0002\n\u0000R\u001a\u0010\u000e\u001a\u000e\u0012\u0004\u0012\u00020\u0010\u0012\u0004\u0012\u00020\u00110\u000fX\u0082.¢\u0006\u0002\n\u0000R\u000e\u0010\u0012\u001a\u00020\u0013X\u0082.¢\u0006\u0002\n\u0000R\u001a\u0010\u0014\u001a\u000e\u0012\u0004\u0012\u00020\u0010\u0012\u0004\u0012\u00020\u00110\u000fX\u0082.¢\u0006\u0002\n\u0000¨\u00064"}, d2 = {"Lcom/ifpdos/udi/sdk/service/doc/opensdk/OpenSdkUdiExtendDescGenerator;", "Lcom/ifpdos/udi/sdk/service/doc/base/IDocGenerator;", "()V", "apis", "", "Lcom/ifpdos/udi/sdk/service/doc/base/ApiInfo;", "classDir", "Ljava/io/File;", "classParser", "Lcom/ifpdos/udi/sdk/service/doc/base/ClassParser;", "classes", "", "", "enumDir", "getters", "", "Lcom/ifpdos/udi/sdk/service/doc/base/Uri;", "Lcom/ifpdos/udi/sdk/service/doc/base/Request$Handler;", "serviceComment", "Lcom/ifpdos/udi/sdk/kotlin/comment/parser/CommentDetails;", "setters", "genApiDesc", "", "outputDir", "genClassDesc", "clazz", "Lcom/ifpdos/udi/sdk/service/doc/base/IClassWrapper;", "genDoc", "docDir", "genGenericClassDesc", "Lcom/ifpdos/udi/sdk/service/doc/base/GenericClassWrapper;", "mkdirIfNotExists", "dir", "onParserClass", "onParserEnum", "value", "Lcom/ifpdos/udi/sdk/service/doc/base/IFieldWrapper;", "parserApi", "Lcom/ifpdos/udi/sdk/service/doc/opensdk/OpenSdkUdiExtendDescGenerator$Api;", "info", "parserClass", "className", "parserName", "comment", "standComment", "Api", "ClassFieldInfo", "ClassInfo", "EnumClassInfo", "EnumFieldInfo", "Operation", "Result", "doc-opensdk"}, k = 1, mv = {1, 6, 0}, xi = 48)
public final class OpenSdkUdiExtendDescGenerator implements IDocGenerator {
    private List<ApiInfo> apis;
    private File classDir;
    private ClassParser classParser;
    private final Set<String> classes = new LinkedHashSet();
    private File enumDir;
    private Map<Uri, Request.Handler> getters;
    private CommentDetails serviceComment;
    private Map<Uri, Request.Handler> setters;

    @Override // com.ifpdos.udi.sdk.service.doc.base.IDocGenerator
    public void genDoc(List<ApiInfo> apis, CommentDetails serviceComment, ClassParser classParser, File docDir) throws Exception {
        Set<Request.Handler> handlers;
        Set<Request.Handler> handlers2;
        Intrinsics.checkNotNullParameter(apis, "apis");
        Intrinsics.checkNotNullParameter(serviceComment, "serviceComment");
        Intrinsics.checkNotNullParameter(classParser, "classParser");
        Intrinsics.checkNotNullParameter(docDir, "docDir");
        this.apis = apis;
        this.serviceComment = serviceComment;
        LinkedHashMap linkedHashMap = new LinkedHashMap();
        LinkedHashMap linkedHashMap2 = new LinkedHashMap();
        List<ApiInfo> list = this.apis;
        if (list == null) {
            Intrinsics.throwUninitializedPropertyAccessException("apis");
            list = null;
        }
        for (ApiInfo apiInfo : list) {
            Request getterRequest = apiInfo.getGetterRequest();
            if (getterRequest != null && (handlers2 = getterRequest.getHandlers()) != null && !handlers2.isEmpty()) {
                linkedHashMap.put(apiInfo.getUri(), CollectionsKt.last(handlers2));
            }
            Request setterRequest = apiInfo.getSetterRequest();
            if (setterRequest != null && (handlers = setterRequest.getHandlers()) != null && !handlers.isEmpty()) {
                linkedHashMap2.put(apiInfo.getUri(), CollectionsKt.last(handlers));
            }
        }
        this.setters = linkedHashMap2;
        this.getters = linkedHashMap;
        this.classParser = classParser;
        File file = new File(docDir, "doc-opensdk");
        genApiDesc(file);
        genClassDesc(file);
    }

    private final void mkdirIfNotExists(File dir) {
        if (dir.exists()) {
            return;
        }
        dir.mkdirs();
    }

    private final void parserClass(String className) {
        ClassParser classParser = this.classParser;
        ClassParser classParser2 = null;
        if (classParser == null) {
            Intrinsics.throwUninitializedPropertyAccessException("classParser");
            classParser = null;
        }
        IClassWrapper rVar = classParser.parser(className);
        if (rVar != null) {
            if (rVar.isEnum()) {
                ClassParser classParser3 = this.classParser;
                if (classParser3 == null) {
                    Intrinsics.throwUninitializedPropertyAccessException("classParser");
                } else {
                    classParser2 = classParser3;
                }
                onParserEnum(rVar, classParser2.getEnumValues(rVar));
                return;
            }
            onParserClass(rVar);
        }
    }

    private final void genClassDesc(File outputDir) {
        File file = new File(outputDir, "enum");
        this.enumDir = file;
        mkdirIfNotExists(file);
        File file2 = new File(outputDir, "class");
        this.classDir = file2;
        mkdirIfNotExists(file2);
        List<ApiInfo> list = this.apis;
        if (list == null) {
            Intrinsics.throwUninitializedPropertyAccessException("apis");
            list = null;
        }
        for (ApiInfo apiInfo : list) {
            Request getterRequest = apiInfo.getGetterRequest();
            if (getterRequest != null) {
                parserClass(getterRequest.getRequestClass());
                parserClass(getterRequest.getResponseClass());
            }
            Request setterRequest = apiInfo.getSetterRequest();
            if (setterRequest != null) {
                parserClass(setterRequest.getRequestClass());
                parserClass(setterRequest.getResponseClass());
            }
            Notify notify = apiInfo.getNotify();
            if (notify != null) {
                parserClass(notify.getNotifyClass());
            }
        }
    }

    private final void genApiDesc(File outputDir) throws Exception {
        ArrayList arrayList = new ArrayList();
        CommentDetails commentDetails = this.serviceComment;
        if (commentDetails == null) {
            Intrinsics.throwUninitializedPropertyAccessException("serviceComment");
            commentDetails = null;
        }
        String str = parserName(commentDetails);
        if (str == null) {
            throw new Exception("need @name comment for ProtocolDefine.kt to define service name");
        }
        List<ApiInfo> list = this.apis;
        if (list == null) {
            Intrinsics.throwUninitializedPropertyAccessException("apis");
            list = null;
        }
        Iterator<T> it = list.iterator();
        while (it.hasNext()) {
            arrayList.add(parserApi((ApiInfo) it.next()));
        }
        File file = new File(outputDir, "api");
        mkdirIfNotExists(file);
        FileOutputStream fileOutputStream = new FileOutputStream(new File(file, str + ".json"));
        try {
            OutputStreamWriter outputStreamWriter = new OutputStreamWriter(fileOutputStream, "utf-8");
            outputStreamWriter.write(new Result(arrayList).toJson());
            outputStreamWriter.flush();
            Unit unit = Unit.INSTANCE;
            CloseableKt.closeFinally(fileOutputStream, null);
        } finally {
        }
    }

    private final String parserName(CommentDetails comment) {
        List<String> list = comment.getAnnotations().get("name");
        if (list != null) {
            return list.get(0);
        }
        return null;
    }

    private final Api parserApi(ApiInfo info) {
        Operation operation;
        Operation operation2;
        Operation operation3;
        String methodName;
        Request getterRequest = info.getGetterRequest();
        String methodName2 = "";
        if (getterRequest != null) {
            if (getterRequest.getHandlers().isEmpty()) {
                methodName = "";
            } else {
                methodName = ((Request.Handler) CollectionsKt.last(getterRequest.getHandlers())).getMethodName();
            }
            operation = new Operation(true, Integer.valueOf(getterRequest.getPermission().getPermission()), getterRequest.getRequestClass(), getterRequest.getResponseClass(), methodName);
        } else {
            operation = new Operation(false, null, null, null, null, 30, null);
        }
        Operation operation4 = operation;
        Request setterRequest = info.getSetterRequest();
        if (setterRequest != null) {
            if (!setterRequest.getHandlers().isEmpty()) {
                methodName2 = ((Request.Handler) CollectionsKt.last(setterRequest.getHandlers())).getMethodName();
            }
            operation2 = new Operation(true, Integer.valueOf(setterRequest.getPermission().getPermission()), setterRequest.getRequestClass(), setterRequest.getResponseClass(), methodName2);
        } else {
            operation2 = new Operation(false, null, null, null, null, 30, null);
        }
        if (info.getNotify() != null) {
            Notify notify = info.getNotify();
            Intrinsics.checkNotNull(notify);
            Integer numValueOf = Integer.valueOf(notify.getPermission().getPermission());
            Notify notify2 = info.getNotify();
            Intrinsics.checkNotNull(notify2);
            operation3 = new Operation(true, numValueOf, notify2.getNotifyClass(), null, null, 24, null);
        } else {
            operation3 = new Operation(false, null, null, null, null, 30, null);
        }
        return new Api(info.getApiName(), standComment(info.getComment().getTotal()), info.getUri().getMqttTopic(), operation4, operation2, operation3);
    }

    private final void onParserEnum(IClassWrapper clazz, List<? extends IFieldWrapper> value) {
        if (this.classes.contains(clazz.getFullName())) {
            return;
        }
        this.classes.add(clazz.getFullName());
        String fullName = clazz.getFullName();
        CommentDetails comment = clazz.getComment();
        String strStandComment = standComment(comment != null ? comment.getTotal() : null);
        List<? extends IFieldWrapper> list = value;
        ArrayList arrayList = new ArrayList(CollectionsKt.collectionSizeOrDefault(list, 10));
        for (IFieldWrapper iFieldWrapper : list) {
            String name = iFieldWrapper.getName();
            String rawName = iFieldWrapper.getRawName();
            CommentDetails comment2 = iFieldWrapper.getComment();
            arrayList.add(new EnumFieldInfo(name, rawName, standComment(comment2 != null ? comment2.getTotal() : null)));
        }
        EnumClassInfo enumClassInfo = new EnumClassInfo(fullName, strStandComment, arrayList);
        File file = this.enumDir;
        if (file == null) {
            Intrinsics.throwUninitializedPropertyAccessException("enumDir");
            file = null;
        }
        FileOutputStream fileOutputStream = new FileOutputStream(new File(file, clazz.getFullName() + ".json"));
        try {
            OutputStreamWriter outputStreamWriter = new OutputStreamWriter(fileOutputStream, "utf-8");
            outputStreamWriter.write(enumClassInfo.toJson());
            outputStreamWriter.flush();
            Unit unit = Unit.INSTANCE;
            CloseableKt.closeFinally(fileOutputStream, null);
        } finally {
        }
    }

    private final void onParserClass(IClassWrapper clazz) {
        if (this.classes.contains(clazz.getFullName())) {
            return;
        }
        this.classes.add(clazz.getFullName());
        if (clazz instanceof GenericClassWrapper) {
            genGenericClassDesc((GenericClassWrapper) clazz);
        } else {
            genClassDesc(clazz);
        }
        Iterator it = IClassWrapper.DefaultImpls.getFields$default(clazz, false, 1, null).iterator();
        while (it.hasNext()) {
            parserClass(((IFieldWrapper) it.next()).getType());
        }
    }

    private final void genGenericClassDesc(GenericClassWrapper clazz) {
        List listSplit$default = StringsKt.split$default((CharSequence) clazz.getRawType(), new String[]{"<"}, false, 0, 6, (Object) null);
        String str = (String) listSplit$default.get(0);
        String strSubstring = ((String) listSplit$default.get(1)).substring(0, ((String) listSplit$default.get(1)).length() - 1);
        Intrinsics.checkNotNullExpressionValue(strSubstring, "this as java.lang.String…ing(startIndex, endIndex)");
        List listSplit$default2 = StringsKt.split$default((CharSequence) strSubstring, new String[]{","}, false, 0, 6, (Object) null);
        List<IFieldWrapper> fields$default = IClassWrapper.DefaultImpls.getFields$default(clazz, false, 1, null);
        ArrayList arrayList = new ArrayList(CollectionsKt.collectionSizeOrDefault(fields$default, 10));
        for (IFieldWrapper iFieldWrapper : fields$default) {
            String name = iFieldWrapper.getName();
            String rawType = ((GenericFieldWrapper) iFieldWrapper).getRawType();
            CommentDetails comment = iFieldWrapper.getComment();
            arrayList.add(new ClassFieldInfo(name, rawType, standComment(comment != null ? comment.getTotal() : null)));
        }
        ArrayList arrayList2 = arrayList;
        CommentDetails comment2 = clazz.getComment();
        ClassInfo classInfo = new ClassInfo(str, standComment(comment2 != null ? comment2.getTotal() : null), listSplit$default2, arrayList2);
        File file = this.classDir;
        if (file == null) {
            Intrinsics.throwUninitializedPropertyAccessException("classDir");
            file = null;
        }
        FileOutputStream fileOutputStream = new FileOutputStream(new File(file, str + ".json"));
        try {
            OutputStreamWriter outputStreamWriter = new OutputStreamWriter(fileOutputStream, "utf-8");
            outputStreamWriter.write(classInfo.toJson());
            outputStreamWriter.flush();
            Unit unit = Unit.INSTANCE;
            CloseableKt.closeFinally(fileOutputStream, null);
        } finally {
        }
    }

    private final void genClassDesc(IClassWrapper clazz) {
        List<IFieldWrapper> fields$default = IClassWrapper.DefaultImpls.getFields$default(clazz, false, 1, null);
        ArrayList arrayList = new ArrayList(CollectionsKt.collectionSizeOrDefault(fields$default, 10));
        for (IFieldWrapper iFieldWrapper : fields$default) {
            String name = iFieldWrapper.getName();
            String type = iFieldWrapper.getType();
            CommentDetails comment = iFieldWrapper.getComment();
            arrayList.add(new ClassFieldInfo(name, type, standComment(comment != null ? comment.getTotal() : null)));
        }
        ArrayList arrayList2 = arrayList;
        String fullName = clazz.getFullName();
        CommentDetails comment2 = clazz.getComment();
        ClassInfo classInfo = new ClassInfo(fullName, standComment(comment2 != null ? comment2.getTotal() : null), CollectionsKt.emptyList(), arrayList2);
        File file = this.classDir;
        if (file == null) {
            Intrinsics.throwUninitializedPropertyAccessException("classDir");
            file = null;
        }
        FileOutputStream fileOutputStream = new FileOutputStream(new File(file, clazz.getFullName() + ".json"));
        try {
            OutputStreamWriter outputStreamWriter = new OutputStreamWriter(fileOutputStream, "utf-8");
            outputStreamWriter.write(classInfo.toJson());
            outputStreamWriter.flush();
            Unit unit = Unit.INSTANCE;
            CloseableKt.closeFinally(fileOutputStream, null);
        } finally {
        }
    }

    private final String standComment(String comment) {
        String strReplace$default;
        return (comment == null || (strReplace$default = StringsKt.replace$default(comment, ShellCommandUtils.COMMAND_LINE_END, "\\n", false, 4, (Object) null)) == null) ? "" : strReplace$default;
    }

    /* JADX INFO: compiled from: OpenSdkUdiExtendDescGenerator.kt */
    @Metadata(d1 = {"\u0000\u001e\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0000\n\u0002\u0010\u000b\n\u0000\n\u0002\u0010\b\n\u0000\n\u0002\u0010\u000e\n\u0002\b\u0019\b\u0086\b\u0018\u00002\u00020\u0001B=\u0012\u0006\u0010\u0002\u001a\u00020\u0003\u0012\n\b\u0002\u0010\u0004\u001a\u0004\u0018\u00010\u0005\u0012\n\b\u0002\u0010\u0006\u001a\u0004\u0018\u00010\u0007\u0012\n\b\u0002\u0010\b\u001a\u0004\u0018\u00010\u0007\u0012\n\b\u0002\u0010\t\u001a\u0004\u0018\u00010\u0007¢\u0006\u0002\u0010\nJ\t\u0010\u0014\u001a\u00020\u0003HÆ\u0003J\u0010\u0010\u0015\u001a\u0004\u0018\u00010\u0005HÆ\u0003¢\u0006\u0002\u0010\u0011J\u000b\u0010\u0016\u001a\u0004\u0018\u00010\u0007HÆ\u0003J\u000b\u0010\u0017\u001a\u0004\u0018\u00010\u0007HÆ\u0003J\u000b\u0010\u0018\u001a\u0004\u0018\u00010\u0007HÆ\u0003JH\u0010\u0019\u001a\u00020\u00002\b\b\u0002\u0010\u0002\u001a\u00020\u00032\n\b\u0002\u0010\u0004\u001a\u0004\u0018\u00010\u00052\n\b\u0002\u0010\u0006\u001a\u0004\u0018\u00010\u00072\n\b\u0002\u0010\b\u001a\u0004\u0018\u00010\u00072\n\b\u0002\u0010\t\u001a\u0004\u0018\u00010\u0007HÆ\u0001¢\u0006\u0002\u0010\u001aJ\u0013\u0010\u001b\u001a\u00020\u00032\b\u0010\u001c\u001a\u0004\u0018\u00010\u0001HÖ\u0003J\t\u0010\u001d\u001a\u00020\u0005HÖ\u0001J\u0006\u0010\u001e\u001a\u00020\u0007J\t\u0010\u001f\u001a\u00020\u0007HÖ\u0001R\u0011\u0010\u0002\u001a\u00020\u0003¢\u0006\b\n\u0000\u001a\u0004\b\u000b\u0010\fR\u0013\u0010\t\u001a\u0004\u0018\u00010\u0007¢\u0006\b\n\u0000\u001a\u0004\b\r\u0010\u000eR\u0013\u0010\u0006\u001a\u0004\u0018\u00010\u0007¢\u0006\b\n\u0000\u001a\u0004\b\u000f\u0010\u000eR\u0015\u0010\u0004\u001a\u0004\u0018\u00010\u0005¢\u0006\n\n\u0002\u0010\u0012\u001a\u0004\b\u0010\u0010\u0011R\u0013\u0010\b\u001a\u0004\u0018\u00010\u0007¢\u0006\b\n\u0000\u001a\u0004\b\u0013\u0010\u000e¨\u0006 "}, d2 = {"Lcom/ifpdos/udi/sdk/service/doc/opensdk/OpenSdkUdiExtendDescGenerator$Operation;", "", SeewoIntent.KEY_SET_WOL_SLOT, "", SeewoIntent.KEY_FILE_PERMISSION, "", "param", "", "response", "handleMethod", "(ZLjava/lang/Integer;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V", "getEnable", "()Z", "getHandleMethod", "()Ljava/lang/String;", "getParam", "getPermission", "()Ljava/lang/Integer;", "Ljava/lang/Integer;", "getResponse", "component1", "component2", "component3", "component4", "component5", "copy", "(ZLjava/lang/Integer;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)Lcom/ifpdos/udi/sdk/service/doc/opensdk/OpenSdkUdiExtendDescGenerator$Operation;", "equals", "other", "hashCode", "toJson", "toString", "doc-opensdk"}, k = 1, mv = {1, 6, 0}, xi = 48)
    public static final /* data */ class Operation {
        private final boolean enable;
        private final String handleMethod;
        private final String param;
        private final Integer permission;
        private final String response;

        public static /* synthetic */ Operation copy$default(Operation operation, boolean z, Integer num, String str, String str2, String str3, int i, Object obj) {
            if ((i & 1) != 0) {
                z = operation.enable;
            }
            if ((i & 2) != 0) {
                num = operation.permission;
            }
            Integer num2 = num;
            if ((i & 4) != 0) {
                str = operation.param;
            }
            String str4 = str;
            if ((i & 8) != 0) {
                str2 = operation.response;
            }
            String str5 = str2;
            if ((i & 16) != 0) {
                str3 = operation.handleMethod;
            }
            return operation.copy(z, num2, str4, str5, str3);
        }

        /* JADX INFO: renamed from: component1, reason: from getter */
        public final boolean getEnable() {
            return this.enable;
        }

        /* JADX INFO: renamed from: component2, reason: from getter */
        public final Integer getPermission() {
            return this.permission;
        }

        /* JADX INFO: renamed from: component3, reason: from getter */
        public final String getParam() {
            return this.param;
        }

        /* JADX INFO: renamed from: component4, reason: from getter */
        public final String getResponse() {
            return this.response;
        }

        /* JADX INFO: renamed from: component5, reason: from getter */
        public final String getHandleMethod() {
            return this.handleMethod;
        }

        public final Operation copy(boolean enable, Integer permission, String param, String response, String handleMethod) {
            return new Operation(enable, permission, param, response, handleMethod);
        }

        public boolean equals(Object other) {
            if (this == other) {
                return true;
            }
            if (!(other instanceof Operation)) {
                return false;
            }
            Operation operation = (Operation) other;
            return this.enable == operation.enable && Intrinsics.areEqual(this.permission, operation.permission) && Intrinsics.areEqual(this.param, operation.param) && Intrinsics.areEqual(this.response, operation.response) && Intrinsics.areEqual(this.handleMethod, operation.handleMethod);
        }

        /* JADX WARN: Multi-variable type inference failed */
        /* JADX WARN: Type inference failed for: r0v1, types: [int] */
        /* JADX WARN: Type inference failed for: r0v10 */
        /* JADX WARN: Type inference failed for: r0v11 */
        public int hashCode() {
            boolean z = this.enable;
            ?? r0 = z;
            if (z) {
                r0 = 1;
            }
            int i = r0 * 31;
            Integer num = this.permission;
            int iHashCode = (i + (num == null ? 0 : num.hashCode())) * 31;
            String str = this.param;
            int iHashCode2 = (iHashCode + (str == null ? 0 : str.hashCode())) * 31;
            String str2 = this.response;
            int iHashCode3 = (iHashCode2 + (str2 == null ? 0 : str2.hashCode())) * 31;
            String str3 = this.handleMethod;
            return iHashCode3 + (str3 != null ? str3.hashCode() : 0);
        }

        public String toString() {
            return "Operation(enable=" + this.enable + ", permission=" + this.permission + ", param=" + this.param + ", response=" + this.response + ", handleMethod=" + this.handleMethod + ')';
        }

        public Operation(boolean z, Integer num, String str, String str2, String str3) {
            this.enable = z;
            this.permission = num;
            this.param = str;
            this.response = str2;
            this.handleMethod = str3;
        }

        public /* synthetic */ Operation(boolean z, Integer num, String str, String str2, String str3, int i, DefaultConstructorMarker defaultConstructorMarker) {
            this(z, (i & 2) != 0 ? null : num, (i & 4) != 0 ? null : str, (i & 8) != 0 ? null : str2, (i & 16) != 0 ? null : str3);
        }

        public final boolean getEnable() {
            return this.enable;
        }

        public final Integer getPermission() {
            return this.permission;
        }

        public final String getParam() {
            return this.param;
        }

        public final String getResponse() {
            return this.response;
        }

        public final String getHandleMethod() {
            return this.handleMethod;
        }

        public final String toJson() {
            StringBuilder sb = new StringBuilder();
            sb.append("{\"enable\":" + this.enable);
            if (this.permission != null) {
                sb.append(",\"permission\":" + this.permission);
            }
            if (this.param != null) {
                sb.append(",\"param\":\"" + this.param + '\"');
            }
            if (this.response != null) {
                sb.append(",\"response\":\"" + this.response + '\"');
            }
            if (this.handleMethod != null) {
                sb.append(",\"handleMethod\":\"" + this.handleMethod + '\"');
            }
            sb.append("}");
            String string = sb.toString();
            Intrinsics.checkNotNullExpressionValue(string, "sb.toString()");
            return string;
        }
    }

    /* JADX INFO: compiled from: OpenSdkUdiExtendDescGenerator.kt */
    @Metadata(d1 = {"\u0000*\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0000\n\u0002\u0010\u000e\n\u0002\b\u0003\n\u0002\u0018\u0002\n\u0002\b\u0013\n\u0002\u0010\u000b\n\u0002\b\u0002\n\u0002\u0010\b\n\u0002\b\u0003\b\u0086\b\u0018\u00002\u00020\u0001B5\u0012\u0006\u0010\u0002\u001a\u00020\u0003\u0012\u0006\u0010\u0004\u001a\u00020\u0003\u0012\u0006\u0010\u0005\u001a\u00020\u0003\u0012\u0006\u0010\u0006\u001a\u00020\u0007\u0012\u0006\u0010\b\u001a\u00020\u0007\u0012\u0006\u0010\t\u001a\u00020\u0007¢\u0006\u0002\u0010\nJ\t\u0010\u0013\u001a\u00020\u0003HÆ\u0003J\t\u0010\u0014\u001a\u00020\u0003HÆ\u0003J\t\u0010\u0015\u001a\u00020\u0003HÆ\u0003J\t\u0010\u0016\u001a\u00020\u0007HÆ\u0003J\t\u0010\u0017\u001a\u00020\u0007HÆ\u0003J\t\u0010\u0018\u001a\u00020\u0007HÆ\u0003JE\u0010\u0019\u001a\u00020\u00002\b\b\u0002\u0010\u0002\u001a\u00020\u00032\b\b\u0002\u0010\u0004\u001a\u00020\u00032\b\b\u0002\u0010\u0005\u001a\u00020\u00032\b\b\u0002\u0010\u0006\u001a\u00020\u00072\b\b\u0002\u0010\b\u001a\u00020\u00072\b\b\u0002\u0010\t\u001a\u00020\u0007HÆ\u0001J\u0013\u0010\u001a\u001a\u00020\u001b2\b\u0010\u001c\u001a\u0004\u0018\u00010\u0001HÖ\u0003J\t\u0010\u001d\u001a\u00020\u001eHÖ\u0001J\u0006\u0010\u001f\u001a\u00020\u0003J\t\u0010 \u001a\u00020\u0003HÖ\u0001R\u0011\u0010\u0004\u001a\u00020\u0003¢\u0006\b\n\u0000\u001a\u0004\b\u000b\u0010\fR\u0011\u0010\u0006\u001a\u00020\u0007¢\u0006\b\n\u0000\u001a\u0004\b\r\u0010\u000eR\u0011\u0010\u0002\u001a\u00020\u0003¢\u0006\b\n\u0000\u001a\u0004\b\u000f\u0010\fR\u0011\u0010\t\u001a\u00020\u0007¢\u0006\b\n\u0000\u001a\u0004\b\u0010\u0010\u000eR\u0011\u0010\b\u001a\u00020\u0007¢\u0006\b\n\u0000\u001a\u0004\b\u0011\u0010\u000eR\u0011\u0010\u0005\u001a\u00020\u0003¢\u0006\b\n\u0000\u001a\u0004\b\u0012\u0010\f¨\u0006!"}, d2 = {"Lcom/ifpdos/udi/sdk/service/doc/opensdk/OpenSdkUdiExtendDescGenerator$Api;", "", "name", "", "comment", "url", "getter", "Lcom/ifpdos/udi/sdk/service/doc/opensdk/OpenSdkUdiExtendDescGenerator$Operation;", "setter", "notify", "(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Lcom/ifpdos/udi/sdk/service/doc/opensdk/OpenSdkUdiExtendDescGenerator$Operation;Lcom/ifpdos/udi/sdk/service/doc/opensdk/OpenSdkUdiExtendDescGenerator$Operation;Lcom/ifpdos/udi/sdk/service/doc/opensdk/OpenSdkUdiExtendDescGenerator$Operation;)V", "getComment", "()Ljava/lang/String;", "getGetter", "()Lcom/ifpdos/udi/sdk/service/doc/opensdk/OpenSdkUdiExtendDescGenerator$Operation;", "getName", "getNotify", "getSetter", "getUrl", "component1", "component2", "component3", "component4", "component5", "component6", "copy", "equals", "", "other", "hashCode", "", "toJson", "toString", "doc-opensdk"}, k = 1, mv = {1, 6, 0}, xi = 48)
    public static final /* data */ class Api {
        private final String comment;
        private final Operation getter;
        private final String name;
        private final Operation notify;
        private final Operation setter;
        private final String url;

        public static /* synthetic */ Api copy$default(Api api, String str, String str2, String str3, Operation operation, Operation operation2, Operation operation3, int i, Object obj) {
            if ((i & 1) != 0) {
                str = api.name;
            }
            if ((i & 2) != 0) {
                str2 = api.comment;
            }
            String str4 = str2;
            if ((i & 4) != 0) {
                str3 = api.url;
            }
            String str5 = str3;
            if ((i & 8) != 0) {
                operation = api.getter;
            }
            Operation operation4 = operation;
            if ((i & 16) != 0) {
                operation2 = api.setter;
            }
            Operation operation5 = operation2;
            if ((i & 32) != 0) {
                operation3 = api.notify;
            }
            return api.copy(str, str4, str5, operation4, operation5, operation3);
        }

        /* JADX INFO: renamed from: component1, reason: from getter */
        public final String getName() {
            return this.name;
        }

        /* JADX INFO: renamed from: component2, reason: from getter */
        public final String getComment() {
            return this.comment;
        }

        /* JADX INFO: renamed from: component3, reason: from getter */
        public final String getUrl() {
            return this.url;
        }

        /* JADX INFO: renamed from: component4, reason: from getter */
        public final Operation getGetter() {
            return this.getter;
        }

        /* JADX INFO: renamed from: component5, reason: from getter */
        public final Operation getSetter() {
            return this.setter;
        }

        /* JADX INFO: renamed from: component6, reason: from getter */
        public final Operation getNotify() {
            return this.notify;
        }

        public final Api copy(String name, String comment, String url, Operation getter, Operation setter, Operation notify) {
            Intrinsics.checkNotNullParameter(name, "name");
            Intrinsics.checkNotNullParameter(comment, "comment");
            Intrinsics.checkNotNullParameter(url, "url");
            Intrinsics.checkNotNullParameter(getter, "getter");
            Intrinsics.checkNotNullParameter(setter, "setter");
            Intrinsics.checkNotNullParameter(notify, "notify");
            return new Api(name, comment, url, getter, setter, notify);
        }

        public boolean equals(Object other) {
            if (this == other) {
                return true;
            }
            if (!(other instanceof Api)) {
                return false;
            }
            Api api = (Api) other;
            return Intrinsics.areEqual(this.name, api.name) && Intrinsics.areEqual(this.comment, api.comment) && Intrinsics.areEqual(this.url, api.url) && Intrinsics.areEqual(this.getter, api.getter) && Intrinsics.areEqual(this.setter, api.setter) && Intrinsics.areEqual(this.notify, api.notify);
        }

        public int hashCode() {
            return (((((((((this.name.hashCode() * 31) + this.comment.hashCode()) * 31) + this.url.hashCode()) * 31) + this.getter.hashCode()) * 31) + this.setter.hashCode()) * 31) + this.notify.hashCode();
        }

        public String toString() {
            return "Api(name=" + this.name + ", comment=" + this.comment + ", url=" + this.url + ", getter=" + this.getter + ", setter=" + this.setter + ", notify=" + this.notify + ')';
        }

        public Api(String name, String comment, String url, Operation getter, Operation setter, Operation notify) {
            Intrinsics.checkNotNullParameter(name, "name");
            Intrinsics.checkNotNullParameter(comment, "comment");
            Intrinsics.checkNotNullParameter(url, "url");
            Intrinsics.checkNotNullParameter(getter, "getter");
            Intrinsics.checkNotNullParameter(setter, "setter");
            Intrinsics.checkNotNullParameter(notify, "notify");
            this.name = name;
            this.comment = comment;
            this.url = url;
            this.getter = getter;
            this.setter = setter;
            this.notify = notify;
        }

        public final String getName() {
            return this.name;
        }

        public final String getComment() {
            return this.comment;
        }

        public final String getUrl() {
            return this.url;
        }

        public final Operation getGetter() {
            return this.getter;
        }

        public final Operation getSetter() {
            return this.setter;
        }

        public final Operation getNotify() {
            return this.notify;
        }

        public final String toJson() {
            return "{\"name\":\"" + this.name + "\",\"comment\":\"" + StringsKt.replace$default(this.comment, "\"", "\\\"", false, 4, (Object) null) + "\",\"url\":\"" + this.url + "\",\"getter\":" + this.getter.toJson() + ",\"setter\":" + this.setter.toJson() + ",\"notify\":" + this.notify.toJson() + AbstractJsonLexerKt.END_OBJ;
        }
    }

    /* JADX INFO: compiled from: OpenSdkUdiExtendDescGenerator.kt */
    @Metadata(d1 = {"\u0000,\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0000\n\u0002\u0010 \n\u0002\u0018\u0002\n\u0002\b\u0006\n\u0002\u0010\u000b\n\u0002\b\u0002\n\u0002\u0010\b\n\u0000\n\u0002\u0010\u000e\n\u0002\b\u0002\b\u0086\b\u0018\u00002\u00020\u0001B\u0013\u0012\f\u0010\u0002\u001a\b\u0012\u0004\u0012\u00020\u00040\u0003¢\u0006\u0002\u0010\u0005J\u000f\u0010\b\u001a\b\u0012\u0004\u0012\u00020\u00040\u0003HÆ\u0003J\u0019\u0010\t\u001a\u00020\u00002\u000e\b\u0002\u0010\u0002\u001a\b\u0012\u0004\u0012\u00020\u00040\u0003HÆ\u0001J\u0013\u0010\n\u001a\u00020\u000b2\b\u0010\f\u001a\u0004\u0018\u00010\u0001HÖ\u0003J\t\u0010\r\u001a\u00020\u000eHÖ\u0001J\u0006\u0010\u000f\u001a\u00020\u0010J\t\u0010\u0011\u001a\u00020\u0010HÖ\u0001R\u0017\u0010\u0002\u001a\b\u0012\u0004\u0012\u00020\u00040\u0003¢\u0006\b\n\u0000\u001a\u0004\b\u0006\u0010\u0007¨\u0006\u0012"}, d2 = {"Lcom/ifpdos/udi/sdk/service/doc/opensdk/OpenSdkUdiExtendDescGenerator$Result;", "", "apis", "", "Lcom/ifpdos/udi/sdk/service/doc/opensdk/OpenSdkUdiExtendDescGenerator$Api;", "(Ljava/util/List;)V", "getApis", "()Ljava/util/List;", "component1", "copy", "equals", "", "other", "hashCode", "", "toJson", "", "toString", "doc-opensdk"}, k = 1, mv = {1, 6, 0}, xi = 48)
    public static final /* data */ class Result {
        private final List<Api> apis;

        /* JADX WARN: Multi-variable type inference failed */
        public static /* synthetic */ Result copy$default(Result result, List list, int i, Object obj) {
            if ((i & 1) != 0) {
                list = result.apis;
            }
            return result.copy(list);
        }

        public final List<Api> component1() {
            return this.apis;
        }

        public final Result copy(List<Api> apis) {
            Intrinsics.checkNotNullParameter(apis, "apis");
            return new Result(apis);
        }

        public boolean equals(Object other) {
            if (this == other) {
                return true;
            }
            return (other instanceof Result) && Intrinsics.areEqual(this.apis, ((Result) other).apis);
        }

        public int hashCode() {
            return this.apis.hashCode();
        }

        public String toString() {
            return "Result(apis=" + this.apis + ')';
        }

        public Result(List<Api> apis) {
            Intrinsics.checkNotNullParameter(apis, "apis");
            this.apis = apis;
        }

        public final List<Api> getApis() {
            return this.apis;
        }

        public final String toJson() {
            return "{\"apis\":[" + CollectionsKt.joinToString$default(this.apis, ",", null, null, 0, null, new Function1<Api, CharSequence>() { // from class: com.ifpdos.udi.sdk.service.doc.opensdk.OpenSdkUdiExtendDescGenerator$Result$toJson$1
                @Override // kotlin.jvm.functions.Function1
                public final CharSequence invoke(OpenSdkUdiExtendDescGenerator.Api it) {
                    Intrinsics.checkNotNullParameter(it, "it");
                    return it.toJson();
                }
            }, 30, null) + "]}";
        }
    }

    /* JADX INFO: compiled from: OpenSdkUdiExtendDescGenerator.kt */
    @Metadata(d1 = {"\u0000\"\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0000\n\u0002\u0010\u000e\n\u0002\b\f\n\u0002\u0010\u000b\n\u0002\b\u0002\n\u0002\u0010\b\n\u0002\b\u0003\b\u0086\b\u0018\u00002\u00020\u0001B\u001d\u0012\u0006\u0010\u0002\u001a\u00020\u0003\u0012\u0006\u0010\u0004\u001a\u00020\u0003\u0012\u0006\u0010\u0005\u001a\u00020\u0003¢\u0006\u0002\u0010\u0006J\t\u0010\u000b\u001a\u00020\u0003HÆ\u0003J\t\u0010\f\u001a\u00020\u0003HÆ\u0003J\t\u0010\r\u001a\u00020\u0003HÆ\u0003J'\u0010\u000e\u001a\u00020\u00002\b\b\u0002\u0010\u0002\u001a\u00020\u00032\b\b\u0002\u0010\u0004\u001a\u00020\u00032\b\b\u0002\u0010\u0005\u001a\u00020\u0003HÆ\u0001J\u0013\u0010\u000f\u001a\u00020\u00102\b\u0010\u0011\u001a\u0004\u0018\u00010\u0001HÖ\u0003J\t\u0010\u0012\u001a\u00020\u0013HÖ\u0001J\u0006\u0010\u0014\u001a\u00020\u0003J\t\u0010\u0015\u001a\u00020\u0003HÖ\u0001R\u0011\u0010\u0005\u001a\u00020\u0003¢\u0006\b\n\u0000\u001a\u0004\b\u0007\u0010\bR\u0011\u0010\u0002\u001a\u00020\u0003¢\u0006\b\n\u0000\u001a\u0004\b\t\u0010\bR\u0011\u0010\u0004\u001a\u00020\u0003¢\u0006\b\n\u0000\u001a\u0004\b\n\u0010\b¨\u0006\u0016"}, d2 = {"Lcom/ifpdos/udi/sdk/service/doc/opensdk/OpenSdkUdiExtendDescGenerator$EnumFieldInfo;", "", "name", "", "rawName", "comment", "(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V", "getComment", "()Ljava/lang/String;", "getName", "getRawName", "component1", "component2", "component3", "copy", "equals", "", "other", "hashCode", "", "toJson", "toString", "doc-opensdk"}, k = 1, mv = {1, 6, 0}, xi = 48)
    public static final /* data */ class EnumFieldInfo {
        private final String comment;
        private final String name;
        private final String rawName;

        public static /* synthetic */ EnumFieldInfo copy$default(EnumFieldInfo enumFieldInfo, String str, String str2, String str3, int i, Object obj) {
            if ((i & 1) != 0) {
                str = enumFieldInfo.name;
            }
            if ((i & 2) != 0) {
                str2 = enumFieldInfo.rawName;
            }
            if ((i & 4) != 0) {
                str3 = enumFieldInfo.comment;
            }
            return enumFieldInfo.copy(str, str2, str3);
        }

        /* JADX INFO: renamed from: component1, reason: from getter */
        public final String getName() {
            return this.name;
        }

        /* JADX INFO: renamed from: component2, reason: from getter */
        public final String getRawName() {
            return this.rawName;
        }

        /* JADX INFO: renamed from: component3, reason: from getter */
        public final String getComment() {
            return this.comment;
        }

        public final EnumFieldInfo copy(String name, String rawName, String comment) {
            Intrinsics.checkNotNullParameter(name, "name");
            Intrinsics.checkNotNullParameter(rawName, "rawName");
            Intrinsics.checkNotNullParameter(comment, "comment");
            return new EnumFieldInfo(name, rawName, comment);
        }

        public boolean equals(Object other) {
            if (this == other) {
                return true;
            }
            if (!(other instanceof EnumFieldInfo)) {
                return false;
            }
            EnumFieldInfo enumFieldInfo = (EnumFieldInfo) other;
            return Intrinsics.areEqual(this.name, enumFieldInfo.name) && Intrinsics.areEqual(this.rawName, enumFieldInfo.rawName) && Intrinsics.areEqual(this.comment, enumFieldInfo.comment);
        }

        public int hashCode() {
            return (((this.name.hashCode() * 31) + this.rawName.hashCode()) * 31) + this.comment.hashCode();
        }

        public String toString() {
            return "EnumFieldInfo(name=" + this.name + ", rawName=" + this.rawName + ", comment=" + this.comment + ')';
        }

        public EnumFieldInfo(String name, String rawName, String comment) {
            Intrinsics.checkNotNullParameter(name, "name");
            Intrinsics.checkNotNullParameter(rawName, "rawName");
            Intrinsics.checkNotNullParameter(comment, "comment");
            this.name = name;
            this.rawName = rawName;
            this.comment = comment;
        }

        public final String getName() {
            return this.name;
        }

        public final String getRawName() {
            return this.rawName;
        }

        public final String getComment() {
            return this.comment;
        }

        public final String toJson() {
            return "{\"name\":\"" + this.name + "\",\"rawName\":\"" + this.rawName + "\",\"comment\":\"" + this.comment + "\"}";
        }
    }

    /* JADX INFO: compiled from: OpenSdkUdiExtendDescGenerator.kt */
    @Metadata(d1 = {"\u0000.\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0000\n\u0002\u0010\u000e\n\u0002\b\u0002\n\u0002\u0010 \n\u0002\u0018\u0002\n\u0002\b\u000b\n\u0002\u0010\u000b\n\u0002\b\u0002\n\u0002\u0010\b\n\u0002\b\u0003\b\u0086\b\u0018\u00002\u00020\u0001B#\u0012\u0006\u0010\u0002\u001a\u00020\u0003\u0012\u0006\u0010\u0004\u001a\u00020\u0003\u0012\f\u0010\u0005\u001a\b\u0012\u0004\u0012\u00020\u00070\u0006¢\u0006\u0002\u0010\bJ\t\u0010\u000e\u001a\u00020\u0003HÆ\u0003J\t\u0010\u000f\u001a\u00020\u0003HÆ\u0003J\u000f\u0010\u0010\u001a\b\u0012\u0004\u0012\u00020\u00070\u0006HÆ\u0003J-\u0010\u0011\u001a\u00020\u00002\b\b\u0002\u0010\u0002\u001a\u00020\u00032\b\b\u0002\u0010\u0004\u001a\u00020\u00032\u000e\b\u0002\u0010\u0005\u001a\b\u0012\u0004\u0012\u00020\u00070\u0006HÆ\u0001J\u0013\u0010\u0012\u001a\u00020\u00132\b\u0010\u0014\u001a\u0004\u0018\u00010\u0001HÖ\u0003J\t\u0010\u0015\u001a\u00020\u0016HÖ\u0001J\u0006\u0010\u0017\u001a\u00020\u0003J\t\u0010\u0018\u001a\u00020\u0003HÖ\u0001R\u0011\u0010\u0004\u001a\u00020\u0003¢\u0006\b\n\u0000\u001a\u0004\b\t\u0010\nR\u0011\u0010\u0002\u001a\u00020\u0003¢\u0006\b\n\u0000\u001a\u0004\b\u000b\u0010\nR\u0017\u0010\u0005\u001a\b\u0012\u0004\u0012\u00020\u00070\u0006¢\u0006\b\n\u0000\u001a\u0004\b\f\u0010\r¨\u0006\u0019"}, d2 = {"Lcom/ifpdos/udi/sdk/service/doc/opensdk/OpenSdkUdiExtendDescGenerator$EnumClassInfo;", "", "name", "", "comment", "values", "", "Lcom/ifpdos/udi/sdk/service/doc/opensdk/OpenSdkUdiExtendDescGenerator$EnumFieldInfo;", "(Ljava/lang/String;Ljava/lang/String;Ljava/util/List;)V", "getComment", "()Ljava/lang/String;", "getName", "getValues", "()Ljava/util/List;", "component1", "component2", "component3", "copy", "equals", "", "other", "hashCode", "", "toJson", "toString", "doc-opensdk"}, k = 1, mv = {1, 6, 0}, xi = 48)
    public static final /* data */ class EnumClassInfo {
        private final String comment;
        private final String name;
        private final List<EnumFieldInfo> values;

        /* JADX WARN: Multi-variable type inference failed */
        public static /* synthetic */ EnumClassInfo copy$default(EnumClassInfo enumClassInfo, String str, String str2, List list, int i, Object obj) {
            if ((i & 1) != 0) {
                str = enumClassInfo.name;
            }
            if ((i & 2) != 0) {
                str2 = enumClassInfo.comment;
            }
            if ((i & 4) != 0) {
                list = enumClassInfo.values;
            }
            return enumClassInfo.copy(str, str2, list);
        }

        /* JADX INFO: renamed from: component1, reason: from getter */
        public final String getName() {
            return this.name;
        }

        /* JADX INFO: renamed from: component2, reason: from getter */
        public final String getComment() {
            return this.comment;
        }

        public final List<EnumFieldInfo> component3() {
            return this.values;
        }

        public final EnumClassInfo copy(String name, String comment, List<EnumFieldInfo> values) {
            Intrinsics.checkNotNullParameter(name, "name");
            Intrinsics.checkNotNullParameter(comment, "comment");
            Intrinsics.checkNotNullParameter(values, "values");
            return new EnumClassInfo(name, comment, values);
        }

        public boolean equals(Object other) {
            if (this == other) {
                return true;
            }
            if (!(other instanceof EnumClassInfo)) {
                return false;
            }
            EnumClassInfo enumClassInfo = (EnumClassInfo) other;
            return Intrinsics.areEqual(this.name, enumClassInfo.name) && Intrinsics.areEqual(this.comment, enumClassInfo.comment) && Intrinsics.areEqual(this.values, enumClassInfo.values);
        }

        public int hashCode() {
            return (((this.name.hashCode() * 31) + this.comment.hashCode()) * 31) + this.values.hashCode();
        }

        public String toString() {
            return "EnumClassInfo(name=" + this.name + ", comment=" + this.comment + ", values=" + this.values + ')';
        }

        public EnumClassInfo(String name, String comment, List<EnumFieldInfo> values) {
            Intrinsics.checkNotNullParameter(name, "name");
            Intrinsics.checkNotNullParameter(comment, "comment");
            Intrinsics.checkNotNullParameter(values, "values");
            this.name = name;
            this.comment = comment;
            this.values = values;
        }

        public final String getName() {
            return this.name;
        }

        public final String getComment() {
            return this.comment;
        }

        public final List<EnumFieldInfo> getValues() {
            return this.values;
        }

        public final String toJson() {
            return "{\"name\":\"" + this.name + "\",\"comment\":\"" + this.comment + "\",\"values\":[" + CollectionsKt.joinToString$default(this.values, ",", null, null, 0, null, new Function1<EnumFieldInfo, CharSequence>() { // from class: com.ifpdos.udi.sdk.service.doc.opensdk.OpenSdkUdiExtendDescGenerator$EnumClassInfo$toJson$1
                @Override // kotlin.jvm.functions.Function1
                public final CharSequence invoke(OpenSdkUdiExtendDescGenerator.EnumFieldInfo it) {
                    Intrinsics.checkNotNullParameter(it, "it");
                    return it.toJson();
                }
            }, 30, null) + "]}";
        }
    }

    /* JADX INFO: compiled from: OpenSdkUdiExtendDescGenerator.kt */
    @Metadata(d1 = {"\u0000\"\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0000\n\u0002\u0010\u000e\n\u0002\b\f\n\u0002\u0010\u000b\n\u0002\b\u0002\n\u0002\u0010\b\n\u0002\b\u0003\b\u0086\b\u0018\u00002\u00020\u0001B\u001d\u0012\u0006\u0010\u0002\u001a\u00020\u0003\u0012\u0006\u0010\u0004\u001a\u00020\u0003\u0012\u0006\u0010\u0005\u001a\u00020\u0003¢\u0006\u0002\u0010\u0006J\t\u0010\u000b\u001a\u00020\u0003HÆ\u0003J\t\u0010\f\u001a\u00020\u0003HÆ\u0003J\t\u0010\r\u001a\u00020\u0003HÆ\u0003J'\u0010\u000e\u001a\u00020\u00002\b\b\u0002\u0010\u0002\u001a\u00020\u00032\b\b\u0002\u0010\u0004\u001a\u00020\u00032\b\b\u0002\u0010\u0005\u001a\u00020\u0003HÆ\u0001J\u0013\u0010\u000f\u001a\u00020\u00102\b\u0010\u0011\u001a\u0004\u0018\u00010\u0001HÖ\u0003J\t\u0010\u0012\u001a\u00020\u0013HÖ\u0001J\u0006\u0010\u0014\u001a\u00020\u0003J\t\u0010\u0015\u001a\u00020\u0003HÖ\u0001R\u0011\u0010\u0005\u001a\u00020\u0003¢\u0006\b\n\u0000\u001a\u0004\b\u0007\u0010\bR\u0011\u0010\u0002\u001a\u00020\u0003¢\u0006\b\n\u0000\u001a\u0004\b\t\u0010\bR\u0011\u0010\u0004\u001a\u00020\u0003¢\u0006\b\n\u0000\u001a\u0004\b\n\u0010\b¨\u0006\u0016"}, d2 = {"Lcom/ifpdos/udi/sdk/service/doc/opensdk/OpenSdkUdiExtendDescGenerator$ClassFieldInfo;", "", "name", "", SeewoIntent.KEY_FILE_TYPE, "comment", "(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V", "getComment", "()Ljava/lang/String;", "getName", "getType", "component1", "component2", "component3", "copy", "equals", "", "other", "hashCode", "", "toJson", "toString", "doc-opensdk"}, k = 1, mv = {1, 6, 0}, xi = 48)
    public static final /* data */ class ClassFieldInfo {
        private final String comment;
        private final String name;
        private final String type;

        public static /* synthetic */ ClassFieldInfo copy$default(ClassFieldInfo classFieldInfo, String str, String str2, String str3, int i, Object obj) {
            if ((i & 1) != 0) {
                str = classFieldInfo.name;
            }
            if ((i & 2) != 0) {
                str2 = classFieldInfo.type;
            }
            if ((i & 4) != 0) {
                str3 = classFieldInfo.comment;
            }
            return classFieldInfo.copy(str, str2, str3);
        }

        /* JADX INFO: renamed from: component1, reason: from getter */
        public final String getName() {
            return this.name;
        }

        /* JADX INFO: renamed from: component2, reason: from getter */
        public final String getType() {
            return this.type;
        }

        /* JADX INFO: renamed from: component3, reason: from getter */
        public final String getComment() {
            return this.comment;
        }

        public final ClassFieldInfo copy(String name, String type, String comment) {
            Intrinsics.checkNotNullParameter(name, "name");
            Intrinsics.checkNotNullParameter(type, "type");
            Intrinsics.checkNotNullParameter(comment, "comment");
            return new ClassFieldInfo(name, type, comment);
        }

        public boolean equals(Object other) {
            if (this == other) {
                return true;
            }
            if (!(other instanceof ClassFieldInfo)) {
                return false;
            }
            ClassFieldInfo classFieldInfo = (ClassFieldInfo) other;
            return Intrinsics.areEqual(this.name, classFieldInfo.name) && Intrinsics.areEqual(this.type, classFieldInfo.type) && Intrinsics.areEqual(this.comment, classFieldInfo.comment);
        }

        public int hashCode() {
            return (((this.name.hashCode() * 31) + this.type.hashCode()) * 31) + this.comment.hashCode();
        }

        public String toString() {
            return "ClassFieldInfo(name=" + this.name + ", type=" + this.type + ", comment=" + this.comment + ')';
        }

        public ClassFieldInfo(String name, String type, String comment) {
            Intrinsics.checkNotNullParameter(name, "name");
            Intrinsics.checkNotNullParameter(type, "type");
            Intrinsics.checkNotNullParameter(comment, "comment");
            this.name = name;
            this.type = type;
            this.comment = comment;
        }

        public final String getName() {
            return this.name;
        }

        public final String getType() {
            return this.type;
        }

        public final String getComment() {
            return this.comment;
        }

        public final String toJson() {
            return "{\"name\":\"" + this.name + "\",\"type\":\"" + this.type + "\",\"comment\":\"" + this.comment + "\"}";
        }
    }

    /* JADX INFO: compiled from: OpenSdkUdiExtendDescGenerator.kt */
    @Metadata(d1 = {"\u00000\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0000\n\u0002\u0010\u000e\n\u0002\b\u0002\n\u0002\u0010 \n\u0000\n\u0002\u0018\u0002\n\u0002\b\r\n\u0002\u0010\u000b\n\u0002\b\u0002\n\u0002\u0010\b\n\u0002\b\u0003\b\u0086\b\u0018\u00002\u00020\u0001B1\u0012\u0006\u0010\u0002\u001a\u00020\u0003\u0012\u0006\u0010\u0004\u001a\u00020\u0003\u0012\f\u0010\u0005\u001a\b\u0012\u0004\u0012\u00020\u00030\u0006\u0012\f\u0010\u0007\u001a\b\u0012\u0004\u0012\u00020\b0\u0006¢\u0006\u0002\u0010\tJ\t\u0010\u0010\u001a\u00020\u0003HÆ\u0003J\t\u0010\u0011\u001a\u00020\u0003HÆ\u0003J\u000f\u0010\u0012\u001a\b\u0012\u0004\u0012\u00020\u00030\u0006HÆ\u0003J\u000f\u0010\u0013\u001a\b\u0012\u0004\u0012\u00020\b0\u0006HÆ\u0003J=\u0010\u0014\u001a\u00020\u00002\b\b\u0002\u0010\u0002\u001a\u00020\u00032\b\b\u0002\u0010\u0004\u001a\u00020\u00032\u000e\b\u0002\u0010\u0005\u001a\b\u0012\u0004\u0012\u00020\u00030\u00062\u000e\b\u0002\u0010\u0007\u001a\b\u0012\u0004\u0012\u00020\b0\u0006HÆ\u0001J\u0013\u0010\u0015\u001a\u00020\u00162\b\u0010\u0017\u001a\u0004\u0018\u00010\u0001HÖ\u0003J\t\u0010\u0018\u001a\u00020\u0019HÖ\u0001J\u0006\u0010\u001a\u001a\u00020\u0003J\t\u0010\u001b\u001a\u00020\u0003HÖ\u0001R\u0011\u0010\u0004\u001a\u00020\u0003¢\u0006\b\n\u0000\u001a\u0004\b\n\u0010\u000bR\u0017\u0010\u0007\u001a\b\u0012\u0004\u0012\u00020\b0\u0006¢\u0006\b\n\u0000\u001a\u0004\b\f\u0010\rR\u0017\u0010\u0005\u001a\b\u0012\u0004\u0012\u00020\u00030\u0006¢\u0006\b\n\u0000\u001a\u0004\b\u000e\u0010\rR\u0011\u0010\u0002\u001a\u00020\u0003¢\u0006\b\n\u0000\u001a\u0004\b\u000f\u0010\u000b¨\u0006\u001c"}, d2 = {"Lcom/ifpdos/udi/sdk/service/doc/opensdk/OpenSdkUdiExtendDescGenerator$ClassInfo;", "", SeewoIntent.KEY_FILE_TYPE, "", "comment", "genericParams", "", "fields", "Lcom/ifpdos/udi/sdk/service/doc/opensdk/OpenSdkUdiExtendDescGenerator$ClassFieldInfo;", "(Ljava/lang/String;Ljava/lang/String;Ljava/util/List;Ljava/util/List;)V", "getComment", "()Ljava/lang/String;", "getFields", "()Ljava/util/List;", "getGenericParams", "getType", "component1", "component2", "component3", "component4", "copy", "equals", "", "other", "hashCode", "", "toJson", "toString", "doc-opensdk"}, k = 1, mv = {1, 6, 0}, xi = 48)
    public static final /* data */ class ClassInfo {
        private final String comment;
        private final List<ClassFieldInfo> fields;
        private final List<String> genericParams;
        private final String type;

        /* JADX WARN: Multi-variable type inference failed */
        public static /* synthetic */ ClassInfo copy$default(ClassInfo classInfo, String str, String str2, List list, List list2, int i, Object obj) {
            if ((i & 1) != 0) {
                str = classInfo.type;
            }
            if ((i & 2) != 0) {
                str2 = classInfo.comment;
            }
            if ((i & 4) != 0) {
                list = classInfo.genericParams;
            }
            if ((i & 8) != 0) {
                list2 = classInfo.fields;
            }
            return classInfo.copy(str, str2, list, list2);
        }

        /* JADX INFO: renamed from: component1, reason: from getter */
        public final String getType() {
            return this.type;
        }

        /* JADX INFO: renamed from: component2, reason: from getter */
        public final String getComment() {
            return this.comment;
        }

        public final List<String> component3() {
            return this.genericParams;
        }

        public final List<ClassFieldInfo> component4() {
            return this.fields;
        }

        public final ClassInfo copy(String type, String comment, List<String> genericParams, List<ClassFieldInfo> fields) {
            Intrinsics.checkNotNullParameter(type, "type");
            Intrinsics.checkNotNullParameter(comment, "comment");
            Intrinsics.checkNotNullParameter(genericParams, "genericParams");
            Intrinsics.checkNotNullParameter(fields, "fields");
            return new ClassInfo(type, comment, genericParams, fields);
        }

        public boolean equals(Object other) {
            if (this == other) {
                return true;
            }
            if (!(other instanceof ClassInfo)) {
                return false;
            }
            ClassInfo classInfo = (ClassInfo) other;
            return Intrinsics.areEqual(this.type, classInfo.type) && Intrinsics.areEqual(this.comment, classInfo.comment) && Intrinsics.areEqual(this.genericParams, classInfo.genericParams) && Intrinsics.areEqual(this.fields, classInfo.fields);
        }

        public int hashCode() {
            return (((((this.type.hashCode() * 31) + this.comment.hashCode()) * 31) + this.genericParams.hashCode()) * 31) + this.fields.hashCode();
        }

        public String toString() {
            return "ClassInfo(type=" + this.type + ", comment=" + this.comment + ", genericParams=" + this.genericParams + ", fields=" + this.fields + ')';
        }

        public ClassInfo(String type, String comment, List<String> genericParams, List<ClassFieldInfo> fields) {
            Intrinsics.checkNotNullParameter(type, "type");
            Intrinsics.checkNotNullParameter(comment, "comment");
            Intrinsics.checkNotNullParameter(genericParams, "genericParams");
            Intrinsics.checkNotNullParameter(fields, "fields");
            this.type = type;
            this.comment = comment;
            this.genericParams = genericParams;
            this.fields = fields;
        }

        public final String getType() {
            return this.type;
        }

        public final String getComment() {
            return this.comment;
        }

        public final List<String> getGenericParams() {
            return this.genericParams;
        }

        public final List<ClassFieldInfo> getFields() {
            return this.fields;
        }

        public final String toJson() {
            return "{\"type\":\"" + this.type + "\",\"comment\":\"" + this.comment + "\",\"genericParams\":[" + CollectionsKt.joinToString$default(this.genericParams, ",", null, null, 0, null, new Function1<String, CharSequence>() { // from class: com.ifpdos.udi.sdk.service.doc.opensdk.OpenSdkUdiExtendDescGenerator$ClassInfo$toJson$genericParams$1
                @Override // kotlin.jvm.functions.Function1
                public final CharSequence invoke(String it) {
                    Intrinsics.checkNotNullParameter(it, "it");
                    return "\"" + it + '\"';
                }
            }, 30, null) + "],\"fields\":[" + CollectionsKt.joinToString$default(this.fields, ",", null, null, 0, null, new Function1<ClassFieldInfo, CharSequence>() { // from class: com.ifpdos.udi.sdk.service.doc.opensdk.OpenSdkUdiExtendDescGenerator$ClassInfo$toJson$fields$1
                @Override // kotlin.jvm.functions.Function1
                public final CharSequence invoke(OpenSdkUdiExtendDescGenerator.ClassFieldInfo it) {
                    Intrinsics.checkNotNullParameter(it, "it");
                    return it.toJson();
                }
            }, 30, null) + "]}";
        }
    }
}
