public class UserReceiptRepositoryImpl extends java.lang.Object implements UserReceiptRepository
UserReceiptRepository
implementationConstructor and Description |
---|
UserReceiptRepositoryImpl() |
Modifier and Type | Method and Description |
---|---|
void |
cleanup()
Cleanup resources when not needed anymore
|
<any> |
getErrors()
Error information, consumer can subscribe of errors occur during data retrieval
|
<any> |
isLoading()
Loading indicator consumer can subscribe to loading of data events
|
<any> |
loadUserReceipts()
Load user receipts information, consumer can subscribe to receipts data changes events
|
void |
refresh()
Refresh and reinitialized receipts
|
void |
retryLoadReceipt()
Reload receipt information, usually invoked when error is raised after the first load and consumer opts to retry
the last operation
|
public <any> loadUserReceipts()
UserReceiptRepository
loadUserReceipts
in interface UserReceiptRepository
UserReceiptRepository.loadUserReceipts()
public <any> isLoading()
UserReceiptRepository
isLoading
in interface UserReceiptRepository
true
if load receipt is in loading state; false
otherwiseUserReceiptRepository.isLoading()
public <any> getErrors()
UserReceiptRepository
getErrors
in interface UserReceiptRepository
UserReceiptRepository.getErrors()
public void retryLoadReceipt()
UserReceiptRepository
retryLoadReceipt
in interface UserReceiptRepository
UserReceiptRepository.retryLoadReceipt()
public void refresh()
UserReceiptRepository
refresh
in interface UserReceiptRepository
public void cleanup()
UserReceiptRepository
cleanup
in interface UserReceiptRepository