Created
February 16, 2020 15:47
-
-
Save yzhong52/e6e461539d3fef4ef4821f3f98e8b47c to your computer and use it in GitHub Desktop.
Building a Client App From Scratch
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
import Foundation | |
class Article: Decodable { | |
let title: String | |
let description: String? | |
let url: URL | |
let urlToImage: String? | |
let content: String? | |
} | |
class ArticlesResponse: Decodable { | |
let totalResults: Int | |
let articles: [Article] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment