得物.apk(点击下载) / QiXiLightUpMessage.java


package com.shizhuang.duapp.modules.live.common.model.live.message;

import a.f;
import android.os.Parcel;
import android.os.Parcelable;
import com.google.protobuf.AbstractMessageLite;
import com.google.protobuf.GeneratedMessageV3;
import com.google.protobuf.InvalidProtocolBufferException;
import com.google.protobuf.RepeatedFieldBuilderV3;
import com.meituan.robust.ChangeQuickRedirect;
import com.meituan.robust.PatchProxy;
import com.meituan.robust.PatchProxyResult;
import com.shizhuang.duapp.message.QiXiLightUpMessageListProto;
import g00.a;
import java.util.ArrayList;
import java.util.Collection;
import java.util.Iterator;
import java.util.List;
import java.util.UUID;
import kotlin.Metadata;
import kotlin.Unit;
import kotlin.collections.CollectionsKt__IterablesKt;
import kotlin.collections.CollectionsKt___CollectionsKt;
import kotlin.jvm.internal.DefaultConstructorMarker;
import kotlin.jvm.internal.Intrinsics;
import kotlinx.android.parcel.Parcelize;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;

@Parcelize
@Metadata(bv = {1, 0, 3}, d1 = {"\u0000R\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u0012\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u000e\n\u0002\b\r\n\u0002\u0010\u000b\n\u0000\n\u0002\u0010\u0000\n\u0000\n\u0002\u0010\b\n\u0002\b\u0003\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0010\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0002\b‡\b\u0018\u00002\u00020\u0001B\u000f\b\u0016\u0012\u0006\u0010\u0002\u001a\u00020\u0003¢\u0006\u0002\u0010\u0004B/\u0012\u001c\b\u0002\u0010\u0005\u001a\u0016\u0012\u0004\u0012\u00020\u0007\u0018\u00010\u0006j\n\u0012\u0004\u0012\u00020\u0007\u0018\u0001`\b\u0012\n\b\u0002\u0010\t\u001a\u0004\u0018\u00010\n¢\u0006\u0002\u0010\u000bJ\u001d\u0010\u0014\u001a\u0016\u0012\u0004\u0012\u00020\u0007\u0018\u00010\u0006j\n\u0012\u0004\u0012\u00020\u0007\u0018\u0001`\bHÆ\u0003J\u000b\u0010\u0015\u001a\u0004\u0018\u00010\nHÆ\u0003J3\u0010\u0016\u001a\u00020\u00002\u001c\b\u0002\u0010\u0005\u001a\u0016\u0012\u0004\u0012\u00020\u0007\u0018\u00010\u0006j\n\u0012\u0004\u0012\u00020\u0007\u0018\u0001`\b2\n\b\u0002\u0010\t\u001a\u0004\u0018\u00010\nHÆ\u0001J\u0013\u0010\u0017\u001a\u00020\u00182\b\u0010\u0019\u001a\u0004\u0018\u00010\u001aHÖ\u0003J\t\u0010\u001b\u001a\u00020\u001cHÖ\u0001J\u0012\u0010\u001d\u001a\u0004\u0018\u00010\u00012\u0006\u0010\u001e\u001a\u00020\u001cH\u0016J\b\u0010\u001f\u001a\u00020 H\u0016J\t\u0010!\u001a\u00020\nHÖ\u0001J\u0019\u0010\"\u001a\u00020#2\u0006\u0010$\u001a\u00020%2\u0006\u0010&\u001a\u00020\u001cHÖ\u0001R.\u0010\u0005\u001a\u0016\u0012\u0004\u0012\u00020\u0007\u0018\u00010\u0006j\n\u0012\u0004\u0012\u00020\u0007\u0018\u0001`\bX†\u000e¢\u0006\u000e\n\u0000\u001a\u0004\b\f\u0010\r\"\u0004\b\u000e\u0010\u000fR\u001c\u0010\t\u001a\u0004\u0018\u00010\nX†\u000e¢\u0006\u000e\n\u0000\u001a\u0004\b\u0010\u0010\u0011\"\u0004\b\u0012\u0010\u0013¨\u0006'"}, d2 = {"Lcom/shizhuang/duapp/modules/live/common/model/live/message/QiXiLightUpMessage;", "Lcom/shizhuang/duapp/modules/live/common/model/live/message/BaseLiveChatMessage;", "data", "", "([B)V", "list", "Ljava/util/ArrayList;", "Lcom/shizhuang/duapp/modules/live/common/model/live/message/QiXiLightUpItem;", "Lkotlin/collections/ArrayList;", "rankUrl", "", "(Ljava/util/ArrayList;Ljava/lang/String;)V", "getList", "()Ljava/util/ArrayList;", "setList", "(Ljava/util/ArrayList;)V", "getRankUrl", "()Ljava/lang/String;", "setRankUrl", "(Ljava/lang/String;)V", "component1", "component2", "copy", "equals", "", "other", "", "hashCode", "", "mock", "ct", "toProtoMessage", "Lcom/google/protobuf/GeneratedMessageV3;", "toString", "writeToParcel", "", "parcel", "Landroid/os/Parcel;", "flags", "du_live_release"}, k = 1, mv = {1, 4, 2})
/* compiled from: QixiAction.kt */
public final class QiXiLightUpMessage extends BaseLiveChatMessage {
    public static final Parcelable.Creator<QiXiLightUpMessage> CREATOR = new Creator();
    public static ChangeQuickRedirect changeQuickRedirect;
    @Nullable
    private ArrayList<QiXiLightUpItem> list;
    @Nullable
    private String rankUrl;

    @Metadata(bv = {1, 0, 3}, k = 3, mv = {1, 4, 2})
    public static final class Creator implements Parcelable.Creator<QiXiLightUpMessage> {
        public static ChangeQuickRedirect changeQuickRedirect;

        @Override // android.os.Parcelable.Creator
        @NotNull
        public final QiXiLightUpMessage createFromParcel(@NotNull Parcel parcel) {
            ArrayList arrayList;
            PatchProxyResult proxy = PatchProxy.proxy(new Object[]{parcel}, this, changeQuickRedirect, false, 198725, new Class[]{Parcel.class}, QiXiLightUpMessage.class);
            if (proxy.isSupported) {
                return (QiXiLightUpMessage) proxy.result;
            }
            if (parcel.readInt() != 0) {
                int readInt = parcel.readInt();
                arrayList = new ArrayList(readInt);
                while (readInt != 0) {
                    arrayList.add(QiXiLightUpItem.CREATOR.createFromParcel(parcel));
                    readInt--;
                }
            } else {
                arrayList = null;
            }
            return new QiXiLightUpMessage(arrayList, parcel.readString());
        }

        @Override // android.os.Parcelable.Creator
        @NotNull
        public final QiXiLightUpMessage[] newArray(int i) {
            PatchProxyResult proxy = PatchProxy.proxy(new Object[]{new Integer(i)}, this, changeQuickRedirect, false, 198724, new Class[]{Integer.TYPE}, QiXiLightUpMessage[].class);
            return proxy.isSupported ? (QiXiLightUpMessage[]) proxy.result : new QiXiLightUpMessage[i];
        }
    }

    public QiXiLightUpMessage() {
        this(null, null, 3, null);
    }

    /* JADX INFO: this call moved to the top of the method (can break code semantics) */
    public /* synthetic */ QiXiLightUpMessage(ArrayList arrayList, String str, int i, DefaultConstructorMarker defaultConstructorMarker) {
        this((i & 1) != 0 ? null : arrayList, (i & 2) != 0 ? "" : str);
    }

    /* JADX DEBUG: Multi-variable search result rejected for r0v0, resolved type: com.shizhuang.duapp.modules.live.common.model.live.message.QiXiLightUpMessage */
    /* JADX WARN: Multi-variable type inference failed */
    public static /* synthetic */ QiXiLightUpMessage copy$default(QiXiLightUpMessage qiXiLightUpMessage, ArrayList arrayList, String str, int i, Object obj) {
        if ((i & 1) != 0) {
            arrayList = qiXiLightUpMessage.list;
        }
        if ((i & 2) != 0) {
            str = qiXiLightUpMessage.rankUrl;
        }
        return qiXiLightUpMessage.copy(arrayList, str);
    }

    @Nullable
    public final ArrayList<QiXiLightUpItem> component1() {
        PatchProxyResult proxy = PatchProxy.proxy(new Object[0], this, changeQuickRedirect, false, 198717, new Class[0], ArrayList.class);
        return proxy.isSupported ? (ArrayList) proxy.result : this.list;
    }

    @Nullable
    public final String component2() {
        PatchProxyResult proxy = PatchProxy.proxy(new Object[0], this, changeQuickRedirect, false, 198718, new Class[0], String.class);
        return proxy.isSupported ? (String) proxy.result : this.rankUrl;
    }

    @NotNull
    public final QiXiLightUpMessage copy(@Nullable ArrayList<QiXiLightUpItem> arrayList, @Nullable String str) {
        PatchProxyResult proxy = PatchProxy.proxy(new Object[]{arrayList, str}, this, changeQuickRedirect, false, 198719, new Class[]{ArrayList.class, String.class}, QiXiLightUpMessage.class);
        return proxy.isSupported ? (QiXiLightUpMessage) proxy.result : new QiXiLightUpMessage(arrayList, str);
    }

    public boolean equals(@Nullable Object obj) {
        PatchProxyResult proxy = PatchProxy.proxy(new Object[]{obj}, this, changeQuickRedirect, false, 198722, new Class[]{Object.class}, Boolean.TYPE);
        if (proxy.isSupported) {
            return ((Boolean) proxy.result).booleanValue();
        }
        if (this != obj) {
            if (obj instanceof QiXiLightUpMessage) {
                QiXiLightUpMessage qiXiLightUpMessage = (QiXiLightUpMessage) obj;
                if (!Intrinsics.areEqual(this.list, qiXiLightUpMessage.list) || !Intrinsics.areEqual(this.rankUrl, qiXiLightUpMessage.rankUrl)) {
                    return false;
                }
            }
            return false;
        }
        return true;
    }

    @Nullable
    public final ArrayList<QiXiLightUpItem> getList() {
        PatchProxyResult proxy = PatchProxy.proxy(new Object[0], this, changeQuickRedirect, false, 198713, new Class[0], ArrayList.class);
        return proxy.isSupported ? (ArrayList) proxy.result : this.list;
    }

    @Nullable
    public final String getRankUrl() {
        PatchProxyResult proxy = PatchProxy.proxy(new Object[0], this, changeQuickRedirect, false, 198715, new Class[0], String.class);
        return proxy.isSupported ? (String) proxy.result : this.rankUrl;
    }

    public int hashCode() {
        int i = 0;
        PatchProxyResult proxy = PatchProxy.proxy(new Object[0], this, changeQuickRedirect, false, 198721, new Class[0], Integer.TYPE);
        if (proxy.isSupported) {
            return ((Integer) proxy.result).intValue();
        }
        ArrayList<QiXiLightUpItem> arrayList = this.list;
        int hashCode = (arrayList != null ? arrayList.hashCode() : 0) * 31;
        String str = this.rankUrl;
        if (str != null) {
            i = str.hashCode();
        }
        return hashCode + i;
    }

    @Override // com.shizhuang.duapp.modules.live.common.model.live.message.MockInterface
    @Nullable
    public BaseLiveChatMessage mock(int i) {
        PatchProxyResult proxy = PatchProxy.proxy(new Object[]{new Integer(i)}, this, changeQuickRedirect, false, 198712, new Class[]{Integer.TYPE}, BaseLiveChatMessage.class);
        if (proxy.isSupported) {
            return (BaseLiveChatMessage) proxy.result;
        }
        this.rankUrl = "https://www.baidu.com";
        ArrayList<QiXiLightUpItem> arrayList = this.list;
        if (arrayList != null) {
            CollectionsKt___CollectionsKt.plus((Collection) arrayList, (Object) new QiXiLightUpItem(1, 1, 1000, 2000, 5, UUID.randomUUID().toString()));
        }
        return this;
    }

    public final void setList(@Nullable ArrayList<QiXiLightUpItem> arrayList) {
        if (!PatchProxy.proxy(new Object[]{arrayList}, this, changeQuickRedirect, false, 198714, new Class[]{ArrayList.class}, Void.TYPE).isSupported) {
            this.list = arrayList;
        }
    }

    public final void setRankUrl(@Nullable String str) {
        if (!PatchProxy.proxy(new Object[]{str}, this, changeQuickRedirect, false, 198716, new Class[]{String.class}, Void.TYPE).isSupported) {
            this.rankUrl = str;
        }
    }

    @Override // com.shizhuang.duapp.modules.live.common.model.live.message.BaseLiveChatMessage
    @NotNull
    public GeneratedMessageV3 toProtoMessage() {
        ArrayList arrayList;
        PatchProxyResult proxy = PatchProxy.proxy(new Object[0], this, changeQuickRedirect, false, 198711, new Class[0], GeneratedMessageV3.class);
        if (proxy.isSupported) {
            return (GeneratedMessageV3) proxy.result;
        }
        QiXiLightUpMessageListProto.QiXiLightUpMessage.b newBuilder = QiXiLightUpMessageListProto.QiXiLightUpMessage.newBuilder();
        String str = this.rankUrl;
        PatchProxyResult proxy2 = PatchProxy.proxy(new Object[]{str}, newBuilder, QiXiLightUpMessageListProto.QiXiLightUpMessage.b.changeQuickRedirect, false, 57480, new Class[]{String.class}, QiXiLightUpMessageListProto.QiXiLightUpMessage.b.class);
        if (proxy2.isSupported) {
            newBuilder = (QiXiLightUpMessageListProto.QiXiLightUpMessage.b) proxy2.result;
        } else {
            newBuilder.e = str;
            newBuilder.onChanged();
        }
        ArrayList<QiXiLightUpItem> arrayList2 = this.list;
        if (arrayList2 != null) {
            arrayList = new ArrayList(CollectionsKt__IterablesKt.collectionSizeOrDefault(arrayList2, 10));
            Iterator<T> it2 = arrayList2.iterator();
            while (it2.hasNext()) {
                arrayList.add(it2.next().toProtoMessage());
            }
        } else {
            arrayList = new ArrayList();
        }
        PatchProxyResult proxy3 = PatchProxy.proxy(new Object[]{arrayList}, newBuilder, QiXiLightUpMessageListProto.QiXiLightUpMessage.b.changeQuickRedirect, false, 57468, new Class[]{Iterable.class}, QiXiLightUpMessageListProto.QiXiLightUpMessage.b.class);
        if (proxy3.isSupported) {
            newBuilder = (QiXiLightUpMessageListProto.QiXiLightUpMessage.b) proxy3.result;
        } else {
            RepeatedFieldBuilderV3<QiXiLightUpMessageListProto.QiXiLightUpItem, QiXiLightUpMessageListProto.QiXiLightUpItem.b, QiXiLightUpMessageListProto.QiXiLightUpItemOrBuilder> repeatedFieldBuilderV3 = newBuilder.d;
            if (repeatedFieldBuilderV3 == null) {
                newBuilder.h();
                AbstractMessageLite.Builder.addAll((Iterable) arrayList, (List) newBuilder.f10636c);
                newBuilder.onChanged();
            } else {
                repeatedFieldBuilderV3.addAllMessages(arrayList);
            }
        }
        return newBuilder.build();
    }

    @NotNull
    public String toString() {
        PatchProxyResult proxy = PatchProxy.proxy(new Object[0], this, changeQuickRedirect, false, 198720, new Class[0], String.class);
        if (proxy.isSupported) {
            return (String) proxy.result;
        }
        StringBuilder h12 = f.h("QiXiLightUpMessage(list=");
        h12.append(this.list);
        h12.append(", rankUrl=");
        return f.g(h12, this.rankUrl, ")");
    }

    @Override // com.shizhuang.duapp.modules.live.common.model.live.message.BaseLiveChatMessage
    public void writeToParcel(@NotNull Parcel parcel, int i) {
        if (!PatchProxy.proxy(new Object[]{parcel, new Integer(i)}, this, changeQuickRedirect, false, 198723, new Class[]{Parcel.class, Integer.TYPE}, Void.TYPE).isSupported) {
            ArrayList<QiXiLightUpItem> arrayList = this.list;
            if (arrayList != null) {
                Iterator i3 = a.i(parcel, 1, arrayList);
                while (i3.hasNext()) {
                    ((QiXiLightUpItem) i3.next()).writeToParcel(parcel, 0);
                }
            } else {
                parcel.writeInt(0);
            }
            parcel.writeString(this.rankUrl);
        }
    }

    public QiXiLightUpMessage(@Nullable ArrayList<QiXiLightUpItem> arrayList, @Nullable String str) {
        this.list = arrayList;
        this.rankUrl = str;
        this.category = 62;
    }

    public QiXiLightUpMessage(@NotNull byte[] bArr) {
        this(null, null, 3, null);
        try {
            QiXiLightUpMessageListProto.QiXiLightUpMessage parseFrom = QiXiLightUpMessageListProto.QiXiLightUpMessage.parseFrom(bArr);
            ArrayList<QiXiLightUpItem> arrayList = new ArrayList<>();
            Iterator<T> it2 = parseFrom.getListList().iterator();
            while (it2.hasNext()) {
                arrayList.add(new QiXiLightUpItem(it2.next()));
            }
            Unit unit = Unit.INSTANCE;
            this.list = arrayList;
            this.rankUrl = parseFrom.getRankUrl();
        } catch (InvalidProtocolBufferException e) {
            e.printStackTrace();
        }
    }
}