package com.shizhuang.duapp.modules.live.common.model.live.message; import a.f; import android.os.Parcel; import android.os.Parcelable; 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.meizu.cloud.pushsdk.constants.PushConstants; import com.shizhuang.duapp.message.PlayVideoMessageProto; 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 = {"\u0000L\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\u000e\n\u0002\b\r\n\u0002\u0010\u000b\n\u0000\n\u0002\u0010\u0000\n\u0002\b\u0006\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 )2\u00020\u0001:\u0001)B\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\u001b\u0012\b\b\u0002\u0010\b\u001a\u00020\t\u0012\n\b\u0002\u0010\n\u001a\u0004\u0018\u00010\u000b¢\u0006\u0002\u0010\fJ\t\u0010\u0015\u001a\u00020\tHÆ\u0003J\u000b\u0010\u0016\u001a\u0004\u0018\u00010\u000bHÆ\u0003J\u001f\u0010\u0017\u001a\u00020\u00002\b\b\u0002\u0010\b\u001a\u00020\t2\n\b\u0002\u0010\n\u001a\u0004\u0018\u00010\u000bHÆ\u0001J\u0013\u0010\u0018\u001a\u00020\u00192\b\u0010\u001a\u001a\u0004\u0018\u00010\u001bHÖ\u0003J\t\u0010\u001c\u001a\u00020\tHÖ\u0001J\u0006\u0010\u001d\u001a\u00020\u0019J\u0006\u0010\u001e\u001a\u00020\u0019J\u0012\u0010\u001f\u001a\u0004\u0018\u00010\u00012\u0006\u0010 \u001a\u00020\tH\u0016J\b\u0010!\u001a\u00020\"H\u0016J\t\u0010#\u001a\u00020\u000bHÖ\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\r\u0010\u000e\"\u0004\b\u000f\u0010\u0010R\u001c\u0010\n\u001a\u0004\u0018\u00010\u000bX\u000e¢\u0006\u000e\n\u0000\u001a\u0004\b\u0011\u0010\u0012\"\u0004\b\u0013\u0010\u0014¨\u0006*"}, d2 = {"Lcom/shizhuang/duapp/modules/live/common/model/live/message/PlayVideoMessage;", "Lcom/shizhuang/duapp/modules/live/common/model/live/message/BaseLiveChatMessage;", "protoMessage", "Lcom/shizhuang/duapp/message/PlayVideoMessageProto$PlayVideoMessage;", "(Lcom/shizhuang/duapp/message/PlayVideoMessageProto$PlayVideoMessage;)V", "data", "", "([B)V", "type", "", PushConstants.WEB_URL, "", "(ILjava/lang/String;)V", "getType", "()I", "setType", "(I)V", "getUrl", "()Ljava/lang/String;", "setUrl", "(Ljava/lang/String;)V", "component1", "component2", "copy", "equals", "", "other", "", "hashCode", "isCommentate", "isLive", "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: PlayVideoMessage.kt */ public final class PlayVideoMessage extends BaseLiveChatMessage { public static final Parcelable.Creator<PlayVideoMessage> CREATOR = new Creator(); @NotNull public static final Companion Companion = new Companion(null); public static ChangeQuickRedirect changeQuickRedirect; private int type; @Nullable private String url; @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\u0002\b\u0003\u0018\u00002\u00020\u0001B\u0007\b\u0002¢\u0006\u0002\u0010\u0002R\u000e\u0010\u0003\u001a\u00020\u0004XT¢\u0006\u0002\n\u0000R\u000e\u0010\u0005\u001a\u00020\u0004XT¢\u0006\u0002\n\u0000¨\u0006\u0006"}, d2 = {"Lcom/shizhuang/duapp/modules/live/common/model/live/message/PlayVideoMessage$Companion;", "", "()V", "TYPE_COMMENTATE", "", "TYPE_LIVE", "du_live_release"}, k = 1, mv = {1, 4, 2}) /* compiled from: PlayVideoMessage.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<PlayVideoMessage> { public static ChangeQuickRedirect changeQuickRedirect; @Override // android.os.Parcelable.Creator @NotNull public final PlayVideoMessage createFromParcel(@NotNull Parcel parcel) { PatchProxyResult proxy = PatchProxy.proxy(new Object[]{parcel}, this, changeQuickRedirect, false, 198676, new Class[]{Parcel.class}, PlayVideoMessage.class); return proxy.isSupported ? (PlayVideoMessage) proxy.result : new PlayVideoMessage(parcel.readInt(), parcel.readString()); } @Override // android.os.Parcelable.Creator @NotNull public final PlayVideoMessage[] newArray(int i) { PatchProxyResult proxy = PatchProxy.proxy(new Object[]{new Integer(i)}, this, changeQuickRedirect, false, 198675, new Class[]{Integer.TYPE}, PlayVideoMessage[].class); return proxy.isSupported ? (PlayVideoMessage[]) proxy.result : new PlayVideoMessage[i]; } } public PlayVideoMessage() { this(0, null, 3, null); } /* JADX INFO: this call moved to the top of the method (can break code semantics) */ public /* synthetic */ PlayVideoMessage(int i, String str, int i3, DefaultConstructorMarker defaultConstructorMarker) { this((i3 & 1) != 0 ? 1 : i, (i3 & 2) != 0 ? "" : str); } public static /* synthetic */ PlayVideoMessage copy$default(PlayVideoMessage playVideoMessage, int i, String str, int i3, Object obj) { if ((i3 & 1) != 0) { i = playVideoMessage.type; } if ((i3 & 2) != 0) { str = playVideoMessage.url; } return playVideoMessage.copy(i, str); } public final int component1() { PatchProxyResult proxy = PatchProxy.proxy(new Object[0], this, changeQuickRedirect, false, 198668, new Class[0], Integer.TYPE); return proxy.isSupported ? ((Integer) proxy.result).intValue() : this.type; } @Nullable public final String component2() { PatchProxyResult proxy = PatchProxy.proxy(new Object[0], this, changeQuickRedirect, false, 198669, new Class[0], String.class); return proxy.isSupported ? (String) proxy.result : this.url; } @NotNull public final PlayVideoMessage copy(int i, @Nullable String str) { PatchProxyResult proxy = PatchProxy.proxy(new Object[]{new Integer(i), str}, this, changeQuickRedirect, false, 198670, new Class[]{Integer.TYPE, String.class}, PlayVideoMessage.class); return proxy.isSupported ? (PlayVideoMessage) proxy.result : new PlayVideoMessage(i, str); } public boolean equals(@Nullable Object obj) { PatchProxyResult proxy = PatchProxy.proxy(new Object[]{obj}, this, changeQuickRedirect, false, 198673, new Class[]{Object.class}, Boolean.TYPE); if (proxy.isSupported) { return ((Boolean) proxy.result).booleanValue(); } if (this != obj) { if (obj instanceof PlayVideoMessage) { PlayVideoMessage playVideoMessage = (PlayVideoMessage) obj; if (this.type != playVideoMessage.type || !Intrinsics.areEqual(this.url, playVideoMessage.url)) { return false; } } return false; } return true; } public final int getType() { PatchProxyResult proxy = PatchProxy.proxy(new Object[0], this, changeQuickRedirect, false, 198664, new Class[0], Integer.TYPE); return proxy.isSupported ? ((Integer) proxy.result).intValue() : this.type; } @Nullable public final String getUrl() { PatchProxyResult proxy = PatchProxy.proxy(new Object[0], this, changeQuickRedirect, false, 198666, new Class[0], String.class); return proxy.isSupported ? (String) proxy.result : this.url; } public int hashCode() { int i = 0; PatchProxyResult proxy = PatchProxy.proxy(new Object[0], this, changeQuickRedirect, false, 198672, new Class[0], Integer.TYPE); if (proxy.isSupported) { return ((Integer) proxy.result).intValue(); } int i3 = this.type * 31; String str = this.url; if (str != null) { i = str.hashCode(); } return i3 + i; } public final boolean isCommentate() { PatchProxyResult proxy = PatchProxy.proxy(new Object[0], this, changeQuickRedirect, false, 198660, new Class[0], Boolean.TYPE); if (proxy.isSupported) { return ((Boolean) proxy.result).booleanValue(); } return this.type == 2; } public final boolean isLive() { PatchProxyResult proxy = PatchProxy.proxy(new Object[0], this, changeQuickRedirect, false, 198661, new Class[0], Boolean.TYPE); if (proxy.isSupported) { return ((Boolean) proxy.result).booleanValue(); } return this.type == 1; } @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, 198663, new Class[]{Integer.TYPE}, BaseLiveChatMessage.class); if (proxy.isSupported) { return (BaseLiveChatMessage) proxy.result; } this.type = 2; this.url = "https://live-vod.dewucdn.com/0104862081dd452ca2ccd4471d7a7bc2/fc46a5a0b06834bc1406b00495a56dbb-hd.flv"; return this; } public final void setType(int i) { if (!PatchProxy.proxy(new Object[]{new Integer(i)}, this, changeQuickRedirect, false, 198665, new Class[]{Integer.TYPE}, Void.TYPE).isSupported) { this.type = i; } } public final void setUrl(@Nullable String str) { if (!PatchProxy.proxy(new Object[]{str}, this, changeQuickRedirect, false, 198667, new Class[]{String.class}, Void.TYPE).isSupported) { this.url = str; } } @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, 198662, new Class[0], GeneratedMessageV3.class); if (proxy.isSupported) { return (GeneratedMessageV3) proxy.result; } PlayVideoMessageProto.PlayVideoMessage.b o = PlayVideoMessageProto.PlayVideoMessage.newBuilder().o(this.type); String str = this.url; PatchProxyResult proxy2 = PatchProxy.proxy(new Object[]{str}, o, PlayVideoMessageProto.PlayVideoMessage.b.changeQuickRedirect, false, 57251, new Class[]{String.class}, PlayVideoMessageProto.PlayVideoMessage.b.class); if (proxy2.isSupported) { o = (PlayVideoMessageProto.PlayVideoMessage.b) proxy2.result; } else { o.f10632c = str; o.onChanged(); } return o.build(); } @NotNull public String toString() { PatchProxyResult proxy = PatchProxy.proxy(new Object[0], this, changeQuickRedirect, false, 198671, new Class[0], String.class); if (proxy.isSupported) { return (String) proxy.result; } StringBuilder h12 = f.h("PlayVideoMessage(type="); h12.append(this.type); h12.append(", url="); return f.g(h12, this.url, ")"); } @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, 198674, new Class[]{Parcel.class, Integer.TYPE}, Void.TYPE).isSupported) { parcel.writeInt(this.type); parcel.writeString(this.url); } } public PlayVideoMessage(int i, @Nullable String str) { this.type = i; this.url = str; this.category = 10000; this.priorityLevel = MessageLevel.HIGH.getLevel(); } public PlayVideoMessage(@NotNull PlayVideoMessageProto.PlayVideoMessage playVideoMessage) { this(0, null, 3, null); this.type = playVideoMessage.getType(); this.url = playVideoMessage.getUrl(); } public PlayVideoMessage(@NotNull byte[] bArr) { this(0, null, 3, null); try { PlayVideoMessageProto.PlayVideoMessage parseFrom = PlayVideoMessageProto.PlayVideoMessage.parseFrom(bArr); this.type = parseFrom.getType(); this.url = parseFrom.getUrl(); } catch (InvalidProtocolBufferException e) { e.printStackTrace(); } } }