public class UserReceiptRepositoryImpl extends java.lang.Object implements UserReceiptRepository
UserReceiptRepository implementation| Constructor 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()
UserReceiptRepositoryloadUserReceipts in interface UserReceiptRepositoryUserReceiptRepository.loadUserReceipts()public <any> isLoading()
UserReceiptRepositoryisLoading in interface UserReceiptRepositorytrue if load receipt is in loading state; false otherwiseUserReceiptRepository.isLoading()public <any> getErrors()
UserReceiptRepositorygetErrors in interface UserReceiptRepositoryUserReceiptRepository.getErrors()public void retryLoadReceipt()
UserReceiptRepositoryretryLoadReceipt in interface UserReceiptRepositoryUserReceiptRepository.retryLoadReceipt()public void refresh()
UserReceiptRepositoryrefresh in interface UserReceiptRepositorypublic void cleanup()
UserReceiptRepositorycleanup in interface UserReceiptRepository