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 PanpaDecodable: Decodable & Keyable { } | |
| protocol Keyable { | |
| static var codingKey: String { 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
| public class User: PanpaDecodable { | |
| var username: String? | |
| var name: String? | |
| var surname: String? | |
| var email: String? | |
| var uid: String? | |
| enum CodingKeys: String, CodingKey { | |
| case username, name, surname, email, uid |
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 | |
| public class Coupon: PanpaDecodable { | |
| var id: String = "" | |
| var name: String = "" | |
| var no: String = "" | |
| var isOpen: Bool = false | |
| var matches: [PMatches] = [] | |
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 UIKit | |
| protocol FeedDisplayLogic: AnyObject { | |
| } | |
| final class FeedViewController: UIViewController { | |
| var interactor: FeedBusinessLogic? | |
| var router: (FeedRoutingLogic & FeedDataPassing)? |
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 { | |
| } |
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 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 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 | |
| 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 { | |
| func routeToMovieDetail() | |
| } | |
| protocol FeedDataPassing: class { | |
| var dataStore: FeedDataStore? { get } | |
| } |