-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
16 additions
and
50 deletions.
There are no files selected for viewing
8 changes: 3 additions & 5 deletions
8
Sources/Persistence/Interfaces/DataSources/ShowsVisitedLocalDataSource.swift
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,15 @@ | ||
// | ||
// ShowsVisitedLocalDataSource.swift | ||
// | ||
// | ||
// Created by Jeans Ruiz on 11/05/22. | ||
// | ||
|
||
import Combine | ||
import Shared | ||
|
||
public protocol ShowsVisitedLocalDataSource { | ||
func saveShow(id: Int, pathImage: String, userId: Int) -> AnyPublisher<Void, ErrorEnvelope> | ||
func saveShow(id: Int, pathImage: String, userId: Int) | ||
|
||
func fetchVisitedShows(userId: Int) -> AnyPublisher<[ShowVisitedDLO], ErrorEnvelope> | ||
func fetchVisitedShows(userId: Int) -> [ShowVisitedDLO] | ||
|
||
// Use AsyncStream instead | ||
func recentVisitedShowsDidChange() -> AnyPublisher<Bool, Never> | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 2 additions & 8 deletions
10
Sources/Persistence/Interfaces/Repositories/ShowsVisitedLocalRepositoryProtocol.swift
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,12 @@ | ||
// | ||
// ShowsVisitedLocalRepositoryProtocol.swift | ||
// Persistence | ||
// | ||
// Created by Jeans Ruiz on 7/2/20. | ||
// Copyright © 2020 Jeans. All rights reserved. | ||
// | ||
|
||
import Combine | ||
import Shared | ||
|
||
public protocol ShowsVisitedLocalRepositoryProtocol { | ||
func saveShow(id: Int, pathImage: String) -> AnyPublisher<Void, ErrorEnvelope> | ||
|
||
func fetchVisitedShows() -> AnyPublisher<[ShowVisited], ErrorEnvelope> | ||
|
||
func saveShow(id: Int, pathImage: String) | ||
func fetchVisitedShows() -> [ShowVisited] | ||
func recentVisitedShowsDidChange() -> AnyPublisher<Bool, Never> | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters