This file contains hidden or 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
| public struct CustomerLink: AppLinkable { | |
| public var customerNo: Int64! | |
| init() { | |
| } | |
| init(customerNo: Int64) { | |
| self.customerNo = customerNo |
This file contains hidden or 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
| /// Manager for deeplinks. | |
| public final class DeeplinkManager { | |
| /// Application supported deeplinks. | |
| private var links: [AppLinkable] | |
| /// Initializes manager with supported links. | |
| public init(supportedLinks links: [AppLinkable]) { | |
| self.links = links | |
| } | |
| } |
This file contains hidden or 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
| /// AppLinkable's for deeplink navigation. | |
| public protocol AppLinkable {} |
This file contains hidden or 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
| public struct NotificationsLink { | |
| public func getLinkable(_ url: URL) -> Self? { | |
| guard url.path.hasPrefix("notifications/") else { return nil } | |
| return self | |
| } | |
| } |
This file contains hidden or 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
| import Foundation | |
| protocol FeedRoutingLogic: class { | |
| func routeToMovieDetail() | |
| } | |
| protocol FeedDataPassing: class { | |
| var dataStore: FeedDataStore? { get } | |
| } |
This file contains hidden or 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
| import Foundation | |
| import API | |
| // swiftlint:disable nesting | |
| enum Feed { | |
| enum FetchMovies { | |
| struct Request { |
This file contains hidden or 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
| import Foundation | |
| protocol FeedRoutingLogic: class { | |
| } | |
| protocol FeedDataPassing: class { | |
| var dataStore: FeedDataStore? { get } | |
| } |
This file contains hidden or 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
| import Foundation | |
| protocol FeedWorkingLogic: AnyObject { | |
| } | |
| final class FeedWorker: FeedWorkingLogic { | |
| } |
This file contains hidden or 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
| import Foundation | |
| protocol FeedPresentationLogic: AnyObject { | |
| } | |
| final class FeedPresenter: FeedPresentationLogic { | |
| weak var viewController: FeedDisplayLogic? | |
This file contains hidden or 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
| import Foundation | |
| protocol FeedBusinessLogic: AnyObject { | |
| } | |
| protocol FeedDataStore: AnyObject { | |
| } |