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


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

import a.f;
import android.os.Parcel;
import android.os.Parcelable;
import androidx.core.view.accessibility.AccessibilityEventCompat;
import com.goim.bootstrap.core.config.MessageLevel;
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.OperatingNoticeMessageProto;
import com.shizhuang.duapp.modules.live.audience.detail.viewmodel.LiveShareViewModel;
import com.shizhuang.duapp.modules.live.common.model.live.RoomDetailModel;
import hl0.a;
import kotlin.Metadata;
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 = {"\u0000T\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\u0000\n\u0002\u0010\t\n\u0000\n\u0002\u0010\u000e\n\u0002\b\u0006\n\u0002\u0010\u000b\n\u0002\b/\n\u0002\u0010\u0000\n\u0002\b\u0007\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0010\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0003\b‡\b\u0018\u0000 S2\u00020\u0001:\u0001SB\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\u0007Bs\u0012\b\b\u0002\u0010\b\u001a\u00020\t\u0012\n\b\u0002\u0010\n\u001a\u0004\u0018\u00010\u000b\u0012\n\b\u0002\u0010\f\u001a\u0004\u0018\u00010\r\u0012\n\b\u0002\u0010\u000e\u001a\u0004\u0018\u00010\r\u0012\n\b\u0002\u0010\u000f\u001a\u0004\u0018\u00010\r\u0012\b\b\u0002\u0010\u0010\u001a\u00020\t\u0012\n\b\u0002\u0010\u0011\u001a\u0004\u0018\u00010\r\u0012\b\b\u0002\u0010\u0012\u001a\u00020\u000b\u0012\b\b\u0002\u0010\u0013\u001a\u00020\u0014\u0012\b\b\u0002\u0010\u0015\u001a\u00020\u0014¢\u0006\u0002\u0010\u0016J\t\u00106\u001a\u00020\tHÆ\u0003J\t\u00107\u001a\u00020\u0014HÆ\u0003J\u0010\u00108\u001a\u0004\u0018\u00010\u000bHÆ\u0003¢\u0006\u0002\u0010\u001cJ\u000b\u00109\u001a\u0004\u0018\u00010\rHÆ\u0003J\u000b\u0010:\u001a\u0004\u0018\u00010\rHÆ\u0003J\u000b\u0010;\u001a\u0004\u0018\u00010\rHÆ\u0003J\t\u0010<\u001a\u00020\tHÆ\u0003J\u000b\u0010=\u001a\u0004\u0018\u00010\rHÆ\u0003J\t\u0010>\u001a\u00020\u000bHÆ\u0003J\t\u0010?\u001a\u00020\u0014HÆ\u0003J|\u0010@\u001a\u00020\u00002\b\b\u0002\u0010\b\u001a\u00020\t2\n\b\u0002\u0010\n\u001a\u0004\u0018\u00010\u000b2\n\b\u0002\u0010\f\u001a\u0004\u0018\u00010\r2\n\b\u0002\u0010\u000e\u001a\u0004\u0018\u00010\r2\n\b\u0002\u0010\u000f\u001a\u0004\u0018\u00010\r2\b\b\u0002\u0010\u0010\u001a\u00020\t2\n\b\u0002\u0010\u0011\u001a\u0004\u0018\u00010\r2\b\b\u0002\u0010\u0012\u001a\u00020\u000b2\b\b\u0002\u0010\u0013\u001a\u00020\u00142\b\b\u0002\u0010\u0015\u001a\u00020\u0014HÆ\u0001¢\u0006\u0002\u0010AJ\u0013\u0010B\u001a\u00020\u00142\b\u0010C\u001a\u0004\u0018\u00010DHÖ\u0003J\t\u0010E\u001a\u00020\tHÖ\u0001J\b\u0010F\u001a\u00020\u0014H\u0002J\u0006\u0010G\u001a\u00020\u0014J\b\u0010H\u001a\u00020\u0014H\u0002J\u0012\u0010I\u001a\u0004\u0018\u00010\u00012\u0006\u0010J\u001a\u00020\tH\u0016J\b\u0010K\u001a\u00020LH\u0016J\t\u0010M\u001a\u00020\rHÖ\u0001J\u0019\u0010N\u001a\u00020O2\u0006\u0010P\u001a\u00020Q2\u0006\u0010R\u001a\u00020\tHÖ\u0001R\u001a\u0010\u0015\u001a\u00020\u0014X†\u000e¢\u0006\u000e\n\u0000\u001a\u0004\b\u0017\u0010\u0018\"\u0004\b\u0019\u0010\u001aR\u001e\u0010\n\u001a\u0004\u0018\u00010\u000bX†\u000e¢\u0006\u0010\n\u0002\u0010\u001f\u001a\u0004\b\u001b\u0010\u001c\"\u0004\b\u001d\u0010\u001eR\u001c\u0010\f\u001a\u0004\u0018\u00010\rX†\u000e¢\u0006\u000e\n\u0000\u001a\u0004\b \u0010!\"\u0004\b\"\u0010#R\u001c\u0010\u000e\u001a\u0004\u0018\u00010\rX†\u000e¢\u0006\u000e\n\u0000\u001a\u0004\b$\u0010!\"\u0004\b%\u0010#R\u001c\u0010\u000f\u001a\u0004\u0018\u00010\rX†\u000e¢\u0006\u000e\n\u0000\u001a\u0004\b&\u0010!\"\u0004\b'\u0010#R\u001a\u0010\u0012\u001a\u00020\u000bX†\u000e¢\u0006\u000e\n\u0000\u001a\u0004\b(\u0010)\"\u0004\b*\u0010+R\u001a\u0010\u0010\u001a\u00020\tX†\u000e¢\u0006\u000e\n\u0000\u001a\u0004\b,\u0010-\"\u0004\b.\u0010/R\u001c\u0010\u0011\u001a\u0004\u0018\u00010\rX†\u000e¢\u0006\u000e\n\u0000\u001a\u0004\b0\u0010!\"\u0004\b1\u0010#R\u001a\u0010\u0013\u001a\u00020\u0014X†\u000e¢\u0006\u000e\n\u0000\u001a\u0004\b2\u0010\u0018\"\u0004\b3\u0010\u001aR\u001a\u0010\b\u001a\u00020\tX†\u000e¢\u0006\u000e\n\u0000\u001a\u0004\b4\u0010-\"\u0004\b5\u0010/¨\u0006T"}, d2 = {"Lcom/shizhuang/duapp/modules/live/common/model/live/message/OperatingNoticeMessage;", "Lcom/shizhuang/duapp/modules/live/common/model/live/message/BaseLiveChatMessage;", "protoMessage", "Lcom/shizhuang/duapp/message/OperatingNoticeMessageProto$OperatingNoticeMessage;", "(Lcom/shizhuang/duapp/message/OperatingNoticeMessageProto$OperatingNoticeMessage;)V", "data", "", "([B)V", "type", "", "id", "", "msg", "", "msgBg", "replaceText", "routerAction", "routerUrl", "roomId", "skipKol", "", "actAb", "(ILjava/lang/Long;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;ILjava/lang/String;JZZ)V", "getActAb", "()Z", "setActAb", "(Z)V", "getId", "()Ljava/lang/Long;", "setId", "(Ljava/lang/Long;)V", "Ljava/lang/Long;", "getMsg", "()Ljava/lang/String;", "setMsg", "(Ljava/lang/String;)V", "getMsgBg", "setMsgBg", "getReplaceText", "setReplaceText", "getRoomId", "()J", "setRoomId", "(J)V", "getRouterAction", "()I", "setRouterAction", "(I)V", "getRouterUrl", "setRouterUrl", "getSkipKol", "setSkipKol", "getType", "setType", "component1", "component10", "component2", "component3", "component4", "component5", "component6", "component7", "component8", "component9", "copy", "(ILjava/lang/Long;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;ILjava/lang/String;JZZ)Lcom/shizhuang/duapp/modules/live/common/model/live/message/OperatingNoticeMessage;", "equals", "other", "", "hashCode", "isLuckyCatMessage", "isMessageShowNow", "isQixiMessage", "mock", "ct", "toProtoMessage", "Lcom/google/protobuf/GeneratedMessageV3;", "toString", "writeToParcel", "", "parcel", "Landroid/os/Parcel;", "flags", "Companion", "du_live_release"}, k = 1, mv = {1, 4, 2})
/* compiled from: OperatingNoticeMessage.kt */
public final class OperatingNoticeMessage extends BaseLiveChatMessage {
    public static final Parcelable.Creator<OperatingNoticeMessage> CREATOR = new Creator();
    @NotNull
    public static final Companion Companion = new Companion(null);
    public static ChangeQuickRedirect changeQuickRedirect;
    private boolean actAb;
    @Nullable

    /* renamed from: id  reason: collision with root package name */
    private Long f18417id;
    @Nullable
    private String msg;
    @Nullable
    private String msgBg;
    @Nullable
    private String replaceText;
    private long roomId;
    private int routerAction;
    @Nullable
    private String routerUrl;
    private boolean skipKol;
    private int type;

    @Metadata(bv = {1, 0, 3}, d1 = {"\u0000\u0014\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0002\b\u0002\n\u0002\u0010\b\n\u0002\b\u0003\b†\u0003\u0018\u00002\u00020\u0001B\u0007\b\u0002¢\u0006\u0002\u0010\u0002R\u000e\u0010\u0003\u001a\u00020\u0004X†T¢\u0006\u0002\n\u0000R\u000e\u0010\u0005\u001a\u00020\u0004X†T¢\u0006\u0002\n\u0000R\u000e\u0010\u0006\u001a\u00020\u0004X†T¢\u0006\u0002\n\u0000¨\u0006\u0007"}, d2 = {"Lcom/shizhuang/duapp/modules/live/common/model/live/message/OperatingNoticeMessage$Companion;", "", "()V", "TYPE_DEF", "", "TYPE_LUCKY_CAT_2022", "TYPE_QIXI", "du_live_release"}, k = 1, mv = {1, 4, 2})
    /* compiled from: OperatingNoticeMessage.kt */
    public static final class Companion {
        private Companion() {
        }

        public /* synthetic */ Companion(DefaultConstructorMarker defaultConstructorMarker) {
            this();
        }
    }

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

        @Override // android.os.Parcelable.Creator
        @NotNull
        public final OperatingNoticeMessage createFromParcel(@NotNull Parcel parcel) {
            PatchProxyResult proxy = PatchProxy.proxy(new Object[]{parcel}, this, changeQuickRedirect, false, 198659, new Class[]{Parcel.class}, OperatingNoticeMessage.class);
            if (proxy.isSupported) {
                return (OperatingNoticeMessage) proxy.result;
            }
            return new OperatingNoticeMessage(parcel.readInt(), parcel.readInt() != 0 ? Long.valueOf(parcel.readLong()) : null, parcel.readString(), parcel.readString(), parcel.readString(), parcel.readInt(), parcel.readString(), parcel.readLong(), parcel.readInt() != 0, parcel.readInt() != 0);
        }

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

    public OperatingNoticeMessage() {
        this(0, null, null, null, null, 0, null, 0, false, false, 1023, null);
    }

    /* JADX WARNING: Illegal instructions before constructor call */
    public /* synthetic */ OperatingNoticeMessage(int i, Long l, String str, String str2, String str3, int i3, String str4, long j, boolean z, boolean z4, int i12, DefaultConstructorMarker defaultConstructorMarker) {
        this((i12 & 1) != 0 ? 1 : i, (i12 & 2) != 0 ? 0L : l, (i12 & 4) != 0 ? r6 : str, (i12 & 8) != 0 ? r6 : str2, (i12 & 16) != 0 ? r6 : str3, (i12 & 32) != 0 ? 0 : i3, (i12 & 64) == 0 ? str4 : r6, (i12 & 128) == 0 ? j : 0, (i12 & AccessibilityEventCompat.TYPE_VIEW_HOVER_EXIT) != 0 ? false : z, (i12 & 512) == 0 ? z4 : false);
        String str5 = "";
    }

    public static /* synthetic */ OperatingNoticeMessage copy$default(OperatingNoticeMessage operatingNoticeMessage, int i, Long l, String str, String str2, String str3, int i3, String str4, long j, boolean z, boolean z4, int i12, Object obj) {
        return operatingNoticeMessage.copy((i12 & 1) != 0 ? operatingNoticeMessage.type : i, (i12 & 2) != 0 ? operatingNoticeMessage.f18417id : l, (i12 & 4) != 0 ? operatingNoticeMessage.msg : str, (i12 & 8) != 0 ? operatingNoticeMessage.msgBg : str2, (i12 & 16) != 0 ? operatingNoticeMessage.replaceText : str3, (i12 & 32) != 0 ? operatingNoticeMessage.routerAction : i3, (i12 & 64) != 0 ? operatingNoticeMessage.routerUrl : str4, (i12 & 128) != 0 ? operatingNoticeMessage.roomId : j, (i12 & AccessibilityEventCompat.TYPE_VIEW_HOVER_EXIT) != 0 ? operatingNoticeMessage.skipKol : z, (i12 & 512) != 0 ? operatingNoticeMessage.actAb : z4);
    }

    private final boolean isLuckyCatMessage() {
        PatchProxyResult proxy = PatchProxy.proxy(new Object[0], this, changeQuickRedirect, false, 198619, new Class[0], Boolean.TYPE);
        if (proxy.isSupported) {
            return ((Boolean) proxy.result).booleanValue();
        }
        return this.type == 13000;
    }

    private final boolean isQixiMessage() {
        PatchProxyResult proxy = PatchProxy.proxy(new Object[0], this, changeQuickRedirect, false, 198620, new Class[0], Boolean.TYPE);
        if (proxy.isSupported) {
            return ((Boolean) proxy.result).booleanValue();
        }
        return this.type == 12837;
    }

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

    public final boolean component10() {
        PatchProxyResult proxy = PatchProxy.proxy(new Object[0], this, changeQuickRedirect, false, 198652, new Class[0], Boolean.TYPE);
        return proxy.isSupported ? ((Boolean) proxy.result).booleanValue() : this.actAb;
    }

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

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

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

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

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

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

    public final long component8() {
        PatchProxyResult proxy = PatchProxy.proxy(new Object[0], this, changeQuickRedirect, false, 198650, new Class[0], Long.TYPE);
        return proxy.isSupported ? ((Long) proxy.result).longValue() : this.roomId;
    }

    public final boolean component9() {
        PatchProxyResult proxy = PatchProxy.proxy(new Object[0], this, changeQuickRedirect, false, 198651, new Class[0], Boolean.TYPE);
        return proxy.isSupported ? ((Boolean) proxy.result).booleanValue() : this.skipKol;
    }

    @NotNull
    public final OperatingNoticeMessage copy(int i, @Nullable Long l, @Nullable String str, @Nullable String str2, @Nullable String str3, int i3, @Nullable String str4, long j, boolean z, boolean z4) {
        Object[] objArr = {new Integer(i), l, str, str2, str3, new Integer(i3), str4, new Long(j), new Byte(z ? (byte) 1 : 0), new Byte(z4 ? (byte) 1 : 0)};
        ChangeQuickRedirect changeQuickRedirect2 = changeQuickRedirect;
        Class cls = Integer.TYPE;
        Class cls2 = Boolean.TYPE;
        PatchProxyResult proxy = PatchProxy.proxy(objArr, this, changeQuickRedirect2, false, 198653, new Class[]{cls, Long.class, String.class, String.class, String.class, cls, String.class, Long.TYPE, cls2, cls2}, OperatingNoticeMessage.class);
        return proxy.isSupported ? (OperatingNoticeMessage) proxy.result : new OperatingNoticeMessage(i, l, str, str2, str3, i3, str4, j, z, z4);
    }

    public boolean equals(@Nullable Object obj) {
        PatchProxyResult proxy = PatchProxy.proxy(new Object[]{obj}, this, changeQuickRedirect, false, 198656, new Class[]{Object.class}, Boolean.TYPE);
        if (proxy.isSupported) {
            return ((Boolean) proxy.result).booleanValue();
        }
        if (this != obj) {
            if (obj instanceof OperatingNoticeMessage) {
                OperatingNoticeMessage operatingNoticeMessage = (OperatingNoticeMessage) obj;
                if (this.type != operatingNoticeMessage.type || !Intrinsics.areEqual(this.f18417id, operatingNoticeMessage.f18417id) || !Intrinsics.areEqual(this.msg, operatingNoticeMessage.msg) || !Intrinsics.areEqual(this.msgBg, operatingNoticeMessage.msgBg) || !Intrinsics.areEqual(this.replaceText, operatingNoticeMessage.replaceText) || this.routerAction != operatingNoticeMessage.routerAction || !Intrinsics.areEqual(this.routerUrl, operatingNoticeMessage.routerUrl) || this.roomId != operatingNoticeMessage.roomId || this.skipKol != operatingNoticeMessage.skipKol || this.actAb != operatingNoticeMessage.actAb) {
                    return false;
                }
            }
            return false;
        }
        return true;
    }

    public final boolean getActAb() {
        PatchProxyResult proxy = PatchProxy.proxy(new Object[0], this, changeQuickRedirect, false, 198641, new Class[0], Boolean.TYPE);
        return proxy.isSupported ? ((Boolean) proxy.result).booleanValue() : this.actAb;
    }

    @Nullable
    public final Long getId() {
        PatchProxyResult proxy = PatchProxy.proxy(new Object[0], this, changeQuickRedirect, false, 198625, new Class[0], Long.class);
        return proxy.isSupported ? (Long) proxy.result : this.f18417id;
    }

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

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

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

    public final long getRoomId() {
        PatchProxyResult proxy = PatchProxy.proxy(new Object[0], this, changeQuickRedirect, false, 198637, new Class[0], Long.TYPE);
        return proxy.isSupported ? ((Long) proxy.result).longValue() : this.roomId;
    }

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

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

    public final boolean getSkipKol() {
        PatchProxyResult proxy = PatchProxy.proxy(new Object[0], this, changeQuickRedirect, false, 198639, new Class[0], Boolean.TYPE);
        return proxy.isSupported ? ((Boolean) proxy.result).booleanValue() : this.skipKol;
    }

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

    public int hashCode() {
        int i = 0;
        PatchProxyResult proxy = PatchProxy.proxy(new Object[0], this, changeQuickRedirect, false, 198655, new Class[0], Integer.TYPE);
        if (proxy.isSupported) {
            return ((Integer) proxy.result).intValue();
        }
        int i3 = this.type * 31;
        Long l = this.f18417id;
        int hashCode = (i3 + (l != null ? l.hashCode() : 0)) * 31;
        String str = this.msg;
        int hashCode2 = (hashCode + (str != null ? str.hashCode() : 0)) * 31;
        String str2 = this.msgBg;
        int hashCode3 = (hashCode2 + (str2 != null ? str2.hashCode() : 0)) * 31;
        String str3 = this.replaceText;
        int hashCode4 = (((hashCode3 + (str3 != null ? str3.hashCode() : 0)) * 31) + this.routerAction) * 31;
        String str4 = this.routerUrl;
        if (str4 != null) {
            i = str4.hashCode();
        }
        long j = this.roomId;
        int i12 = (((hashCode4 + i) * 31) + ((int) (j ^ (j >>> 32)))) * 31;
        boolean z = this.skipKol;
        int i13 = 1;
        if (z) {
            z = true;
        }
        int i14 = z ? 1 : 0;
        int i15 = z ? 1 : 0;
        int i16 = z ? 1 : 0;
        int i17 = (i12 + i14) * 31;
        boolean z4 = this.actAb;
        if (!z4) {
            i13 = z4 ? 1 : 0;
        }
        return i17 + i13;
    }

    public final boolean isMessageShowNow() {
        RoomDetailModel q8;
        PatchProxyResult proxy = PatchProxy.proxy(new Object[0], this, changeQuickRedirect, false, 198618, new Class[0], Boolean.TYPE);
        if (proxy.isSupported) {
            return ((Boolean) proxy.result).booleanValue();
        }
        if (this.actAb && (q8 = a.f33089a.q()) != null && q8.isHideActByAb()) {
            return false;
        }
        if (!isLuckyCatMessage() && !isQixiMessage()) {
            return true;
        }
        if (isLuckyCatMessage()) {
            long j = this.roomId;
            a aVar = a.f33089a;
            if (j == ((long) aVar.r())) {
                return false;
            }
            LiveShareViewModel A = aVar.A();
            if (A != null && A.isLuckyCatShowed()) {
                return false;
            }
            LiveShareViewModel A2 = aVar.A();
            if (A2 != null) {
                A2.luckyCatCountDown();
            }
            return true;
        } else if (!isQixiMessage()) {
            return false;
        } else {
            long j12 = this.roomId;
            a aVar2 = a.f33089a;
            if (j12 == ((long) aVar2.r())) {
                return false;
            }
            LiveShareViewModel A3 = aVar2.A();
            if (A3 != null && A3.isQixiCatShowed()) {
                return false;
            }
            LiveShareViewModel A4 = aVar2.A();
            if (A4 != null) {
                A4.qixiCountDown();
            }
            return true;
        }
    }

    @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, 198622, new Class[]{Integer.TYPE}, BaseLiveChatMessage.class);
        if (proxy.isSupported) {
            return (BaseLiveChatMessage) proxy.result;
        }
        this.type = 1;
        this.msg = "mock msg";
        this.msgBg = "https://cdn.poizon.com/pro-img/origin-img/20210420/433954d5734546e196930c70b5c0a267.jpg";
        this.replaceText = "mock text";
        this.routerUrl = "https://m.dewu.com/router/live/LiveRoomPage?roomId=0";
        return this;
    }

    public final void setActAb(boolean z) {
        if (!PatchProxy.proxy(new Object[]{new Byte(z ? (byte) 1 : 0)}, this, changeQuickRedirect, false, 198642, new Class[]{Boolean.TYPE}, Void.TYPE).isSupported) {
            this.actAb = z;
        }
    }

    public final void setId(@Nullable Long l) {
        if (!PatchProxy.proxy(new Object[]{l}, this, changeQuickRedirect, false, 198626, new Class[]{Long.class}, Void.TYPE).isSupported) {
            this.f18417id = l;
        }
    }

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

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

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

    public final void setRoomId(long j) {
        if (!PatchProxy.proxy(new Object[]{new Long(j)}, this, changeQuickRedirect, false, 198638, new Class[]{Long.TYPE}, Void.TYPE).isSupported) {
            this.roomId = j;
        }
    }

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

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

    public final void setSkipKol(boolean z) {
        if (!PatchProxy.proxy(new Object[]{new Byte(z ? (byte) 1 : 0)}, this, changeQuickRedirect, false, 198640, new Class[]{Boolean.TYPE}, Void.TYPE).isSupported) {
            this.skipKol = z;
        }
    }

    public final void setType(int i) {
        if (!PatchProxy.proxy(new Object[]{new Integer(i)}, this, changeQuickRedirect, false, 198624, new Class[]{Integer.TYPE}, Void.TYPE).isSupported) {
            this.type = 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, 198621, new Class[0], GeneratedMessageV3.class);
        if (proxy.isSupported) {
            return (GeneratedMessageV3) proxy.result;
        }
        OperatingNoticeMessageProto.OperatingNoticeMessage.b t = OperatingNoticeMessageProto.OperatingNoticeMessage.newBuilder().t(this.type);
        Long l = this.f18417id;
        OperatingNoticeMessageProto.OperatingNoticeMessage.b o = t.o(l != null ? l.longValue() : 0);
        String str = this.msg;
        String str2 = "";
        if (str == null) {
            str = str2;
        }
        PatchProxyResult proxy2 = PatchProxy.proxy(new Object[]{str}, o, OperatingNoticeMessageProto.OperatingNoticeMessage.b.changeQuickRedirect, false, 57156, new Class[]{String.class}, OperatingNoticeMessageProto.OperatingNoticeMessage.b.class);
        if (proxy2.isSupported) {
            o = (OperatingNoticeMessageProto.OperatingNoticeMessage.b) proxy2.result;
        } else {
            o.f10629c = str;
            o.onChanged();
        }
        String str3 = this.msgBg;
        if (str3 == null) {
            str3 = str2;
        }
        PatchProxyResult proxy3 = PatchProxy.proxy(new Object[]{str3}, o, OperatingNoticeMessageProto.OperatingNoticeMessage.b.changeQuickRedirect, false, 57161, new Class[]{String.class}, OperatingNoticeMessageProto.OperatingNoticeMessage.b.class);
        if (proxy3.isSupported) {
            o = (OperatingNoticeMessageProto.OperatingNoticeMessage.b) proxy3.result;
        } else {
            o.d = str3;
            o.onChanged();
        }
        String str4 = this.replaceText;
        if (str4 == null) {
            str4 = str2;
        }
        PatchProxyResult proxy4 = PatchProxy.proxy(new Object[]{str4}, o, OperatingNoticeMessageProto.OperatingNoticeMessage.b.changeQuickRedirect, false, 57166, new Class[]{String.class}, OperatingNoticeMessageProto.OperatingNoticeMessage.b.class);
        if (proxy4.isSupported) {
            o = (OperatingNoticeMessageProto.OperatingNoticeMessage.b) proxy4.result;
        } else {
            o.e = str4;
            o.onChanged();
        }
        OperatingNoticeMessageProto.OperatingNoticeMessage.b r = o.r(this.routerAction);
        String str5 = this.routerUrl;
        if (str5 != null) {
            str2 = str5;
        }
        PatchProxyResult proxy5 = PatchProxy.proxy(new Object[]{str2}, r, OperatingNoticeMessageProto.OperatingNoticeMessage.b.changeQuickRedirect, false, 57174, new Class[]{String.class}, OperatingNoticeMessageProto.OperatingNoticeMessage.b.class);
        if (proxy5.isSupported) {
            r = (OperatingNoticeMessageProto.OperatingNoticeMessage.b) proxy5.result;
        } else {
            r.f10630g = str2;
            r.onChanged();
        }
        return r.s(this.skipKol).q(this.roomId).m(this.actAb).build();
    }

    @NotNull
    public String toString() {
        PatchProxyResult proxy = PatchProxy.proxy(new Object[0], this, changeQuickRedirect, false, 198654, new Class[0], String.class);
        if (proxy.isSupported) {
            return (String) proxy.result;
        }
        StringBuilder h12 = f.h("OperatingNoticeMessage(type=");
        h12.append(this.type);
        h12.append(", id=");
        h12.append(this.f18417id);
        h12.append(", msg=");
        h12.append(this.msg);
        h12.append(", msgBg=");
        h12.append(this.msgBg);
        h12.append(", replaceText=");
        h12.append(this.replaceText);
        h12.append(", routerAction=");
        h12.append(this.routerAction);
        h12.append(", routerUrl=");
        h12.append(this.routerUrl);
        h12.append(", roomId=");
        h12.append(this.roomId);
        h12.append(", skipKol=");
        h12.append(this.skipKol);
        h12.append(", actAb=");
        return androidx.appcompat.widget.a.k(h12, this.actAb, ")");
    }

    @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, 198657, new Class[]{Parcel.class, Integer.TYPE}, Void.TYPE).isSupported) {
            parcel.writeInt(this.type);
            Long l = this.f18417id;
            if (l != null) {
                gy.a.p(parcel, 1, l);
            } else {
                parcel.writeInt(0);
            }
            parcel.writeString(this.msg);
            parcel.writeString(this.msgBg);
            parcel.writeString(this.replaceText);
            parcel.writeInt(this.routerAction);
            parcel.writeString(this.routerUrl);
            parcel.writeLong(this.roomId);
            parcel.writeInt(this.skipKol ? 1 : 0);
            parcel.writeInt(this.actAb ? 1 : 0);
        }
    }

    public OperatingNoticeMessage(int i, @Nullable Long l, @Nullable String str, @Nullable String str2, @Nullable String str3, int i3, @Nullable String str4, long j, boolean z, boolean z4) {
        this.type = i;
        this.f18417id = l;
        this.msg = str;
        this.msgBg = str2;
        this.replaceText = str3;
        this.routerAction = i3;
        this.routerUrl = str4;
        this.roomId = j;
        this.skipKol = z;
        this.actAb = z4;
        this.category = 39;
        this.priorityLevel = MessageLevel.HIGH.getLevel();
    }

    public OperatingNoticeMessage(@NotNull OperatingNoticeMessageProto.OperatingNoticeMessage operatingNoticeMessage) {
        this(0, null, null, null, null, 0, null, 0, false, false, 1023, null);
        this.type = operatingNoticeMessage.getType();
        this.msg = operatingNoticeMessage.getMsg();
        this.f18417id = Long.valueOf(operatingNoticeMessage.getId());
        this.msgBg = operatingNoticeMessage.getMsgBg();
        this.replaceText = operatingNoticeMessage.getReplaceText();
        this.routerAction = operatingNoticeMessage.getRouterAction();
        this.routerUrl = operatingNoticeMessage.getRouterUrl();
        this.roomId = operatingNoticeMessage.getRoomId();
        this.skipKol = operatingNoticeMessage.getSkipKol();
        this.actAb = operatingNoticeMessage.getActAb();
    }

    public OperatingNoticeMessage(@NotNull byte[] bArr) {
        this(0, null, null, null, null, 0, null, 0, false, false, 1023, null);
        try {
            OperatingNoticeMessageProto.OperatingNoticeMessage parseFrom = OperatingNoticeMessageProto.OperatingNoticeMessage.parseFrom(bArr);
            this.type = parseFrom.getType();
            this.msg = parseFrom.getMsg();
            this.f18417id = Long.valueOf(parseFrom.getId());
            this.msgBg = parseFrom.getMsgBg();
            this.replaceText = parseFrom.getReplaceText();
            this.routerAction = parseFrom.getRouterAction();
            this.routerUrl = parseFrom.getRouterUrl();
            this.roomId = parseFrom.getRoomId();
            this.skipKol = parseFrom.getSkipKol();
            this.actAb = parseFrom.getActAb();
        } catch (InvalidProtocolBufferException e) {
            e.printStackTrace();
        }
    }
}