package vf;

import xyz.stream.api.database.entity.LiveFavorite;
import xyz.stream.api.database.entity.LiveHistory;

/* JADX INFO: loaded from: classes3.dex */
public final class p extends androidx.room.h {

    /* JADX INFO: renamed from: a, reason: collision with root package name */
    public final /* synthetic */ int f33986a;

    @Override // androidx.room.h
    public final void bind(k3.c cVar, Object obj) {
        switch (this.f33986a) {
            case 0:
                LiveHistory liveHistory = (LiveHistory) obj;
                if (liveHistory.getId() == null) {
                    cVar.d(1);
                } else {
                    cVar.a(1, liveHistory.getId().intValue());
                }
                if (liveHistory.getChannelId() == null) {
                    cVar.d(2);
                } else {
                    cVar.a(2, liveHistory.getChannelId().intValue());
                }
                if (liveHistory.getTvgName() == null) {
                    cVar.d(3);
                } else {
                    cVar.s(3, liveHistory.getTvgName());
                }
                if (liveHistory.getTvgLogo() == null) {
                    cVar.d(4);
                } else {
                    cVar.s(4, liveHistory.getTvgLogo());
                }
                if (liveHistory.getGroupId() == null) {
                    cVar.d(5);
                } else {
                    cVar.a(5, liveHistory.getGroupId().intValue());
                }
                if (liveHistory.getGroupTitle() == null) {
                    cVar.d(6);
                } else {
                    cVar.s(6, liveHistory.getGroupTitle());
                }
                if (liveHistory.getExtra() == null) {
                    cVar.d(7);
                } else {
                    cVar.s(7, liveHistory.getExtra());
                }
                if (liveHistory.getRegion() == null) {
                    cVar.d(8);
                } else {
                    cVar.s(8, liveHistory.getRegion());
                }
                if (liveHistory.getUrl() == null) {
                    cVar.d(9);
                } else {
                    cVar.s(9, liveHistory.getUrl());
                }
                if (liveHistory.getUpdatedAt() == null) {
                    cVar.d(10);
                } else {
                    cVar.a(10, liveHistory.getUpdatedAt().intValue());
                }
                if (liveHistory.getRoleId() == null) {
                    cVar.d(11);
                } else {
                    cVar.s(11, liveHistory.getRoleId());
                }
                if (liveHistory.getUpdateDate() == null) {
                    cVar.d(12);
                } else {
                    cVar.s(12, liveHistory.getUpdateDate());
                }
                if (liveHistory.getIsPremium() == null) {
                    cVar.d(13);
                } else {
                    cVar.a(13, liveHistory.getIsPremium().intValue());
                }
                if (liveHistory.getProtocol() == null) {
                    cVar.d(14);
                } else {
                    cVar.a(14, liveHistory.getProtocol().intValue());
                }
                if (liveHistory.getIsIptv() == null) {
                    cVar.d(15);
                } else {
                    cVar.a(15, liveHistory.getIsIptv().intValue());
                }
                if (liveHistory.getContentRating() == null) {
                    cVar.d(16);
                } else {
                    cVar.s(16, liveHistory.getContentRating());
                }
                if (liveHistory.getBackupTurboUrl() == null) {
                    cVar.d(17);
                } else {
                    cVar.s(17, liveHistory.getBackupTurboUrl());
                }
                if (liveHistory.getEpgUrl() == null) {
                    cVar.d(18);
                } else {
                    cVar.s(18, liveHistory.getEpgUrl());
                }
                if (liveHistory.getCategoryProperty() != null) {
                    cVar.s(19, liveHistory.getCategoryProperty());
                } else {
                    cVar.d(19);
                }
                break;
            default:
                LiveFavorite liveFavorite = (LiveFavorite) obj;
                if (liveFavorite.getId() == null) {
                    cVar.d(1);
                } else {
                    cVar.a(1, liveFavorite.getId().intValue());
                }
                if (liveFavorite.getChannelId() == null) {
                    cVar.d(2);
                } else {
                    cVar.a(2, liveFavorite.getChannelId().intValue());
                }
                if (liveFavorite.getTvgName() == null) {
                    cVar.d(3);
                } else {
                    cVar.s(3, liveFavorite.getTvgName());
                }
                if (liveFavorite.getTvgLogo() == null) {
                    cVar.d(4);
                } else {
                    cVar.s(4, liveFavorite.getTvgLogo());
                }
                if (liveFavorite.getGroupId() == null) {
                    cVar.d(5);
                } else {
                    cVar.a(5, liveFavorite.getGroupId().intValue());
                }
                if (liveFavorite.getGroupTitle() == null) {
                    cVar.d(6);
                } else {
                    cVar.s(6, liveFavorite.getGroupTitle());
                }
                if (liveFavorite.getExtra() == null) {
                    cVar.d(7);
                } else {
                    cVar.s(7, liveFavorite.getExtra());
                }
                if (liveFavorite.getRegion() == null) {
                    cVar.d(8);
                } else {
                    cVar.s(8, liveFavorite.getRegion());
                }
                if (liveFavorite.getUrl() == null) {
                    cVar.d(9);
                } else {
                    cVar.s(9, liveFavorite.getUrl());
                }
                if (liveFavorite.getUpdatedAt() == null) {
                    cVar.d(10);
                } else {
                    cVar.a(10, liveFavorite.getUpdatedAt().intValue());
                }
                if (liveFavorite.getRoleId() == null) {
                    cVar.d(11);
                } else {
                    cVar.s(11, liveFavorite.getRoleId());
                }
                if (liveFavorite.getUpdateDate() == null) {
                    cVar.d(12);
                } else {
                    cVar.s(12, liveFavorite.getUpdateDate());
                }
                if (liveFavorite.getIsPremium() == null) {
                    cVar.d(13);
                } else {
                    cVar.a(13, liveFavorite.getIsPremium().intValue());
                }
                if (liveFavorite.getIsIptv() == null) {
                    cVar.d(14);
                } else {
                    cVar.a(14, liveFavorite.getIsIptv().intValue());
                }
                if (liveFavorite.getProtocol() == null) {
                    cVar.d(15);
                } else {
                    cVar.a(15, liveFavorite.getProtocol().intValue());
                }
                if (liveFavorite.getContentRating() == null) {
                    cVar.d(16);
                } else {
                    cVar.s(16, liveFavorite.getContentRating());
                }
                if (liveFavorite.getBackupTurboUrl() == null) {
                    cVar.d(17);
                } else {
                    cVar.s(17, liveFavorite.getBackupTurboUrl());
                }
                if (liveFavorite.getEpgUrl() == null) {
                    cVar.d(18);
                } else {
                    cVar.s(18, liveFavorite.getEpgUrl());
                }
                if (liveFavorite.getCategoryProperty() != null) {
                    cVar.s(19, liveFavorite.getCategoryProperty());
                } else {
                    cVar.d(19);
                }
                break;
        }
    }

    @Override // androidx.room.h
    public final String createQuery() {
        switch (this.f33986a) {
            case 0:
                return "INSERT OR ABORT INTO `live_history` (`id`,`channel_id`,`tvg_name`,`tvg_logo`,`group_id`,`group_title`,`extra`,`region`,`url`,`updated_at`,`role_id`,`update_date`,`is_premium`,`protocol`,`is_iptv`,`content_rating`,`backup_turbo_url`,`epg_url`,`category_property`) VALUES (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?)";
            default:
                return "INSERT OR ABORT INTO `live_favorite` (`id`,`channel_id`,`tvg_name`,`tvg_logo`,`group_id`,`group_title`,`extra`,`region`,`url`,`updated_at`,`role_id`,`update_date`,`is_premium`,`is_iptv`,`protocol`,`content_rating`,`backup_turbo_url`,`epg_url`,`category_property`) VALUES (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?)";
        }
    }
}
