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

import com.sistemasolton.itranvias.home.data.local.dao.StopFavoriteDao;
import com.sistemasolton.itranvias.home.data.local.entity.StopFavoriteEntity;
import com.sistemasolton.itranvias.home.domain.repository.StopFavoriteRepository;
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: StopFavoriteRepositoryImpl.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\u0007\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 \u0010\u000e\u001a\u00020\u000b2\u0006\u0010\u000f\u001a\u00020\u00102\b\u0010\u0011\u001a\u0004\u0018\u00010\u0010H\u0096@¢\u0006\u0002\u0010\u0012J\u0016\u0010\u0013\u001a\u00020\u000b2\u0006\u0010\u000f\u001a\u00020\u0010H\u0096@¢\u0006\u0002\u0010\u0014J\u000e\u0010\u0015\u001a\u00020\u000bH\u0096@¢\u0006\u0002\u0010\u0016R\u000e\u0010\u0002\u001a\u00020\u0003X\u0082\u0004¢\u0006\u0002\n\u0000¨\u0006\u0017"}, d2 = {"Lcom/sistemasolton/itranvias/home/data/repository/StopFavoriteRepositoryImpl;", "Lcom/sistemasolton/itranvias/home/domain/repository/StopFavoriteRepository;", "dao", "Lcom/sistemasolton/itranvias/home/data/local/dao/StopFavoriteDao;", "<init>", "(Lcom/sistemasolton/itranvias/home/data/local/dao/StopFavoriteDao;)V", "getAllStopsFavorite", "Lkotlinx/coroutines/flow/Flow;", "", "Lcom/sistemasolton/itranvias/home/data/local/entity/StopFavoriteEntity;", "addStopFavorite", "", "stop", "(Lcom/sistemasolton/itranvias/home/data/local/entity/StopFavoriteEntity;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;", "updateStopAlias", "stopCode", "", "alias", "(Ljava/lang/String;Ljava/lang/String;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;", "deleteFavoriteStopByCode", "(Ljava/lang/String;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;", "deleteAllStopsFavorite", "(Lkotlin/coroutines/Continuation;)Ljava/lang/Object;", "composeApp_release"}, k = 1, mv = {2, 1, 0}, xi = 48)
public final class StopFavoriteRepositoryImpl implements StopFavoriteRepository {
    public static final int $stable = 8;
    private final StopFavoriteDao dao;

    public StopFavoriteRepositoryImpl(StopFavoriteDao dao) {
        Intrinsics.checkNotNullParameter(dao, "dao");
        this.dao = dao;
    }

    @Override // com.sistemasolton.itranvias.home.domain.repository.StopFavoriteRepository
    public Flow<List<StopFavoriteEntity>> getAllStopsFavorite() {
        return this.dao.getAllStopsFavorite();
    }

    @Override // com.sistemasolton.itranvias.home.domain.repository.StopFavoriteRepository
    public Object addStopFavorite(StopFavoriteEntity stopFavoriteEntity, Continuation<? super Unit> continuation) {
        Object objAddStopFavorite = this.dao.addStopFavorite(stopFavoriteEntity, continuation);
        return objAddStopFavorite == IntrinsicsKt.getCOROUTINE_SUSPENDED() ? objAddStopFavorite : Unit.INSTANCE;
    }

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

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

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