SWDiscoverViewModel
class SWDiscoverViewModel : NSObject
Undocumented
-
Undocumented
Declaration
Swift
var responseData: DiscoveryApiResponseModel!
-
Undocumented
Declaration
Swift
var tabData: SWDiscoverTabModel!
-
fetches the discover page data from the server and creates the model
Declaration
Swift
func fetchDiscoverPageDataFor(type: String , completionHandler: @escaping (_ sucess : Bool) -> Void)
-
fetches the data for the sections specified for the tab type; which we get form the config data api
Declaration
Swift
func fetchSectionDataFor(tabType: DiscoverTabType, sectionTypes: [String], completionHandler: @escaping () -> Void)
Parameters
tabType
<#tabType description#>
sectionTypes
<#sectionTypes description#>
-
Undocumented
Declaration
Swift
func fetchPaginatedDataFor(component: SWDiscoveryComponent, completionHandler: @escaping () -> Void)