得物.apk(点击下载) / SystemImageMessage.java
package com.shizhuang.duapp.modules.live.common.model.live.message;
import android.os.Parcel;
import android.os.Parcelable;
import com.goim.bootstrap.core.config.MessageLevel;
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.SystemImageMessageProto;
import gy.a;
import kotlin.Metadata;
import kotlin.jvm.JvmStatic;
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 = {"\u0000D\n\u0002\u0018\u0002\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\u000e\n\u0002\b\u0002\n\u0002\u0010\t\n\u0002\b\u000e\n\u0002\u0010\b\n\u0000\n\u0002\u0010\u0002\n\u0002\b\u0003\n\u0002\u0018\u0002\n\u0002\b\u0003\b\u0007\u0018\u0000 $2\u00020\u00012\u00020\u0002:\u0001$B\u000f\b\u0016\u0012\u0006\u0010\u0003\u001a\u00020\u0004¢\u0006\u0002\u0010\u0005B\u000f\b\u0016\u0012\u0006\u0010\u0006\u001a\u00020\u0007¢\u0006\u0002\u0010\bB)\u0012\n\b\u0002\u0010\t\u001a\u0004\u0018\u00010\n\u0012\n\b\u0002\u0010\u000b\u001a\u0004\u0018\u00010\n\u0012\n\b\u0002\u0010\f\u001a\u0004\u0018\u00010\r¢\u0006\u0002\u0010\u000eJ\u0012\u0010\u001a\u001a\u0004\u0018\u00010\u00012\u0006\u0010\u001b\u001a\u00020\u001cH\u0016J\u000e\u0010\u001d\u001a\u00020\u001e2\u0006\u0010\u0003\u001a\u00020\u0004J\b\u0010\u001f\u001a\u00020\u0004H\u0016J\u0019\u0010 \u001a\u00020\u001e2\u0006\u0010!\u001a\u00020\"2\u0006\u0010#\u001a\u00020\u001cHÖ\u0001R\u001c\u0010\u000b\u001a\u0004\u0018\u00010\nX\u000e¢\u0006\u000e\n\u0000\u001a\u0004\b\u000f\u0010\u0010\"\u0004\b\u0011\u0010\u0012R\u001e\u0010\f\u001a\u0004\u0018\u00010\rX\u000e¢\u0006\u0010\n\u0002\u0010\u0017\u001a\u0004\b\u0013\u0010\u0014\"\u0004\b\u0015\u0010\u0016R\u001c\u0010\t\u001a\u0004\u0018\u00010\nX\u000e¢\u0006\u000e\n\u0000\u001a\u0004\b\u0018\u0010\u0010\"\u0004\b\u0019\u0010\u0012¨\u0006%"}, d2 = {"Lcom/shizhuang/duapp/modules/live/common/model/live/message/SystemImageMessage;", "Lcom/shizhuang/duapp/modules/live/common/model/live/message/BaseLiveChatMessage;", "Landroid/os/Parcelable;", "proto", "Lcom/shizhuang/duapp/message/SystemImageMessageProto$SystemImageMessage;", "(Lcom/shizhuang/duapp/message/SystemImageMessageProto$SystemImageMessage;)V", "bytes", "", "([B)V", PushConstants.TITLE, "", "logoURL", "productId", "", "(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Long;)V", "getLogoURL", "()Ljava/lang/String;", "setLogoURL", "(Ljava/lang/String;)V", "getProductId", "()Ljava/lang/Long;", "setProductId", "(Ljava/lang/Long;)V", "Ljava/lang/Long;", "getTitle", "setTitle", "mock", "ct", "", "setParamsByProtoBody", "", "toProtoMessage", "writeToParcel", "parcel", "Landroid/os/Parcel;", "flags", "Companion", "du_live_release"}, k = 1, mv = {1, 4, 2})
/* compiled from: SystemImageMessage.kt */
public final class SystemImageMessage extends BaseLiveChatMessage {
public static final Parcelable.Creator<SystemImageMessage> CREATOR = new Creator();
@NotNull
public static final Companion Companion = new Companion(null);
public static ChangeQuickRedirect changeQuickRedirect;
@Nullable
private String logoURL;
@Nullable
private Long productId;
@Nullable
private String title;
@Metadata(bv = {1, 0, 3}, d1 = {"\u0000\u0018\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u0012\n\u0000\b\u0003\u0018\u00002\u00020\u0001B\u0007\b\u0002¢\u0006\u0002\u0010\u0002J\u0012\u0010\u0003\u001a\u0004\u0018\u00010\u00042\u0006\u0010\u0005\u001a\u00020\u0006H\u0007¨\u0006\u0007"}, d2 = {"Lcom/shizhuang/duapp/modules/live/common/model/live/message/SystemImageMessage$Companion;", "", "()V", "toProtoMessage", "Lcom/shizhuang/duapp/modules/live/common/model/live/message/SystemImageMessage;", "data", "", "du_live_release"}, k = 1, mv = {1, 4, 2})
/* compiled from: SystemImageMessage.kt */
public static final class Companion {
public static ChangeQuickRedirect changeQuickRedirect;
private Companion() {
}
@JvmStatic
@Nullable
public final SystemImageMessage toProtoMessage(@NotNull byte[] bArr) {
PatchProxyResult proxy = PatchProxy.proxy(new Object[]{bArr}, this, changeQuickRedirect, false, 198993, new Class[]{byte[].class}, SystemImageMessage.class);
if (proxy.isSupported) {
return (SystemImageMessage) proxy.result;
}
try {
return new SystemImageMessage(SystemImageMessageProto.SystemImageMessage.parseFrom(bArr));
} catch (InvalidProtocolBufferException e) {
e.printStackTrace();
return null;
}
}
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<SystemImageMessage> {
public static ChangeQuickRedirect changeQuickRedirect;
@Override // android.os.Parcelable.Creator
@NotNull
public final SystemImageMessage createFromParcel(@NotNull Parcel parcel) {
PatchProxyResult proxy = PatchProxy.proxy(new Object[]{parcel}, this, changeQuickRedirect, false, 198995, new Class[]{Parcel.class}, SystemImageMessage.class);
if (proxy.isSupported) {
return (SystemImageMessage) proxy.result;
}
return new SystemImageMessage(parcel.readString(), parcel.readString(), parcel.readInt() != 0 ? Long.valueOf(parcel.readLong()) : null);
}
@Override // android.os.Parcelable.Creator
@NotNull
public final SystemImageMessage[] newArray(int i) {
PatchProxyResult proxy = PatchProxy.proxy(new Object[]{new Integer(i)}, this, changeQuickRedirect, false, 198994, new Class[]{Integer.TYPE}, SystemImageMessage[].class);
return proxy.isSupported ? (SystemImageMessage[]) proxy.result : new SystemImageMessage[i];
}
}
public SystemImageMessage() {
this(null, null, null, 7, null);
}
public SystemImageMessage(@Nullable String str, @Nullable String str2, @Nullable Long l) {
this.title = str;
this.logoURL = str2;
this.productId = l;
this.category = PushConstants.PUSHSERVICE_INFO_SEND_MESSAGE_BY_BROADCAST;
this.priorityLevel = MessageLevel.HIGH.getLevel();
}
@JvmStatic
@Nullable
public static final SystemImageMessage toProtoMessage(@NotNull byte[] bArr) {
PatchProxyResult proxy = PatchProxy.proxy(new Object[]{bArr}, null, changeQuickRedirect, true, 198992, new Class[]{byte[].class}, SystemImageMessage.class);
return proxy.isSupported ? (SystemImageMessage) proxy.result : Companion.toProtoMessage(bArr);
}
@Nullable
public final String getLogoURL() {
PatchProxyResult proxy = PatchProxy.proxy(new Object[0], this, changeQuickRedirect, false, 198987, new Class[0], String.class);
return proxy.isSupported ? (String) proxy.result : this.logoURL;
}
@Nullable
public final Long getProductId() {
PatchProxyResult proxy = PatchProxy.proxy(new Object[0], this, changeQuickRedirect, false, 198989, new Class[0], Long.class);
return proxy.isSupported ? (Long) proxy.result : this.productId;
}
@Nullable
public final String getTitle() {
PatchProxyResult proxy = PatchProxy.proxy(new Object[0], this, changeQuickRedirect, false, 198985, new Class[0], String.class);
return proxy.isSupported ? (String) proxy.result : this.title;
}
@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, 198984, new Class[]{Integer.TYPE}, BaseLiveChatMessage.class);
if (proxy.isSupported) {
return (BaseLiveChatMessage) proxy.result;
}
this.title = "讲解信息透传";
this.logoURL = "https://cdn.poizon.com/pro-img/origin-img/20210420/433954d5734546e196930c70b5c0a267.jpg";
this.productId = 1000015269L;
return this;
}
public final void setLogoURL(@Nullable String str) {
if (!PatchProxy.proxy(new Object[]{str}, this, changeQuickRedirect, false, 198988, new Class[]{String.class}, Void.TYPE).isSupported) {
this.logoURL = str;
}
}
public final void setParamsByProtoBody(@NotNull SystemImageMessageProto.SystemImageMessage systemImageMessage) {
if (!PatchProxy.proxy(new Object[]{systemImageMessage}, this, changeQuickRedirect, false, 198983, new Class[]{SystemImageMessageProto.SystemImageMessage.class}, Void.TYPE).isSupported) {
this.title = systemImageMessage.getTitle();
this.logoURL = systemImageMessage.getLogoUrl();
this.productId = Long.valueOf(systemImageMessage.getProductId());
}
}
public final void setProductId(@Nullable Long l) {
if (!PatchProxy.proxy(new Object[]{l}, this, changeQuickRedirect, false, 198990, new Class[]{Long.class}, Void.TYPE).isSupported) {
this.productId = l;
}
}
public final void setTitle(@Nullable String str) {
if (!PatchProxy.proxy(new Object[]{str}, this, changeQuickRedirect, false, 198986, new Class[]{String.class}, Void.TYPE).isSupported) {
this.title = str;
}
}
@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, 198991, new Class[]{Parcel.class, Integer.TYPE}, Void.TYPE).isSupported) {
parcel.writeString(this.title);
parcel.writeString(this.logoURL);
Long l = this.productId;
if (l != null) {
a.p(parcel, 1, l);
} else {
parcel.writeInt(0);
}
}
}
@Override // com.shizhuang.duapp.modules.live.common.model.live.message.BaseLiveChatMessage
@NotNull
public SystemImageMessageProto.SystemImageMessage toProtoMessage() {
PatchProxyResult proxy = PatchProxy.proxy(new Object[0], this, changeQuickRedirect, false, 198982, new Class[0], SystemImageMessageProto.SystemImageMessage.class);
if (proxy.isSupported) {
return (SystemImageMessageProto.SystemImageMessage) proxy.result;
}
SystemImageMessageProto.SystemImageMessage.b newBuilder = SystemImageMessageProto.SystemImageMessage.newBuilder();
String str = this.title;
String str2 = "";
String str3 = str != null ? str : str2;
PatchProxyResult proxy2 = PatchProxy.proxy(new Object[]{str3}, newBuilder, SystemImageMessageProto.SystemImageMessage.b.changeQuickRedirect, false, 58558, new Class[]{String.class}, SystemImageMessageProto.SystemImageMessage.b.class);
if (proxy2.isSupported) {
newBuilder = (SystemImageMessageProto.SystemImageMessage.b) proxy2.result;
} else {
newBuilder.b = str3;
newBuilder.onChanged();
}
String str4 = this.logoURL;
if (str4 != null) {
str2 = str4;
}
PatchProxyResult proxy3 = PatchProxy.proxy(new Object[]{str2}, newBuilder, SystemImageMessageProto.SystemImageMessage.b.changeQuickRedirect, false, 58563, new Class[]{String.class}, SystemImageMessageProto.SystemImageMessage.b.class);
if (proxy3.isSupported) {
newBuilder = (SystemImageMessageProto.SystemImageMessage.b) proxy3.result;
} else {
newBuilder.f10651c = str2;
newBuilder.onChanged();
}
Long l = this.productId;
return newBuilder.n(l != null ? l.longValue() : 0).build();
}
/* JADX INFO: this call moved to the top of the method (can break code semantics) */
public /* synthetic */ SystemImageMessage(String str, String str2, Long l, int i, DefaultConstructorMarker defaultConstructorMarker) {
this((i & 1) != 0 ? "" : str, (i & 2) != 0 ? "" : str2, (i & 4) != 0 ? 0L : l);
}
public SystemImageMessage(@NotNull SystemImageMessageProto.SystemImageMessage systemImageMessage) {
this(null, null, null, 7, null);
setParamsByProtoBody(systemImageMessage);
}
public SystemImageMessage(@NotNull byte[] bArr) {
this(null, null, null, 7, null);
try {
setParamsByProtoBody(SystemImageMessageProto.SystemImageMessage.parseFrom(bArr));
} catch (InvalidProtocolBufferException e) {
e.printStackTrace();
}
}
}