Last active
January 26, 2021 15:19
-
-
Save Rashidium/58549256563ab4d16c259f7b89d24359 to your computer and use it in GitHub Desktop.
FeedModels
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 { | |
| } | |
| struct Response { | |
| let movies: [MovieResponse.Movie]? | |
| } | |
| struct ViewModel { | |
| let movies: [Movie] | |
| struct Movie { | |
| let header: String | |
| let info: String | |
| let imageURL: URL? | |
| } | |
| } | |
| } | |
| } | |
| // swiftlint:enable nesting |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment