AddressRepository

class AddressRepository @Inject constructor(val resources: Resources, workContext: CoroutineContext) : AddressSchemaRepository

Repository to save country and their corresponding List.

Note: this repository is mutable and stateful. The address information saved within the Element list will carry over to other screens.

Constructors

Link copied to clipboard
@Inject
constructor(resources: Resources, workContext: CoroutineContext)

Properties

Link copied to clipboard

Functions

Link copied to clipboard
suspend fun add(countryCode: String, listElements: List<SectionFieldElement>)
Link copied to clipboard
suspend fun get(countryCode: String?): List<SectionFieldElement>?
Link copied to clipboard

Get the schemas related to a country's address.