package com.google.firebase.messaging;

import android.net.Uri;
import android.text.TextUtils;
import androidx.annotation.Nullable;

/* JADX INFO: loaded from: classes2.dex */
public final class w {

    /* JADX INFO: renamed from: a, reason: collision with root package name */
    public final String f24265a;

    /* JADX INFO: renamed from: b, reason: collision with root package name */
    public final String f24266b;

    /* JADX INFO: renamed from: c, reason: collision with root package name */
    public final String[] f24267c;

    /* JADX INFO: renamed from: d, reason: collision with root package name */
    public final String f24268d;

    /* JADX INFO: renamed from: e, reason: collision with root package name */
    public final String f24269e;

    /* JADX INFO: renamed from: f, reason: collision with root package name */
    public final String[] f24270f;

    /* JADX INFO: renamed from: g, reason: collision with root package name */
    public final String f24271g;

    /* JADX INFO: renamed from: h, reason: collision with root package name */
    public final String f24272h;

    /* JADX INFO: renamed from: i, reason: collision with root package name */
    public final String f24273i;

    /* JADX INFO: renamed from: j, reason: collision with root package name */
    public final String f24274j;

    /* JADX INFO: renamed from: k, reason: collision with root package name */
    public final String f24275k;

    /* JADX INFO: renamed from: l, reason: collision with root package name */
    public final String f24276l;

    /* JADX INFO: renamed from: m, reason: collision with root package name */
    public final String f24277m;

    /* JADX INFO: renamed from: n, reason: collision with root package name */
    public final Uri f24278n;

    /* JADX INFO: renamed from: o, reason: collision with root package name */
    public final String f24279o;

    /* JADX INFO: renamed from: p, reason: collision with root package name */
    public final Integer f24280p;

    /* JADX INFO: renamed from: q, reason: collision with root package name */
    public final Integer f24281q;

    /* JADX INFO: renamed from: r, reason: collision with root package name */
    public final Integer f24282r;

    /* JADX INFO: renamed from: s, reason: collision with root package name */
    public final int[] f24283s;

    /* JADX INFO: renamed from: t, reason: collision with root package name */
    public final Long f24284t;

    /* JADX INFO: renamed from: u, reason: collision with root package name */
    public final long[] f24285u;

    public w(t tVar) {
        String[] strArr;
        String[] strArr2;
        this.f24265a = tVar.c("gcm.n.title");
        this.f24266b = tVar.getLocalizationResourceForKey("gcm.n.title");
        Object[] localizationArgsForKey = tVar.getLocalizationArgsForKey("gcm.n.title");
        Long lValueOf = null;
        if (localizationArgsForKey == null) {
            strArr = null;
        } else {
            strArr = new String[localizationArgsForKey.length];
            for (int i10 = 0; i10 < localizationArgsForKey.length; i10++) {
                strArr[i10] = String.valueOf(localizationArgsForKey[i10]);
            }
        }
        this.f24267c = strArr;
        this.f24268d = tVar.c("gcm.n.body");
        this.f24269e = tVar.getLocalizationResourceForKey("gcm.n.body");
        Object[] localizationArgsForKey2 = tVar.getLocalizationArgsForKey("gcm.n.body");
        if (localizationArgsForKey2 == null) {
            strArr2 = null;
        } else {
            strArr2 = new String[localizationArgsForKey2.length];
            for (int i11 = 0; i11 < localizationArgsForKey2.length; i11++) {
                strArr2[i11] = String.valueOf(localizationArgsForKey2[i11]);
            }
        }
        this.f24270f = strArr2;
        this.f24271g = tVar.c("gcm.n.icon");
        this.f24273i = tVar.getSoundResourceName();
        this.f24274j = tVar.c("gcm.n.tag");
        this.f24275k = tVar.c("gcm.n.color");
        this.f24276l = tVar.c("gcm.n.click_action");
        this.f24277m = tVar.c("gcm.n.android_channel_id");
        this.f24278n = tVar.getLink();
        this.f24272h = tVar.c("gcm.n.image");
        this.f24279o = tVar.c("gcm.n.ticker");
        this.f24280p = tVar.b("gcm.n.notification_priority");
        this.f24281q = tVar.b("gcm.n.visibility");
        this.f24282r = tVar.b("gcm.n.notification_count");
        tVar.a("gcm.n.sticky");
        tVar.a("gcm.n.local_only");
        tVar.a("gcm.n.default_sound");
        tVar.a("gcm.n.default_vibrate_timings");
        tVar.a("gcm.n.default_light_settings");
        String strC = tVar.c("gcm.n.event_time");
        if (!TextUtils.isEmpty(strC)) {
            try {
                lValueOf = Long.valueOf(Long.parseLong(strC));
            } catch (NumberFormatException unused) {
                t.f("gcm.n.event_time");
            }
        }
        this.f24284t = lValueOf;
        this.f24283s = tVar.getLightSettings();
        this.f24285u = tVar.getVibrateTimings();
    }

    @Nullable
    public String getBody() {
        return this.f24268d;
    }

    @Nullable
    public String[] getBodyLocalizationArgs() {
        return this.f24270f;
    }

    @Nullable
    public String getBodyLocalizationKey() {
        return this.f24269e;
    }

    @Nullable
    public String getChannelId() {
        return this.f24277m;
    }

    @Nullable
    public String getClickAction() {
        return this.f24276l;
    }

    @Nullable
    public String getColor() {
        return this.f24275k;
    }

    @Nullable
    public Long getEventTime() {
        return this.f24284t;
    }

    @Nullable
    public String getIcon() {
        return this.f24271g;
    }

    @Nullable
    public Uri getImageUrl() {
        String str = this.f24272h;
        if (str != null) {
            return Uri.parse(str);
        }
        return null;
    }

    @Nullable
    public int[] getLightSettings() {
        return this.f24283s;
    }

    @Nullable
    public Uri getLink() {
        return this.f24278n;
    }

    @Nullable
    public Integer getNotificationCount() {
        return this.f24282r;
    }

    @Nullable
    public Integer getNotificationPriority() {
        return this.f24280p;
    }

    @Nullable
    public String getSound() {
        return this.f24273i;
    }

    @Nullable
    public String getTag() {
        return this.f24274j;
    }

    @Nullable
    public String getTicker() {
        return this.f24279o;
    }

    @Nullable
    public String getTitle() {
        return this.f24265a;
    }

    @Nullable
    public String[] getTitleLocalizationArgs() {
        return this.f24267c;
    }

    @Nullable
    public String getTitleLocalizationKey() {
        return this.f24266b;
    }

    @Nullable
    public long[] getVibrateTimings() {
        return this.f24285u;
    }

    @Nullable
    public Integer getVisibility() {
        return this.f24281q;
    }
}
