package com.sistemasolton.itranvias.home.data.repository;

import com.sistemasolton.itranvias.home.data.local.dao.LineFavoriteDao;
import com.sistemasolton.itranvias.home.data.local.entity.LineFavoriteEntity;
import com.sistemasolton.itranvias.home.domain.repository.LineFavoriteRepository;
import java.util.List;
import kotlin.Metadata;
import kotlin.Unit;
import kotlin.coroutines.Continuation;
import kotlin.coroutines.intrinsics.IntrinsicsKt;
import kotlin.jvm.internal.Intrinsics;
import kotlinx.coroutines.flow.Flow;

/* JADX INFO: compiled from: LineFavoriteRepositoryImpl.kt */
/* JADX INFO: loaded from: classes2.dex */
@Metadata(d1 = {"\u00000\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0018\u0002\n\u0002\u0010 \n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u0002\n\u0002\b\u0004\n\u0002\u0010\u000e\n\u0002\b\u0004\b\u0007\u0018\u00002\u00020\u0001B\u000f\u0012\u0006\u0010\u0002\u001a\u00020\u0003¢\u0006\u0004\b\u0004\u0010\u0005J\u0014\u0010\u0006\u001a\u000e\u0012\n\u0012\b\u0012\u0004\u0012\u00020\t0\b0\u0007H\u0016J\u0016\u0010\n\u001a\u00020\u000b2\u0006\u0010\f\u001a\u00020\tH\u0096@¢\u0006\u0002\u0010\rJ\u0016\u0010\u000e\u001a\u00020\u000b2\u0006\u0010\u000f\u001a\u00020\u0010H\u0096@¢\u0006\u0002\u0010\u0011J\u000e\u0010\u0012\u001a\u00020\u000bH\u0096@¢\u0006\u0002\u0010\u0013R\u000e\u0010\u0002\u001a\u00020\u0003X\u0082\u0004¢\u0006\u0002\n\u0000¨\u0006\u0014"}, d2 = {"Lcom/sistemasolton/itranvias/home/data/repository/LineFavoriteRepositoryImpl;", "Lcom/sistemasolton/itranvias/home/domain/repository/LineFavoriteRepository;", "dao", "Lcom/sistemasolton/itranvias/home/data/local/dao/LineFavoriteDao;", "<init>", "(Lcom/sistemasolton/itranvias/home/data/local/dao/LineFavoriteDao;)V", "getAllLinesFavorite", "Lkotlinx/coroutines/flow/Flow;", "", "Lcom/sistemasolton/itranvias/home/data/local/entity/LineFavoriteEntity;", "addLineFavorite", "", "line", "(Lcom/sistemasolton/itranvias/home/data/local/entity/LineFavoriteEntity;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;", "deleteFavoriteLineByCode", "lineCode", "", "(Ljava/lang/String;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;", "deleteAllFavorites", "(Lkotlin/coroutines/Continuation;)Ljava/lang/Object;", "composeApp_release"}, k = 1, mv = {2, 1, 0}, xi = 48)
public final class LineFavoriteRepositoryImpl implements LineFavoriteRepository {
    public static final int $stable = 8;
    private final LineFavoriteDao dao;

    public LineFavoriteRepositoryImpl(LineFavoriteDao dao) {
        Intrinsics.checkNotNullParameter(dao, "dao");
        this.dao = dao;
    }

    @Override // com.sistemasolton.itranvias.home.domain.repository.LineFavoriteRepository
    public Flow<List<LineFavoriteEntity>> getAllLinesFavorite() {
        return this.dao.getAllLinesFavorite();
    }

    @Override // com.sistemasolton.itranvias.home.domain.repository.LineFavoriteRepository
    public Object addLineFavorite(LineFavoriteEntity lineFavoriteEntity, Continuation<? super Unit> continuation) {
        Object objAddLineFavorite = this.dao.addLineFavorite(lineFavoriteEntity, continuation);
        return objAddLineFavorite == IntrinsicsKt.getCOROUTINE_SUSPENDED() ? objAddLineFavorite : Unit.INSTANCE;
    }

    @Override // com.sistemasolton.itranvias.home.domain.repository.LineFavoriteRepository
    public Object deleteFavoriteLineByCode(String str, Continuation<? super Unit> continuation) {
        Object objDeleteFavoriteLineByCode = this.dao.deleteFavoriteLineByCode(str, continuation);
        return objDeleteFavoriteLineByCode == IntrinsicsKt.getCOROUTINE_SUSPENDED() ? objDeleteFavoriteLineByCode : Unit.INSTANCE;
    }

    @Override // com.sistemasolton.itranvias.home.domain.repository.LineFavoriteRepository
    public Object deleteAllFavorites(Continuation<? super Unit> continuation) {
        Object objDeleteAllFavorites = this.dao.deleteAllFavorites(continuation);
        return objDeleteAllFavorites == IntrinsicsKt.getCOROUTINE_SUSPENDED() ? objDeleteAllFavorites : Unit.INSTANCE;
    }
}