得物.apk(点击下载) / QixiLotteryMessage.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.GeneratedMessageV3;
import com.google.protobuf.InvalidProtocolBufferException;
import com.meituan.robust.ChangeQuickRedirect;
import com.meituan.robust.PatchProxy;
import com.meituan.robust.PatchProxyResult;
import com.shizhuang.duapp.message.QiXiLotteryMessageProto;
import kotlin.Metadata;
import kotlin.jvm.internal.DefaultConstructorMarker;
import kotlinx.android.parcel.Parcelize;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;

@Parcelize
@Metadata(bv = {1, 0, 3}, d1 = {"\u0000N\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0010\u0012\n\u0002\b\u0002\n\u0002\u0010\b\n\u0002\b\u0002\n\u0002\u0010\u000e\n\u0002\b\u0010\n\u0002\u0010\u000b\n\u0000\n\u0002\u0010\u0000\n\u0002\b\u0004\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\u000f\b\u0016\u0012\u0006\u0010\u0005\u001a\u00020\u0006¢\u0006\u0002\u0010\u0007B%\u0012\b\b\u0002\u0010\b\u001a\u00020\t\u0012\b\b\u0002\u0010\n\u001a\u00020\t\u0012\n\b\u0002\u0010\u000b\u001a\u0004\u0018\u00010\f¢\u0006\u0002\u0010\rJ\t\u0010\u0018\u001a\u00020\tHÆ\u0003J\t\u0010\u0019\u001a\u00020\tHÆ\u0003J\u000b\u0010\u001a\u001a\u0004\u0018\u00010\fHÆ\u0003J)\u0010\u001b\u001a\u00020\u00002\b\b\u0002\u0010\b\u001a\u00020\t2\b\b\u0002\u0010\n\u001a\u00020\t2\n\b\u0002\u0010\u000b\u001a\u0004\u0018\u00010\fHÆ\u0001J\u0013\u0010\u001c\u001a\u00020\u001d2\b\u0010\u001e\u001a\u0004\u0018\u00010\u001fH–\u0002J\t\u0010 \u001a\u00020\tHÖ\u0001J\u0012\u0010!\u001a\u0004\u0018\u00010\u00012\u0006\u0010\"\u001a\u00020\tH\u0016J\b\u0010#\u001a\u00020$H\u0016J\t\u0010%\u001a\u00020\fHÖ\u0001J\u0019\u0010&\u001a\u00020'2\u0006\u0010(\u001a\u00020)2\u0006\u0010*\u001a\u00020\tHÖ\u0001R\u001a\u0010\b\u001a\u00020\tX†\u000e¢\u0006\u000e\n\u0000\u001a\u0004\b\u000e\u0010\u000f\"\u0004\b\u0010\u0010\u0011R\u001c\u0010\u000b\u001a\u0004\u0018\u00010\fX†\u000e¢\u0006\u000e\n\u0000\u001a\u0004\b\u0012\u0010\u0013\"\u0004\b\u0014\u0010\u0015R\u001a\u0010\n\u001a\u00020\tX†\u000e¢\u0006\u000e\n\u0000\u001a\u0004\b\u0016\u0010\u000f\"\u0004\b\u0017\u0010\u0011¨\u0006+"}, d2 = {"Lcom/shizhuang/duapp/modules/live/common/model/live/message/QixiLotteryMessage;", "Lcom/shizhuang/duapp/modules/live/common/model/live/message/BaseLiveChatMessage;", "lotteryMessage", "Lcom/shizhuang/duapp/message/QiXiLotteryMessageProto$QiXiLotteryMessage;", "(Lcom/shizhuang/duapp/message/QiXiLotteryMessageProto$QiXiLotteryMessage;)V", "data", "", "([B)V", "featherWishNum", "", "ropeWishNum", "lotteryUrl", "", "(IILjava/lang/String;)V", "getFeatherWishNum", "()I", "setFeatherWishNum", "(I)V", "getLotteryUrl", "()Ljava/lang/String;", "setLotteryUrl", "(Ljava/lang/String;)V", "getRopeWishNum", "setRopeWishNum", "component1", "component2", "component3", "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 QixiLotteryMessage extends BaseLiveChatMessage {
    public static final Parcelable.Creator<QixiLotteryMessage> CREATOR = new Creator();
    public static ChangeQuickRedirect changeQuickRedirect;
    private int featherWishNum;
    @Nullable
    private String lotteryUrl;
    private int ropeWishNum;

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

        @Override // android.os.Parcelable.Creator
        @NotNull
        public final QixiLotteryMessage createFromParcel(@NotNull Parcel parcel) {
            PatchProxyResult proxy = PatchProxy.proxy(new Object[]{parcel}, this, changeQuickRedirect, false, 198786, new Class[]{Parcel.class}, QixiLotteryMessage.class);
            return proxy.isSupported ? (QixiLotteryMessage) proxy.result : new QixiLotteryMessage(parcel.readInt(), parcel.readInt(), parcel.readString());
        }

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

    public QixiLotteryMessage() {
        this(0, 0, null, 7, null);
    }

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

    public static /* synthetic */ QixiLotteryMessage copy$default(QixiLotteryMessage qixiLotteryMessage, int i, int i3, String str, int i12, Object obj) {
        if ((i12 & 1) != 0) {
            i = qixiLotteryMessage.featherWishNum;
        }
        if ((i12 & 2) != 0) {
            i3 = qixiLotteryMessage.ropeWishNum;
        }
        if ((i12 & 4) != 0) {
            str = qixiLotteryMessage.lotteryUrl;
        }
        return qixiLotteryMessage.copy(i, i3, str);
    }

    public final int component1() {
        PatchProxyResult proxy = PatchProxy.proxy(new Object[0], this, changeQuickRedirect, false, 198778, new Class[0], Integer.TYPE);
        return proxy.isSupported ? ((Integer) proxy.result).intValue() : this.featherWishNum;
    }

    public final int component2() {
        PatchProxyResult proxy = PatchProxy.proxy(new Object[0], this, changeQuickRedirect, false, 198779, new Class[0], Integer.TYPE);
        return proxy.isSupported ? ((Integer) proxy.result).intValue() : this.ropeWishNum;
    }

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

    @NotNull
    public final QixiLotteryMessage copy(int i, int i3, @Nullable String str) {
        Object[] objArr = {new Integer(i), new Integer(i3), str};
        ChangeQuickRedirect changeQuickRedirect2 = changeQuickRedirect;
        Class cls = Integer.TYPE;
        PatchProxyResult proxy = PatchProxy.proxy(objArr, this, changeQuickRedirect2, false, 198781, new Class[]{cls, cls, String.class}, QixiLotteryMessage.class);
        return proxy.isSupported ? (QixiLotteryMessage) proxy.result : new QixiLotteryMessage(i, i3, str);
    }

    public boolean equals(@Nullable Object obj) {
        PatchProxyResult proxy = PatchProxy.proxy(new Object[]{obj}, this, changeQuickRedirect, false, 198770, new Class[]{Object.class}, Boolean.TYPE);
        if (proxy.isSupported) {
            return ((Boolean) proxy.result).booleanValue();
        }
        if (!(obj instanceof QixiLotteryMessage)) {
            return super.equals(obj);
        }
        QixiLotteryMessage qixiLotteryMessage = (QixiLotteryMessage) obj;
        if (qixiLotteryMessage.featherWishNum == this.featherWishNum && qixiLotteryMessage.ropeWishNum == this.ropeWishNum) {
            return true;
        }
        return false;
    }

    public final int getFeatherWishNum() {
        PatchProxyResult proxy = PatchProxy.proxy(new Object[0], this, changeQuickRedirect, false, 198772, new Class[0], Integer.TYPE);
        return proxy.isSupported ? ((Integer) proxy.result).intValue() : this.featherWishNum;
    }

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

    public final int getRopeWishNum() {
        PatchProxyResult proxy = PatchProxy.proxy(new Object[0], this, changeQuickRedirect, false, 198774, new Class[0], Integer.TYPE);
        return proxy.isSupported ? ((Integer) proxy.result).intValue() : this.ropeWishNum;
    }

    public int hashCode() {
        int i = 0;
        PatchProxyResult proxy = PatchProxy.proxy(new Object[0], this, changeQuickRedirect, false, 198783, new Class[0], Integer.TYPE);
        if (proxy.isSupported) {
            return ((Integer) proxy.result).intValue();
        }
        int i3 = ((this.featherWishNum * 31) + this.ropeWishNum) * 31;
        String str = this.lotteryUrl;
        if (str != null) {
            i = str.hashCode();
        }
        return i3 + 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, 198771, new Class[]{Integer.TYPE}, BaseLiveChatMessage.class);
        if (proxy.isSupported) {
            return (BaseLiveChatMessage) proxy.result;
        }
        this.featherWishNum = 1;
        this.ropeWishNum = 2;
        this.lotteryUrl = "https://cdn-fast.dewu.com/nezha-plus/detail/6323ed779da188692343cb3e?duWebviewBg=%23000000";
        return this;
    }

    public final void setFeatherWishNum(int i) {
        if (!PatchProxy.proxy(new Object[]{new Integer(i)}, this, changeQuickRedirect, false, 198773, new Class[]{Integer.TYPE}, Void.TYPE).isSupported) {
            this.featherWishNum = i;
        }
    }

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

    public final void setRopeWishNum(int i) {
        if (!PatchProxy.proxy(new Object[]{new Integer(i)}, this, changeQuickRedirect, false, 198775, new Class[]{Integer.TYPE}, Void.TYPE).isSupported) {
            this.ropeWishNum = i;
        }
    }

    @Override // com.shizhuang.duapp.modules.live.common.model.live.message.BaseLiveChatMessage
    @NotNull
    public GeneratedMessageV3 toProtoMessage() {
        PatchProxyResult proxy = PatchProxy.proxy(new Object[0], this, changeQuickRedirect, false, 198769, new Class[0], GeneratedMessageV3.class);
        if (proxy.isSupported) {
            return (GeneratedMessageV3) proxy.result;
        }
        QiXiLotteryMessageProto.QiXiLotteryMessage.b p = QiXiLotteryMessageProto.QiXiLotteryMessage.newBuilder().m(this.featherWishNum).p(this.ropeWishNum);
        String str = this.lotteryUrl;
        PatchProxyResult proxy2 = PatchProxy.proxy(new Object[]{str}, p, QiXiLotteryMessageProto.QiXiLotteryMessage.b.changeQuickRedirect, false, 57549, new Class[]{String.class}, QiXiLotteryMessageProto.QiXiLotteryMessage.b.class);
        if (proxy2.isSupported) {
            p = (QiXiLotteryMessageProto.QiXiLotteryMessage.b) proxy2.result;
        } else {
            p.d = str;
            p.onChanged();
        }
        return p.build();
    }

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

    @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, 198784, new Class[]{Parcel.class, Integer.TYPE}, Void.TYPE).isSupported) {
            parcel.writeInt(this.featherWishNum);
            parcel.writeInt(this.ropeWishNum);
            parcel.writeString(this.lotteryUrl);
        }
    }

    public QixiLotteryMessage(int i, int i3, @Nullable String str) {
        this.featherWishNum = i;
        this.ropeWishNum = i3;
        this.lotteryUrl = str;
        this.category = 42;
    }

    public QixiLotteryMessage(@NotNull QiXiLotteryMessageProto.QiXiLotteryMessage qiXiLotteryMessage) {
        this(0, 0, null, 7, null);
        this.featherWishNum = qiXiLotteryMessage.getFeatherWishNum();
        this.ropeWishNum = qiXiLotteryMessage.getRopeWishNum();
        this.lotteryUrl = qiXiLotteryMessage.getLotteryUrl();
    }

    public QixiLotteryMessage(@NotNull byte[] bArr) {
        this(0, 0, null, 7, null);
        try {
            QiXiLotteryMessageProto.QiXiLotteryMessage parseFrom = QiXiLotteryMessageProto.QiXiLotteryMessage.parseFrom(bArr);
            this.featherWishNum = parseFrom.getFeatherWishNum();
            this.ropeWishNum = parseFrom.getRopeWishNum();
            this.lotteryUrl = parseFrom.getLotteryUrl();
        } catch (InvalidProtocolBufferException e) {
            e.printStackTrace();
        }
    }
}