Add my threads filtering

This commit is contained in:
ismailgulek
2021-11-19 03:36:51 +03:00
parent 1e94e9f1b7
commit c76537e7d1
7 changed files with 89 additions and 8 deletions
@@ -37,6 +37,21 @@ protocol ThreadListViewModelProtocol {
var viewState: ThreadListViewState { get }
var selectedFilterType: ThreadListFilterType { get }
var numberOfThreads: Int { get }
func threadViewModel(at index: Int) -> ThreadViewModel?
}
enum ThreadListFilterType {
case all
case myThreads
var title: String {
switch self {
case .all:
return VectorL10n.threadsActionAllThreads
case .myThreads:
return VectorL10n.threadsActionMyThreads
}
}
}