导航菜单

页面标题

页面副标题

BetterTogether v3.0.0 - EventMessage.java 源代码

正在查看: BetterTogether v3.0.0 应用的 EventMessage.java JAVA 源代码文件

本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。


package com.appsamurai.storyly.exoplayer2.extractor.metadata.emsg;

import android.os.Parcel;
import android.os.Parcelable;
import com.appsamurai.storyly.exoplayer2.common.metadata.Metadata;
import java.util.Arrays;
import o9.g;
import o9.h;
import w9.u;
import z5.a;

public final class EventMessage implements Metadata.Entry {
    public static final Parcelable.Creator<EventMessage> CREATOR;
    public static final h M;

    public static final h f4730y;

    public final String f4731d;

    public final String f4732e;

    public final long f4733i;

    public final long f4734v;

    public final byte[] f4735w;

    public int f4736x;

    static {
        g gVar = new g();
        gVar.f15038k = "application/id3";
        f4730y = gVar.a();
        g gVar2 = new g();
        gVar2.f15038k = "application/x-scte35";
        M = gVar2.a();
        CREATOR = new a(23);
    }

    public EventMessage(String str, String str2, long j10, long j11, byte[] bArr) {
        this.f4731d = str;
        this.f4732e = str2;
        this.f4733i = j10;
        this.f4734v = j11;
        this.f4735w = bArr;
    }

    @Override
    public final byte[] A0() {
        if (E() != null) {
            return this.f4735w;
        }
        return null;
    }

    @Override
    public final h E() {
        String str = this.f4731d;
        str.getClass();
        switch (str) {
            case "urn:scte:scte35:2014:bin":
                return M;
            case "https://aomedia.org/emsg/ID3":
            case "https://developer.apple.com/streaming/emsg-id3":
                return f4730y;
            default:
                return null;
        }
    }

    @Override
    public final int describeContents() {
        return 0;
    }

    public final boolean equals(Object obj) {
        if (this == obj) {
            return true;
        }
        if (obj == null || EventMessage.class != obj.getClass()) {
            return false;
        }
        EventMessage eventMessage = (EventMessage) obj;
        return this.f4733i == eventMessage.f4733i && this.f4734v == eventMessage.f4734v && u.a(this.f4731d, eventMessage.f4731d) && u.a(this.f4732e, eventMessage.f4732e) && Arrays.equals(this.f4735w, eventMessage.f4735w);
    }

    public final int hashCode() {
        if (this.f4736x == 0) {
            String str = this.f4731d;
            int hashCode = (527 + (str != null ? str.hashCode() : 0)) * 31;
            String str2 = this.f4732e;
            int hashCode2 = (hashCode + (str2 != null ? str2.hashCode() : 0)) * 31;
            long j10 = this.f4733i;
            int i10 = (hashCode2 + ((int) (j10 ^ (j10 >>> 32)))) * 31;
            long j11 = this.f4734v;
            this.f4736x = Arrays.hashCode(this.f4735w) + ((i10 + ((int) (j11 ^ (j11 >>> 32)))) * 31);
        }
        return this.f4736x;
    }

    public final String toString() {
        return "EMSG: scheme=" + this.f4731d + ", id=" + this.f4734v + ", durationMs=" + this.f4733i + ", value=" + this.f4732e;
    }

    @Override
    public final void writeToParcel(Parcel parcel, int i10) {
        parcel.writeString(this.f4731d);
        parcel.writeString(this.f4732e);
        parcel.writeLong(this.f4733i);
        parcel.writeLong(this.f4734v);
        parcel.writeByteArray(this.f4735w);
    }

    public EventMessage(Parcel parcel) {
        String readString = parcel.readString();
        int i10 = u.a;
        this.f4731d = readString;
        this.f4732e = parcel.readString();
        this.f4733i = parcel.readLong();
        this.f4734v = parcel.readLong();
        this.f4735w = parcel.createByteArray();
    }
}