Implement thread list

This commit is contained in:
ismailgulek
2021-11-18 17:49:01 +03:00
parent 20ed38ce0f
commit 1593d07dec
12 changed files with 388 additions and 126 deletions
@@ -23,7 +23,7 @@ protocol ThreadListViewModelViewDelegate: AnyObject {
}
protocol ThreadListViewModelCoordinatorDelegate: AnyObject {
func threadListViewModel(_ viewModel: ThreadListViewModelProtocol, didCompleteWithUserDisplayName userDisplayName: String?)
func threadListViewModelDidLoadThreads(_ viewModel: ThreadListViewModelProtocol)
func threadListViewModelDidCancel(_ viewModel: ThreadListViewModelProtocol)
}
@@ -36,4 +36,7 @@ protocol ThreadListViewModelProtocol {
func process(viewAction: ThreadListViewAction)
var viewState: ThreadListViewState { get }
var numberOfThreads: Int { get }
func threadViewModel(at index: Int) -> ThreadViewModel?
}