Created
October 25, 2017 11:17
-
-
Save azamsharp/55440f7d951b19688cf25730cfffbe07 to your computer and use it in GitHub Desktop.
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
class ArticleListViewModel { | |
private(set) var webservice :Webservice! | |
var title :String? = "Articles" | |
var articles :[ArticleViewModel] = [ArticleViewModel]() | |
init(articles :[ArticleViewModel]) { | |
self.articles = articles | |
} | |
init(service :Webservice) { | |
self.webservice = service | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment