Legal documents and FAQ
Handles Content related requests with IMS web services.
Fetch Legal Documents
keys = { Key.ContactUs
Key.privacyPolicyPageTitle,
Key.privacyPolicyPageContent
Key.termsAndConditionPageTitle,
Key.termsAndConditionPageContent,
Key.termsAndConditionInsurancePartnerName,
Key.termsAndConditionInsurancePartnerEmailAddress,
}Concrete example
let service = ContentService()
service.fetch(withKey: withKey, then: { result in
guard !result.value.isEmpty else {
// failure
return
}
completionHandler(.success(result.value))
})val contentService = ContentService()
contentService.fetch(Key.TermsAndConditionPageContent) { result: Result<Content?>? ->
if (result?.value == null || result.throwable != null) {
// failure
} else {
// Success
val content = result.value
}
})Last updated