imToken v2.9.3版本的 MD5 值为:42af1a08a3f01f69d2f3782d81007b3c

以下内容为反编译后的 TimelineEvent.java 源代码,内容仅作参考


package com.helpscout.beacon.internal.domain.model;

import com.alipay.sdk.tid.b;
import com.google.android.gms.actions.SearchIntents;
import com.google.android.gms.common.internal.ImagesContract;
import com.sensorsdata.analytics.android.sdk.data.DbParams;
import java.util.ArrayList;
import java.util.List;
import kotlin.Metadata;
import kotlin.NoWhenBranchMatchedException;
import kotlin.jvm.internal.DefaultConstructorMarker;
import kotlin.jvm.internal.Intrinsics;
import org.threeten.bp.Instant;

@Metadata(bv = {1, 0, 3}, d1 = {"\u0000\u001e\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0002\b\u0007\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\b7\u0018\u0000 \u00042\u00020\u0001:\u0005\u0005\u0006\u0007\u0004\bB\t\b\u0002¢\u0006\u0004\b\u0002\u0010\u0003\u0082\u0001\u0004\t\n\u000b\f¨\u0006\r"}, d2 = {"Lcom/helpscout/beacon/internal/domain/model/TimelineEvent;", "", "<init>", "()V", "Companion", "ArticleViewed", "BeaconOpened", "ChatStarted", "Search", "Lcom/helpscout/beacon/internal/domain/model/TimelineEvent$Search;", "Lcom/helpscout/beacon/internal/domain/model/TimelineEvent$ArticleViewed;", "Lcom/helpscout/beacon/internal/domain/model/TimelineEvent$BeaconOpened;", "Lcom/helpscout/beacon/internal/domain/model/TimelineEvent$ChatStarted;", "beacon_release"}, k = 1, mv = {1, 4, 2})
public abstract class TimelineEvent {

    public static final Companion INSTANCE = new Companion(null);
    private static final String URL = "https://play.google.com/store/apps/details?id=com.helpscout.beacon";

    @Metadata(bv = {1, 0, 3}, d1 = {"\u0000&\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0010\u000e\n\u0002\b\f\n\u0002\u0010\b\n\u0002\b\u0002\n\u0002\u0010\u0000\n\u0000\n\u0002\u0010\u000b\n\u0002\b\n\b\u0087\b\u0018\u00002\u00020\u0001B+\u0012\b\b\u0002\u0010\b\u001a\u00020\u0002\u0012\b\b\u0002\u0010\t\u001a\u00020\u0002\u0012\u0006\u0010\n\u001a\u00020\u0002\u0012\u0006\u0010\u000b\u001a\u00020\u0002¢\u0006\u0004\b\u001c\u0010\u001dJ\u0010\u0010\u0003\u001a\u00020\u0002HÆ\u0003¢\u0006\u0004\b\u0003\u0010\u0004J\u0010\u0010\u0005\u001a\u00020\u0002HÆ\u0003¢\u0006\u0004\b\u0005\u0010\u0004J\u0010\u0010\u0006\u001a\u00020\u0002HÆ\u0003¢\u0006\u0004\b\u0006\u0010\u0004J\u0010\u0010\u0007\u001a\u00020\u0002HÆ\u0003¢\u0006\u0004\b\u0007\u0010\u0004J8\u0010\f\u001a\u00020\u00002\b\b\u0002\u0010\b\u001a\u00020\u00022\b\b\u0002\u0010\t\u001a\u00020\u00022\b\b\u0002\u0010\n\u001a\u00020\u00022\b\b\u0002\u0010\u000b\u001a\u00020\u0002HÆ\u0001¢\u0006\u0004\b\f\u0010\rJ\u0010\u0010\u000e\u001a\u00020\u0002HÖ\u0001¢\u0006\u0004\b\u000e\u0010\u0004J\u0010\u0010\u0010\u001a\u00020\u000fHÖ\u0001¢\u0006\u0004\b\u0010\u0010\u0011J\u001a\u0010\u0015\u001a\u00020\u00142\b\u0010\u0013\u001a\u0004\u0018\u00010\u0012HÖ\u0003¢\u0006\u0004\b\u0015\u0010\u0016R\u0019\u0010\b\u001a\u00020\u00028\u0006@\u0006¢\u0006\f\n\u0004\b\b\u0010\u0017\u001a\u0004\b\u0018\u0010\u0004R\u0019\u0010\t\u001a\u00020\u00028\u0006@\u0006¢\u0006\f\n\u0004\b\t\u0010\u0017\u001a\u0004\b\u0019\u0010\u0004R\u0019\u0010\u000b\u001a\u00020\u00028\u0006@\u0006¢\u0006\f\n\u0004\b\u000b\u0010\u0017\u001a\u0004\b\u001a\u0010\u0004R\u0019\u0010\n\u001a\u00020\u00028\u0006@\u0006¢\u0006\f\n\u0004\b\n\u0010\u0017\u001a\u0004\b\u001b\u0010\u0004¨\u0006\u001e"}, d2 = {"Lcom/helpscout/beacon/internal/domain/model/TimelineEvent$ArticleViewed;", "Lcom/helpscout/beacon/internal/domain/model/TimelineEvent;", "", "component1", "()Ljava/lang/String;", "component2", "component3", "component4", "type", b.f, "title", ImagesContract.URL, "copy", "(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)Lcom/helpscout/beacon/internal/domain/model/TimelineEvent$ArticleViewed;", "toString", "", "hashCode", "()I", "", "other", "", "equals", "(Ljava/lang/Object;)Z", "Ljava/lang/String;", "getType", "getTimestamp", "getUrl", "getTitle", "<init>", "(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V", "beacon_release"}, k = 1, mv = {1, 4, 2})
    public static final class ArticleViewed extends TimelineEvent {
        private final String timestamp;
        private final String title;
        private final String type;
        private final String url;

        public ArticleViewed(String type, String timestamp, String title, String url) {
            super(null);
            Intrinsics.checkNotNullParameter(type, "type");
            Intrinsics.checkNotNullParameter(timestamp, "timestamp");
            Intrinsics.checkNotNullParameter(title, "title");
            Intrinsics.checkNotNullParameter(url, "url");
            this.type = type;
            this.timestamp = timestamp;
            this.title = title;
            this.url = url;
        }

        public ArticleViewed(String str, String str2, String str3, String str4, int i, DefaultConstructorMarker defaultConstructorMarker) {
            this((i & 1) != 0 ? "article-viewed" : str, (i & 2) != 0 ? TimelineEvent.INSTANCE.isoTimestamp() : str2, str3, str4);
        }

        public static ArticleViewed copy$default(ArticleViewed articleViewed, String str, String str2, String str3, String str4, int i, Object obj) {
            if ((i & 1) != 0) {
                str = articleViewed.type;
            }
            if ((i & 2) != 0) {
                str2 = articleViewed.timestamp;
            }
            if ((i & 4) != 0) {
                str3 = articleViewed.title;
            }
            if ((i & 8) != 0) {
                str4 = articleViewed.url;
            }
            return articleViewed.copy(str, str2, str3, str4);
        }

        public final String getType() {
            return this.type;
        }

        public final String getTimestamp() {
            return this.timestamp;
        }

        public final String getTitle() {
            return this.title;
        }

        public final String getUrl() {
            return this.url;
        }

        public final ArticleViewed copy(String type, String timestamp, String title, String url) {
            Intrinsics.checkNotNullParameter(type, "type");
            Intrinsics.checkNotNullParameter(timestamp, "timestamp");
            Intrinsics.checkNotNullParameter(title, "title");
            Intrinsics.checkNotNullParameter(url, "url");
            return new ArticleViewed(type, timestamp, title, url);
        }

        public boolean equals(Object other) {
            if (this == other) {
                return true;
            }
            if (!(other instanceof ArticleViewed)) {
                return false;
            }
            ArticleViewed articleViewed = (ArticleViewed) other;
            return Intrinsics.areEqual(this.type, articleViewed.type) && Intrinsics.areEqual(this.timestamp, articleViewed.timestamp) && Intrinsics.areEqual(this.title, articleViewed.title) && Intrinsics.areEqual(this.url, articleViewed.url);
        }

        public final String getTimestamp() {
            return this.timestamp;
        }

        public final String getTitle() {
            return this.title;
        }

        public final String getType() {
            return this.type;
        }

        public final String getUrl() {
            return this.url;
        }

        public int hashCode() {
            String str = this.type;
            int hashCode = (str != null ? str.hashCode() : 0) * 31;
            String str2 = this.timestamp;
            int hashCode2 = (hashCode + (str2 != null ? str2.hashCode() : 0)) * 31;
            String str3 = this.title;
            int hashCode3 = (hashCode2 + (str3 != null ? str3.hashCode() : 0)) * 31;
            String str4 = this.url;
            return hashCode3 + (str4 != null ? str4.hashCode() : 0);
        }

        public String toString() {
            return "ArticleViewed(type=" + this.type + ", timestamp=" + this.timestamp + ", title=" + this.title + ", url=" + this.url + ")";
        }
    }

    @Metadata(bv = {1, 0, 3}, d1 = {"\u0000&\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0010\u000e\n\u0002\b\n\n\u0002\u0010\b\n\u0002\b\u0002\n\u0002\u0010\u0000\n\u0000\n\u0002\u0010\u000b\n\u0002\b\t\b\u0087\b\u0018\u00002\u00020\u0001B%\u0012\b\b\u0002\u0010\u0007\u001a\u00020\u0002\u0012\b\b\u0002\u0010\b\u001a\u00020\u0002\u0012\b\b\u0002\u0010\t\u001a\u00020\u0002¢\u0006\u0004\b\u0019\u0010\u001aJ\u0010\u0010\u0003\u001a\u00020\u0002HÆ\u0003¢\u0006\u0004\b\u0003\u0010\u0004J\u0010\u0010\u0005\u001a\u00020\u0002HÆ\u0003¢\u0006\u0004\b\u0005\u0010\u0004J\u0010\u0010\u0006\u001a\u00020\u0002HÆ\u0003¢\u0006\u0004\b\u0006\u0010\u0004J.\u0010\n\u001a\u00020\u00002\b\b\u0002\u0010\u0007\u001a\u00020\u00022\b\b\u0002\u0010\b\u001a\u00020\u00022\b\b\u0002\u0010\t\u001a\u00020\u0002HÆ\u0001¢\u0006\u0004\b\n\u0010\u000bJ\u0010\u0010\f\u001a\u00020\u0002HÖ\u0001¢\u0006\u0004\b\f\u0010\u0004J\u0010\u0010\u000e\u001a\u00020\rHÖ\u0001¢\u0006\u0004\b\u000e\u0010\u000fJ\u001a\u0010\u0013\u001a\u00020\u00122\b\u0010\u0011\u001a\u0004\u0018\u00010\u0010HÖ\u0003¢\u0006\u0004\b\u0013\u0010\u0014R\u0019\u0010\b\u001a\u00020\u00028\u0006@\u0006¢\u0006\f\n\u0004\b\b\u0010\u0015\u001a\u0004\b\u0016\u0010\u0004R\u0019\u0010\t\u001a\u00020\u00028\u0006@\u0006¢\u0006\f\n\u0004\b\t\u0010\u0015\u001a\u0004\b\u0017\u0010\u0004R\u0019\u0010\u0007\u001a\u00020\u00028\u0006@\u0006¢\u0006\f\n\u0004\b\u0007\u0010\u0015\u001a\u0004\b\u0018\u0010\u0004¨\u0006\u001b"}, d2 = {"Lcom/helpscout/beacon/internal/domain/model/TimelineEvent$BeaconOpened;", "Lcom/helpscout/beacon/internal/domain/model/TimelineEvent;", "", "component1", "()Ljava/lang/String;", "component2", "component3", "type", b.f, ImagesContract.URL, "copy", "(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)Lcom/helpscout/beacon/internal/domain/model/TimelineEvent$BeaconOpened;", "toString", "", "hashCode", "()I", "", "other", "", "equals", "(Ljava/lang/Object;)Z", "Ljava/lang/String;", "getTimestamp", "getUrl", "getType", "<init>", "(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V", "beacon_release"}, k = 1, mv = {1, 4, 2})
    public static final class BeaconOpened extends TimelineEvent {
        private final String timestamp;
        private final String type;
        private final String url;

        public BeaconOpened() {
            this(null, null, null, 7, null);
        }

        public BeaconOpened(String type, String timestamp, String url) {
            super(null);
            Intrinsics.checkNotNullParameter(type, "type");
            Intrinsics.checkNotNullParameter(timestamp, "timestamp");
            Intrinsics.checkNotNullParameter(url, "url");
            this.type = type;
            this.timestamp = timestamp;
            this.url = url;
        }

        public BeaconOpened(String str, String str2, String str3, int i, DefaultConstructorMarker defaultConstructorMarker) {
            this((i & 1) != 0 ? "beacon-opened" : str, (i & 2) != 0 ? TimelineEvent.INSTANCE.isoTimestamp() : str2, (i & 4) != 0 ? TimelineEvent.URL : str3);
        }

        public static BeaconOpened copy$default(BeaconOpened beaconOpened, String str, String str2, String str3, int i, Object obj) {
            if ((i & 1) != 0) {
                str = beaconOpened.type;
            }
            if ((i & 2) != 0) {
                str2 = beaconOpened.timestamp;
            }
            if ((i & 4) != 0) {
                str3 = beaconOpened.url;
            }
            return beaconOpened.copy(str, str2, str3);
        }

        public final String getType() {
            return this.type;
        }

        public final String getTimestamp() {
            return this.timestamp;
        }

        public final String getUrl() {
            return this.url;
        }

        public final BeaconOpened copy(String type, String timestamp, String url) {
            Intrinsics.checkNotNullParameter(type, "type");
            Intrinsics.checkNotNullParameter(timestamp, "timestamp");
            Intrinsics.checkNotNullParameter(url, "url");
            return new BeaconOpened(type, timestamp, url);
        }

        public boolean equals(Object other) {
            if (this == other) {
                return true;
            }
            if (!(other instanceof BeaconOpened)) {
                return false;
            }
            BeaconOpened beaconOpened = (BeaconOpened) other;
            return Intrinsics.areEqual(this.type, beaconOpened.type) && Intrinsics.areEqual(this.timestamp, beaconOpened.timestamp) && Intrinsics.areEqual(this.url, beaconOpened.url);
        }

        public final String getTimestamp() {
            return this.timestamp;
        }

        public final String getType() {
            return this.type;
        }

        public final String getUrl() {
            return this.url;
        }

        public int hashCode() {
            String str = this.type;
            int hashCode = (str != null ? str.hashCode() : 0) * 31;
            String str2 = this.timestamp;
            int hashCode2 = (hashCode + (str2 != null ? str2.hashCode() : 0)) * 31;
            String str3 = this.url;
            return hashCode2 + (str3 != null ? str3.hashCode() : 0);
        }

        public String toString() {
            return "BeaconOpened(type=" + this.type + ", timestamp=" + this.timestamp + ", url=" + this.url + ")";
        }
    }

    @Metadata(bv = {1, 0, 3}, d1 = {"\u0000&\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0010\u000e\n\u0002\b\n\n\u0002\u0010\b\n\u0002\b\u0002\n\u0002\u0010\u0000\n\u0000\n\u0002\u0010\u000b\n\u0002\b\t\b\u0087\b\u0018\u00002\u00020\u0001B%\u0012\b\b\u0002\u0010\u0007\u001a\u00020\u0002\u0012\b\b\u0002\u0010\b\u001a\u00020\u0002\u0012\b\b\u0002\u0010\t\u001a\u00020\u0002¢\u0006\u0004\b\u0019\u0010\u001aJ\u0010\u0010\u0003\u001a\u00020\u0002HÆ\u0003¢\u0006\u0004\b\u0003\u0010\u0004J\u0010\u0010\u0005\u001a\u00020\u0002HÆ\u0003¢\u0006\u0004\b\u0005\u0010\u0004J\u0010\u0010\u0006\u001a\u00020\u0002HÆ\u0003¢\u0006\u0004\b\u0006\u0010\u0004J.\u0010\n\u001a\u00020\u00002\b\b\u0002\u0010\u0007\u001a\u00020\u00022\b\b\u0002\u0010\b\u001a\u00020\u00022\b\b\u0002\u0010\t\u001a\u00020\u0002HÆ\u0001¢\u0006\u0004\b\n\u0010\u000bJ\u0010\u0010\f\u001a\u00020\u0002HÖ\u0001¢\u0006\u0004\b\f\u0010\u0004J\u0010\u0010\u000e\u001a\u00020\rHÖ\u0001¢\u0006\u0004\b\u000e\u0010\u000fJ\u001a\u0010\u0013\u001a\u00020\u00122\b\u0010\u0011\u001a\u0004\u0018\u00010\u0010HÖ\u0003¢\u0006\u0004\b\u0013\u0010\u0014R\u0019\u0010\t\u001a\u00020\u00028\u0006@\u0006¢\u0006\f\n\u0004\b\t\u0010\u0015\u001a\u0004\b\u0016\u0010\u0004R\u0019\u0010\b\u001a\u00020\u00028\u0006@\u0006¢\u0006\f\n\u0004\b\b\u0010\u0015\u001a\u0004\b\u0017\u0010\u0004R\u0019\u0010\u0007\u001a\u00020\u00028\u0006@\u0006¢\u0006\f\n\u0004\b\u0007\u0010\u0015\u001a\u0004\b\u0018\u0010\u0004¨\u0006\u001b"}, d2 = {"Lcom/helpscout/beacon/internal/domain/model/TimelineEvent$ChatStarted;", "Lcom/helpscout/beacon/internal/domain/model/TimelineEvent;", "", "component1", "()Ljava/lang/String;", "component2", "component3", "type", b.f, ImagesContract.URL, "copy", "(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)Lcom/helpscout/beacon/internal/domain/model/TimelineEvent$ChatStarted;", "toString", "", "hashCode", "()I", "", "other", "", "equals", "(Ljava/lang/Object;)Z", "Ljava/lang/String;", "getUrl", "getTimestamp", "getType", "<init>", "(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V", "beacon_release"}, k = 1, mv = {1, 4, 2})
    public static final class ChatStarted extends TimelineEvent {
        private final String timestamp;
        private final String type;
        private final String url;

        public ChatStarted() {
            this(null, null, null, 7, null);
        }

        public ChatStarted(String type, String timestamp, String url) {
            super(null);
            Intrinsics.checkNotNullParameter(type, "type");
            Intrinsics.checkNotNullParameter(timestamp, "timestamp");
            Intrinsics.checkNotNullParameter(url, "url");
            this.type = type;
            this.timestamp = timestamp;
            this.url = url;
        }

        public ChatStarted(String str, String str2, String str3, int i, DefaultConstructorMarker defaultConstructorMarker) {
            this((i & 1) != 0 ? "chat-started" : str, (i & 2) != 0 ? TimelineEvent.INSTANCE.isoTimestamp() : str2, (i & 4) != 0 ? TimelineEvent.URL : str3);
        }

        public static ChatStarted copy$default(ChatStarted chatStarted, String str, String str2, String str3, int i, Object obj) {
            if ((i & 1) != 0) {
                str = chatStarted.type;
            }
            if ((i & 2) != 0) {
                str2 = chatStarted.timestamp;
            }
            if ((i & 4) != 0) {
                str3 = chatStarted.url;
            }
            return chatStarted.copy(str, str2, str3);
        }

        public final String getType() {
            return this.type;
        }

        public final String getTimestamp() {
            return this.timestamp;
        }

        public final String getUrl() {
            return this.url;
        }

        public final ChatStarted copy(String type, String timestamp, String url) {
            Intrinsics.checkNotNullParameter(type, "type");
            Intrinsics.checkNotNullParameter(timestamp, "timestamp");
            Intrinsics.checkNotNullParameter(url, "url");
            return new ChatStarted(type, timestamp, url);
        }

        public boolean equals(Object other) {
            if (this == other) {
                return true;
            }
            if (!(other instanceof ChatStarted)) {
                return false;
            }
            ChatStarted chatStarted = (ChatStarted) other;
            return Intrinsics.areEqual(this.type, chatStarted.type) && Intrinsics.areEqual(this.timestamp, chatStarted.timestamp) && Intrinsics.areEqual(this.url, chatStarted.url);
        }

        public final String getTimestamp() {
            return this.timestamp;
        }

        public final String getType() {
            return this.type;
        }

        public final String getUrl() {
            return this.url;
        }

        public int hashCode() {
            String str = this.type;
            int hashCode = (str != null ? str.hashCode() : 0) * 31;
            String str2 = this.timestamp;
            int hashCode2 = (hashCode + (str2 != null ? str2.hashCode() : 0)) * 31;
            String str3 = this.url;
            return hashCode2 + (str3 != null ? str3.hashCode() : 0);
        }

        public String toString() {
            return "ChatStarted(type=" + this.type + ", timestamp=" + this.timestamp + ", url=" + this.url + ")";
        }
    }

    @Metadata(bv = {1, 0, 3}, d1 = {"\u0000\"\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0002\u0010\u000e\n\u0002\b\u0002\n\u0002\u0010 \n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0007\b\u0086\u0003\u0018\u00002\u00020\u0001B\t\b\u0002¢\u0006\u0004\b\r\u0010\u000eJ\r\u0010\u0003\u001a\u00020\u0002¢\u0006\u0004\b\u0003\u0010\u0004J!\u0010\t\u001a\b\u0012\u0004\u0012\u00020\b0\u00052\f\u0010\u0007\u001a\b\u0012\u0004\u0012\u00020\u00060\u0005¢\u0006\u0004\b\t\u0010\nR\u0016\u0010\u000b\u001a\u00020\u00028\u0002@\u0002X\u0082T¢\u0006\u0006\n\u0004\b\u000b\u0010\f¨\u0006\u000f"}, d2 = {"Lcom/helpscout/beacon/internal/domain/model/TimelineEvent$Companion;", "", "", "isoTimestamp", "()Ljava/lang/String;", "", "Lcom/helpscout/beacon/internal/domain/model/TimelineEvent;", DbParams.TABLE_EVENTS, "Lcom/helpscout/beacon/internal/domain/model/ApiTimelineEvent;", "convertTimelineEventListForApi", "(Ljava/util/List;)Ljava/util/List;", "URL", "Ljava/lang/String;", "<init>", "()V", "beacon_release"}, k = 1, mv = {1, 4, 2})
    public static final class Companion {
        private Companion() {
        }

        public Companion(DefaultConstructorMarker defaultConstructorMarker) {
            this();
        }

        public final List<ApiTimelineEvent> convertTimelineEventListForApi(List<? extends TimelineEvent> events) {
            ApiTimelineEvent apiTimelineEvent;
            Intrinsics.checkNotNullParameter(events, "events");
            ArrayList arrayList = new ArrayList();
            for (TimelineEvent timelineEvent : events) {
                if (timelineEvent instanceof Search) {
                    Search search = (Search) timelineEvent;
                    apiTimelineEvent = new ApiTimelineEvent(search.getType(), search.getTimestamp(), search.getType(), search.getUrl(), search.getQuery());
                } else if (timelineEvent instanceof ArticleViewed) {
                    ArticleViewed articleViewed = (ArticleViewed) timelineEvent;
                    apiTimelineEvent = new ApiTimelineEvent(articleViewed.getType(), articleViewed.getTimestamp(), articleViewed.getTitle(), articleViewed.getUrl(), null, 16, null);
                } else if (timelineEvent instanceof BeaconOpened) {
                    BeaconOpened beaconOpened = (BeaconOpened) timelineEvent;
                    apiTimelineEvent = new ApiTimelineEvent(beaconOpened.getType(), beaconOpened.getTimestamp(), null, beaconOpened.getUrl(), null, 20, null);
                } else {
                    if (!(timelineEvent instanceof ChatStarted)) {
                        throw new NoWhenBranchMatchedException();
                    }
                    ChatStarted chatStarted = (ChatStarted) timelineEvent;
                    apiTimelineEvent = new ApiTimelineEvent(chatStarted.getType(), chatStarted.getTimestamp(), null, chatStarted.getUrl(), null, 20, null);
                }
                arrayList.add(apiTimelineEvent);
            }
            return arrayList;
        }

        public final String isoTimestamp() {
            String instant = Instant.now().toString();
            Intrinsics.checkNotNullExpressionValue(instant, "Instant.now().toString()");
            return instant;
        }
    }

    @Metadata(bv = {1, 0, 3}, d1 = {"\u0000&\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0010\u000e\n\u0002\b\f\n\u0002\u0010\b\n\u0002\b\u0002\n\u0002\u0010\u0000\n\u0000\n\u0002\u0010\u000b\n\u0002\b\n\b\u0087\b\u0018\u00002\u00020\u0001B-\u0012\b\b\u0002\u0010\b\u001a\u00020\u0002\u0012\b\b\u0002\u0010\t\u001a\u00020\u0002\u0012\u0006\u0010\n\u001a\u00020\u0002\u0012\b\b\u0002\u0010\u000b\u001a\u00020\u0002¢\u0006\u0004\b\u001c\u0010\u001dJ\u0010\u0010\u0003\u001a\u00020\u0002HÆ\u0003¢\u0006\u0004\b\u0003\u0010\u0004J\u0010\u0010\u0005\u001a\u00020\u0002HÆ\u0003¢\u0006\u0004\b\u0005\u0010\u0004J\u0010\u0010\u0006\u001a\u00020\u0002HÆ\u0003¢\u0006\u0004\b\u0006\u0010\u0004J\u0010\u0010\u0007\u001a\u00020\u0002HÆ\u0003¢\u0006\u0004\b\u0007\u0010\u0004J8\u0010\f\u001a\u00020\u00002\b\b\u0002\u0010\b\u001a\u00020\u00022\b\b\u0002\u0010\t\u001a\u00020\u00022\b\b\u0002\u0010\n\u001a\u00020\u00022\b\b\u0002\u0010\u000b\u001a\u00020\u0002HÆ\u0001¢\u0006\u0004\b\f\u0010\rJ\u0010\u0010\u000e\u001a\u00020\u0002HÖ\u0001¢\u0006\u0004\b\u000e\u0010\u0004J\u0010\u0010\u0010\u001a\u00020\u000fHÖ\u0001¢\u0006\u0004\b\u0010\u0010\u0011J\u001a\u0010\u0015\u001a\u00020\u00142\b\u0010\u0013\u001a\u0004\u0018\u00010\u0012HÖ\u0003¢\u0006\u0004\b\u0015\u0010\u0016R\u0019\u0010\n\u001a\u00020\u00028\u0006@\u0006¢\u0006\f\n\u0004\b\n\u0010\u0017\u001a\u0004\b\u0018\u0010\u0004R\u0019\u0010\b\u001a\u00020\u00028\u0006@\u0006¢\u0006\f\n\u0004\b\b\u0010\u0017\u001a\u0004\b\u0019\u0010\u0004R\u0019\u0010\t\u001a\u00020\u00028\u0006@\u0006¢\u0006\f\n\u0004\b\t\u0010\u0017\u001a\u0004\b\u001a\u0010\u0004R\u0019\u0010\u000b\u001a\u00020\u00028\u0006@\u0006¢\u0006\f\n\u0004\b\u000b\u0010\u0017\u001a\u0004\b\u001b\u0010\u0004¨\u0006\u001e"}, d2 = {"Lcom/helpscout/beacon/internal/domain/model/TimelineEvent$Search;", "Lcom/helpscout/beacon/internal/domain/model/TimelineEvent;", "", "component1", "()Ljava/lang/String;", "component2", "component3", "component4", "type", b.f, SearchIntents.EXTRA_QUERY, ImagesContract.URL, "copy", "(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)Lcom/helpscout/beacon/internal/domain/model/TimelineEvent$Search;", "toString", "", "hashCode", "()I", "", "other", "", "equals", "(Ljava/lang/Object;)Z", "Ljava/lang/String;", "getQuery", "getType", "getTimestamp", "getUrl", "<init>", "(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V", "beacon_release"}, k = 1, mv = {1, 4, 2})
    public static final class Search extends TimelineEvent {
        private final String query;
        private final String timestamp;
        private final String type;
        private final String url;

        public Search(String type, String timestamp, String query, String url) {
            super(null);
            Intrinsics.checkNotNullParameter(type, "type");
            Intrinsics.checkNotNullParameter(timestamp, "timestamp");
            Intrinsics.checkNotNullParameter(query, "query");
            Intrinsics.checkNotNullParameter(url, "url");
            this.type = type;
            this.timestamp = timestamp;
            this.query = query;
            this.url = url;
        }

        public Search(String str, String str2, String str3, String str4, int i, DefaultConstructorMarker defaultConstructorMarker) {
            this((i & 1) != 0 ? "search" : str, (i & 2) != 0 ? TimelineEvent.INSTANCE.isoTimestamp() : str2, str3, (i & 8) != 0 ? TimelineEvent.URL : str4);
        }

        public static Search copy$default(Search search, String str, String str2, String str3, String str4, int i, Object obj) {
            if ((i & 1) != 0) {
                str = search.type;
            }
            if ((i & 2) != 0) {
                str2 = search.timestamp;
            }
            if ((i & 4) != 0) {
                str3 = search.query;
            }
            if ((i & 8) != 0) {
                str4 = search.url;
            }
            return search.copy(str, str2, str3, str4);
        }

        public final String getType() {
            return this.type;
        }

        public final String getTimestamp() {
            return this.timestamp;
        }

        public final String getQuery() {
            return this.query;
        }

        public final String getUrl() {
            return this.url;
        }

        public final Search copy(String type, String timestamp, String query, String url) {
            Intrinsics.checkNotNullParameter(type, "type");
            Intrinsics.checkNotNullParameter(timestamp, "timestamp");
            Intrinsics.checkNotNullParameter(query, "query");
            Intrinsics.checkNotNullParameter(url, "url");
            return new Search(type, timestamp, query, url);
        }

        public boolean equals(Object other) {
            if (this == other) {
                return true;
            }
            if (!(other instanceof Search)) {
                return false;
            }
            Search search = (Search) other;
            return Intrinsics.areEqual(this.type, search.type) && Intrinsics.areEqual(this.timestamp, search.timestamp) && Intrinsics.areEqual(this.query, search.query) && Intrinsics.areEqual(this.url, search.url);
        }

        public final String getQuery() {
            return this.query;
        }

        public final String getTimestamp() {
            return this.timestamp;
        }

        public final String getType() {
            return this.type;
        }

        public final String getUrl() {
            return this.url;
        }

        public int hashCode() {
            String str = this.type;
            int hashCode = (str != null ? str.hashCode() : 0) * 31;
            String str2 = this.timestamp;
            int hashCode2 = (hashCode + (str2 != null ? str2.hashCode() : 0)) * 31;
            String str3 = this.query;
            int hashCode3 = (hashCode2 + (str3 != null ? str3.hashCode() : 0)) * 31;
            String str4 = this.url;
            return hashCode3 + (str4 != null ? str4.hashCode() : 0);
        }

        public String toString() {
            return "Search(type=" + this.type + ", timestamp=" + this.timestamp + ", query=" + this.query + ", url=" + this.url + ")";
        }
    }

    private TimelineEvent() {
    }

    public TimelineEvent(DefaultConstructorMarker defaultConstructorMarker) {
        this();
    }
}