NavigationDataManager
public protocol NavigationDataManager: DataManager
Navigation data manager protocol.
-
categories(completion:)Default implementationGets all categories available
Parameter
Parameter completion: Completion block that is called upon receiving the response with either a list of sub-categories or an empty list and error.Default Implementation
Declaration
Swift
func categories(completion: @escaping (_ items: [CategoryType], _ error: Swift.Error?) -> Void)Parameters
completionCompletion block that is called upon receiving the response with either a list of sub-categories or an empty list and error.
-
Associated category type
Declaration
Swift
associatedtype CategoryType: Category -
categories(parentCategory:completion:)Default implementationGets all categories that are sub-categories of
parentCategory- Parameters:
- parentCategory: The ID of the parent category whose sub-categories are to be fetched.
- completion: Completion block that is called upon receiving the response with either a list of sub-categories or an empty list and error.
Default Implementation
Declaration
Swift
func categories(parentCategory: String,Parameters
parentCategoryThe ID of the parent category whose sub-categories are to be fetched.
completionCompletion block that is called upon receiving the response with either a list of sub-categories or an empty list and error.
- Parameters:
-
getRequest(forCategory:)Extension methodUndocumented
Declaration
Swift
public protocol NavigationDataManager: DataManager
NavigationDataManager Protocol Reference