DataSources

  • Fetches RootSection that holds a sequence of DataSources for lists of Category and Viewable data sources.

            let rootDS = RootDataSource(withConfiguration: self.yaddoConfig, forPath: "root-vod")
            rootDS.state.bind { state in
                switch state {
                ///No request is currently active
                case .idle: break
                ///Request is active
                case .loading: break
                ///Request succeeded with response
                case let .success(sections): print(sections)
                ///Request failed
                case .error: break
                }
    
            }
            rootDS.startRequest()
    

    The list of ´RootSection` has datasources that follows the same pattern. You would want to join all of them together.

    See more

    Declaration

    Swift

    public final class RootDataSource: iRootDataSource