package xyz.stream.api.entity;

import android.os.Parcel;
import android.os.Parcelable;
import androidx.annotation.NonNull;
import com.google.gson.annotations.SerializedName;
import com.pichillilorenzo.flutter_inappwebview_android.credential_database.URLProtectionSpaceContract;
import java.util.List;
import xyz.stream.download.config.InnerConstant;

/* JADX INFO: loaded from: classes3.dex */
public class LiveChannelEntity implements Parcelable {
    public static final Parcelable.Creator<LiveChannelEntity> CREATOR = new Parcelable.Creator<LiveChannelEntity>() { // from class: xyz.stream.api.entity.LiveChannelEntity.1
        @Override // android.os.Parcelable.Creator
        public LiveChannelEntity createFromParcel(Parcel parcel) {
            return new LiveChannelEntity(parcel);
        }

        @Override // android.os.Parcelable.Creator
        public LiveChannelEntity[] newArray(int i10) {
            return new LiveChannelEntity[i10];
        }
    };

    @SerializedName("backup_turbo_url")
    private String backupTurboUrl;

    @SerializedName("category_id")
    private Integer categoryId;

    @SerializedName("category_property")
    private String categoryProperty;

    @SerializedName("cover_url")
    private String coverUrl;

    @SerializedName("epg_url")
    private String epgUrl;

    @SerializedName("extra")
    private String extra;

    /* JADX INFO: renamed from: id, reason: collision with root package name */
    @SerializedName(InnerConstant.Db.f36069id)
    private Integer f35850id;

    @SerializedName("is_adult")
    private int isAdult;

    @SerializedName("is_iptv")
    private int isIptv;

    @SerializedName("is_premium")
    private int isPremium;

    @SerializedName("logo")
    private String logo;

    @SerializedName("name")
    private String name;

    @SerializedName("play_url_list")
    private List<PlayUrlListEntity> playUrlList;

    @SerializedName(URLProtectionSpaceContract.FeedEntry.COLUMN_NAME_PROTOCOL)
    private int protocol;

    @SerializedName("turbo_url")
    private String turboUrl;

    public static class PlayUrlListEntity implements Parcelable {
        public static final Parcelable.Creator<PlayUrlListEntity> CREATOR = new Parcelable.Creator<PlayUrlListEntity>() { // from class: xyz.stream.api.entity.LiveChannelEntity.PlayUrlListEntity.1
            @Override // android.os.Parcelable.Creator
            public PlayUrlListEntity createFromParcel(Parcel parcel) {
                return new PlayUrlListEntity(parcel);
            }

            @Override // android.os.Parcelable.Creator
            public PlayUrlListEntity[] newArray(int i10) {
                return new PlayUrlListEntity[i10];
            }
        };

        @SerializedName("play_url")
        String playUrl;

        @SerializedName("type")
        int type;

        public PlayUrlListEntity(Parcel parcel) {
            this.type = parcel.readInt();
            this.playUrl = parcel.readString();
        }

        @Override // android.os.Parcelable
        public int describeContents() {
            return 0;
        }

        public String getPlayUrl() {
            return this.playUrl;
        }

        public int getType() {
            return this.type;
        }

        public void setPlayUrl(String str) {
            this.playUrl = str;
        }

        public void setType(int i10) {
            this.type = i10;
        }

        @Override // android.os.Parcelable
        public void writeToParcel(@NonNull Parcel parcel, int i10) {
            parcel.writeInt(this.type);
            parcel.writeString(this.playUrl);
        }
    }

    public LiveChannelEntity() {
    }

    @Override // android.os.Parcelable
    public int describeContents() {
        return 0;
    }

    public String getBackupTurboUrl() {
        return this.backupTurboUrl;
    }

    public Integer getCategoryId() {
        return this.categoryId;
    }

    public String getCategoryProperty() {
        return this.categoryProperty;
    }

    public String getCoverUrl() {
        return this.coverUrl;
    }

    public String getEpgUrl() {
        return this.epgUrl;
    }

    public String getExtra() {
        return this.extra;
    }

    public Integer getId() {
        return this.f35850id;
    }

    public int getIsAdult() {
        return this.isAdult;
    }

    public int getIsIptv() {
        return this.isIptv;
    }

    public int getIsPremium() {
        return this.isPremium;
    }

    public String getLogo() {
        return this.logo;
    }

    public String getName() {
        return this.name;
    }

    public List<PlayUrlListEntity> getPlayUrlList() {
        return this.playUrlList;
    }

    public int getProtocol() {
        return this.protocol;
    }

    public String getTurboUrl() {
        return this.turboUrl;
    }

    public void setBackupTurboUrl(String str) {
        this.backupTurboUrl = str;
    }

    public void setCategoryId(Integer num) {
        this.categoryId = num;
    }

    public void setCategoryProperty(String str) {
        this.categoryProperty = str;
    }

    public void setCoverUrl(String str) {
        this.coverUrl = str;
    }

    public void setEpgUrl(String str) {
        this.epgUrl = str;
    }

    public void setExtra(String str) {
        this.extra = str;
    }

    public void setId(Integer num) {
        this.f35850id = num;
    }

    public void setIsAdult(int i10) {
        this.isAdult = i10;
    }

    public void setIsIptv(int i10) {
        this.isIptv = i10;
    }

    public void setIsPremium(int i10) {
        this.isPremium = i10;
    }

    public void setLogo(String str) {
        this.logo = str;
    }

    public void setName(String str) {
        this.name = str;
    }

    public void setPlayUrlList(List<PlayUrlListEntity> list) {
        this.playUrlList = list;
    }

    public void setProtocol(int i10) {
        this.protocol = i10;
    }

    public void setTurboUrl(String str) {
        this.turboUrl = str;
    }

    @Override // android.os.Parcelable
    public void writeToParcel(@NonNull Parcel parcel, int i10) {
        if (this.f35850id == null) {
            parcel.writeByte((byte) 0);
        } else {
            parcel.writeByte((byte) 1);
            parcel.writeInt(this.f35850id.intValue());
        }
        if (this.categoryId == null) {
            parcel.writeByte((byte) 0);
        } else {
            parcel.writeByte((byte) 1);
            parcel.writeInt(this.categoryId.intValue());
        }
        parcel.writeString(this.name);
        parcel.writeString(this.logo);
        parcel.writeString(this.categoryProperty);
        parcel.writeString(this.turboUrl);
        parcel.writeString(this.coverUrl);
        parcel.writeString(this.backupTurboUrl);
        parcel.writeString(this.epgUrl);
        parcel.writeString(this.extra);
        parcel.writeInt(this.protocol);
        parcel.writeInt(this.isPremium);
        parcel.writeInt(this.isIptv);
        parcel.writeInt(this.isAdult);
        parcel.writeTypedList(this.playUrlList);
    }

    public LiveChannelEntity(Parcel parcel) {
        if (parcel.readByte() == 0) {
            this.f35850id = null;
        } else {
            this.f35850id = Integer.valueOf(parcel.readInt());
        }
        if (parcel.readByte() == 0) {
            this.categoryId = null;
        } else {
            this.categoryId = Integer.valueOf(parcel.readInt());
        }
        this.name = parcel.readString();
        this.logo = parcel.readString();
        this.categoryProperty = parcel.readString();
        this.turboUrl = parcel.readString();
        this.coverUrl = parcel.readString();
        this.backupTurboUrl = parcel.readString();
        this.epgUrl = parcel.readString();
        this.extra = parcel.readString();
        this.protocol = parcel.readInt();
        this.isPremium = parcel.readInt();
        this.isIptv = parcel.readInt();
        this.isAdult = parcel.readInt();
        this.playUrlList = parcel.createTypedArrayList(PlayUrlListEntity.CREATOR);
    }
}
