package com.vinfast.companion.core.utils.notification;

/* JADX INFO: compiled from: r8-map-id-ae6aab8d9a1033945587ffdd1bc6222159522c1d66e66a2c4cecb065134dd0a6 */
/* JADX INFO: loaded from: E:\ios\vf_dex\classes15.dex */
@kotlin.Metadata(d1 = {"\u0000<\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0010\u000e\n\u0002\b\u0003\n\u0002\u0010\u000b\n\u0000\n\u0002\u0010\t\n\u0000\n\u0002\u0010$\n\u0002\b\u0004\n\u0002\u0010\b\n\u0002\b\u0003\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0010\u0002\n\u0002\b\u000b\u0018\u0000 !2\u00020\u0001:\u0001!B\u0087\u0001\b\u0016\u0012\n\b\u0002\u0010\u0003\u001a\u0004\u0018\u00010\u0002\u0012\n\b\u0002\u0010\u0004\u001a\u0004\u0018\u00010\u0002\u0012\n\b\u0002\u0010\u0005\u001a\u0004\u0018\u00010\u0002\u0012\b\b\u0002\u0010\u0007\u001a\u00020\u0006\u0012\n\b\u0002\u0010\t\u001a\u0004\u0018\u00010\b\u0012\u0016\b\u0002\u0010\u000b\u001a\u0010\u0012\u0004\u0012\u00020\u0002\u0012\u0004\u0012\u00020\u0002\u0018\u00010\n\u0012\n\b\u0002\u0010\f\u001a\u0004\u0018\u00010\u0002\u0012\n\b\u0002\u0010\r\u001a\u0004\u0018\u00010\u0002\u0012\b\b\u0002\u0010\u000e\u001a\u00020\u0006\u0012\b\b\u0002\u0010\u0010\u001a\u00020\u000f¢\u0006\u0004\b\u0011\u0010\u0012B\u0011\b\u0016\u0012\u0006\u0010\u0014\u001a\u00020\u0013¢\u0006\u0004\b\u0011\u0010\u0015J\u001f\u0010\u0018\u001a\u00020\u00172\u0006\u0010\u0014\u001a\u00020\u00132\u0006\u0010\u0016\u001a\u00020\u000fH\u0016¢\u0006\u0004\b\u0018\u0010\u0019J\u000f\u0010\u001a\u001a\u00020\u000fH\u0016¢\u0006\u0004\b\u001a\u0010\u001bR\"\u0010\u0010\u001a\u00020\u000f8\u0006@\u0006X\u0086\u000e¢\u0006\u0012\n\u0004\b\u001c\u0010\u001d\u001a\u0004\b\u001e\u0010\u001b\"\u0004\b\u001f\u0010 ¨\u0006\""}, d2 = {"Lcom/vinfast/companion/core/utils/notification/FcmNotification;", "Lcom/vinfast/companion/core/utils/notification/Notification;", "", "notificationID", "categoryID", "soundName", "", "isSilent", "", "createdDate", "", "metadata", "title", "body", "markAsRead", "", "redirectFlags", "<init>", "(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;ZLjava/lang/Long;Ljava/util/Map;Ljava/lang/String;Ljava/lang/String;ZI)V", "Landroid/os/Parcel;", "parcel", "(Landroid/os/Parcel;)V", "flags", "", "writeToParcel", "(Landroid/os/Parcel;I)V", "describeContents", "()I", "n", "I", "P", "Q", "(I)V", "CREATOR", "core_release"}, k = 1, mv = {2, 2, 0}, xi = 48)
public final class FcmNotification extends com.vinfast.companion.core.utils.notification.Notification {

    /* JADX INFO: renamed from: CREATOR, reason: from kotlin metadata */
    @org.jetbrains.annotations.NotNull
    public static final com.vinfast.companion.core.utils.notification.FcmNotification.Companion INSTANCE = new com.vinfast.companion.core.utils.notification.FcmNotification.Companion(null);

    /* JADX INFO: renamed from: n, reason: from kotlin metadata */
    private int redirectFlags;

    /* JADX INFO: renamed from: com.vinfast.companion.core.utils.notification.FcmNotification$CREATOR, reason: from kotlin metadata */
    /* JADX INFO: compiled from: r8-map-id-ae6aab8d9a1033945587ffdd1bc6222159522c1d66e66a2c4cecb065134dd0a6 */
    @kotlin.Metadata(d1 = {"\u0000>\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0010\b\n\u0000\n\u0002\u0010\u0011\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010$\n\u0002\u0010\u000e\n\u0002\b\t\b\u0086\u0003\u0018\u00002\b\u0012\u0004\u0012\u00020\u00020\u0001B\t\b\u0002¢\u0006\u0004\b\u0003\u0010\u0004J\u0017\u0010\u0007\u001a\u00020\u00022\u0006\u0010\u0006\u001a\u00020\u0005H\u0016¢\u0006\u0004\b\u0007\u0010\bJ\u001f\u0010\f\u001a\n\u0012\u0006\u0012\u0004\u0018\u00010\u00020\u000b2\u0006\u0010\n\u001a\u00020\tH\u0016¢\u0006\u0004\b\f\u0010\rJ1\u0010\u0015\u001a\u00020\u00022\u0006\u0010\u000f\u001a\u00020\u000e2\u0006\u0010\u0011\u001a\u00020\u00102\u0012\u0010\u0014\u001a\u000e\u0012\u0004\u0012\u00020\u0013\u0012\u0004\u0012\u00020\u00130\u0012¢\u0006\u0004\b\u0015\u0010\u0016R\u0014\u0010\u0017\u001a\u00020\t8\u0006X\u0086T¢\u0006\u0006\n\u0004\b\u0017\u0010\u0018R\u0014\u0010\u0019\u001a\u00020\t8\u0006X\u0086T¢\u0006\u0006\n\u0004\b\u0019\u0010\u0018R\u0014\u0010\u001a\u001a\u00020\t8\u0006X\u0086T¢\u0006\u0006\n\u0004\b\u001a\u0010\u0018R\u0014\u0010\u001b\u001a\u00020\t8\u0006X\u0086T¢\u0006\u0006\n\u0004\b\u001b\u0010\u0018¨\u0006\u001c"}, d2 = {"Lcom/vinfast/companion/core/utils/notification/FcmNotification$CREATOR;", "Landroid/os/Parcelable$Creator;", "Lcom/vinfast/companion/core/utils/notification/FcmNotification;", "<init>", "()V", "Landroid/os/Parcel;", "parcel", "b", "(Landroid/os/Parcel;)Lcom/vinfast/companion/core/utils/notification/FcmNotification;", "", "size", "", "c", "(I)[Lcom/vinfast/companion/core/utils/notification/FcmNotification;", "Landroid/content/Context;", "context", "Lcom/vinfast/companion/core/managers/MarketEnum;", "currentMarket", "", "", "dataNotify", "a", "(Landroid/content/Context;Lcom/vinfast/companion/core/managers/MarketEnum;Ljava/util/Map;)Lcom/vinfast/companion/core/utils/notification/FcmNotification;", "DO_NOTHING", "I", "SHOW_HEADS_UP_NOTIFICATION", "SHOW_DIALOG", "UPDATE_UI_STATUS", "core_release"}, k = 1, mv = {2, 2, 0}, xi = 48)
    public static final class Companion implements android.os.Parcelable.Creator<com.vinfast.companion.core.utils.notification.FcmNotification> {
        public /* synthetic */ Companion(kotlin.jvm.internal.DefaultConstructorMarker defaultConstructorMarker) {
            this();
        }

        public final com.vinfast.companion.core.utils.notification.FcmNotification a(android.content.Context context, com.vinfast.companion.core.managers.MarketEnum currentMarket, java.util.Map dataNotify) {
            kotlin.jvm.internal.Intrinsics.l(context, "context");
            kotlin.jvm.internal.Intrinsics.l(currentMarket, "currentMarket");
            kotlin.jvm.internal.Intrinsics.l(dataNotify, "dataNotify");
            java.lang.String str = (java.lang.String) dataNotify.get("notificationID");
            java.lang.String str2 = (java.lang.String) dataNotify.get("categoryID");
            java.lang.String str3 = (java.lang.String) dataNotify.get("createdDate");
            java.lang.Long lZ = str3 != null ? kotlin.text.StringsKt.z(str3) : null;
            boolean z = java.lang.Boolean.parseBoolean((java.lang.String) dataNotify.get("isSilent"));
            java.lang.String str4 = (java.lang.String) dataNotify.get("content");
            java.lang.String str5 = (java.lang.String) dataNotify.get("body");
            java.lang.String str6 = (java.lang.String) dataNotify.get("metadata");
            java.util.Map map = str6 != null ? (java.util.Map) new com.google.gson.Gson().fromJson(str6, new com.google.gson.reflect.TypeToken<java.util.HashMap<java.lang.String, java.lang.String>>() { // from class: com.vinfast.companion.core.utils.notification.FcmNotification$CREATOR$convertToNotification$metadataMap$1$1
            }.getType()) : null;
            com.vinfast.companion.core.utils.notification.Notification.Companion companion = com.vinfast.companion.core.utils.notification.Notification.INSTANCE;
            return new com.vinfast.companion.core.utils.notification.FcmNotification(str, str2, null, z, lZ, map, companion.d(context, str4, str2, map), companion.c(context, currentMarket, str5, str2, map), false, 0, 772, null);
        }

        @Override // android.os.Parcelable.Creator
        /* JADX INFO: renamed from: b, reason: merged with bridge method [inline-methods] */
        public com.vinfast.companion.core.utils.notification.FcmNotification createFromParcel(android.os.Parcel parcel) {
            kotlin.jvm.internal.Intrinsics.l(parcel, "parcel");
            return new com.vinfast.companion.core.utils.notification.FcmNotification(parcel);
        }

        @Override // android.os.Parcelable.Creator
        /* JADX INFO: renamed from: c, reason: merged with bridge method [inline-methods] */
        public com.vinfast.companion.core.utils.notification.FcmNotification[] newArray(int size) {
            return new com.vinfast.companion.core.utils.notification.FcmNotification[size];
        }

        private Companion() {
        }
    }

    public /* synthetic */ FcmNotification(java.lang.String str, java.lang.String str2, java.lang.String str3, boolean z, java.lang.Long l, java.util.Map map, java.lang.String str4, java.lang.String str5, boolean z2, int i, int i2, kotlin.jvm.internal.DefaultConstructorMarker defaultConstructorMarker) {
        this((i2 & 1) != 0 ? "" : str, (i2 & 2) != 0 ? "UNKNOWN" : str2, (i2 & 4) != 0 ? null : str3, (i2 & 8) != 0 ? false : z, (i2 & 16) != 0 ? null : l, (i2 & 32) != 0 ? null : map, (i2 & 64) != 0 ? null : str4, (i2 & 128) != 0 ? null : str5, (i2 & 256) != 0 ? false : z2, (i2 & 512) != 0 ? 0 : i);
    }

    /* JADX INFO: renamed from: P, reason: from getter */
    public final int getRedirectFlags() {
        return this.redirectFlags;
    }

    public final void Q(int i) {
        this.redirectFlags = i;
    }

    @Override // com.vinfast.companion.core.utils.notification.Notification, android.os.Parcelable
    public int describeContents() {
        return 0;
    }

    @Override // com.vinfast.companion.core.utils.notification.Notification, android.os.Parcelable
    public void writeToParcel(android.os.Parcel parcel, int flags) {
        kotlin.jvm.internal.Intrinsics.l(parcel, "parcel");
        super.writeToParcel(parcel, flags);
        parcel.writeInt(this.redirectFlags);
    }

    public FcmNotification(java.lang.String str, java.lang.String str2, java.lang.String str3, boolean z, java.lang.Long l, java.util.Map map, java.lang.String str4, java.lang.String str5, boolean z2, int i) {
        M(str);
        L(com.vinfast.companion.core.utils.notification.NotificationCategory.INSTANCE.a(str2));
        O(str3);
        N(z);
        F(l);
        K(map);
        B(str4);
        A(str5);
        J(z2);
        this.redirectFlags = i;
    }

    /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
    public FcmNotification(android.os.Parcel parcel) {
        super(parcel);
        kotlin.jvm.internal.Intrinsics.l(parcel, "parcel");
        this.redirectFlags = parcel.readInt();
    }
}
