@Override
  public List<DigitalAsset> getMoreDataAsync(FermatRefreshTypes refreshType, int pos) {
    List<DigitalAsset> digitalAssets = new ArrayList<>();
    if (moduleManager != null) {
      try {
        digitalAssets = Data.getAllDigitalAssets(moduleManager);

      } catch (Exception ex) {
        CommonLogger.exception(TAG, ex.getMessage(), ex);
        if (errorManager != null)
          errorManager.reportUnexpectedWalletException(
              Wallets.DAP_ASSET_ISSUER_WALLET,
              UnexpectedWalletExceptionSeverity.DISABLES_SOME_FUNCTIONALITY_WITHIN_THIS_FRAGMENT,
              ex);
      }
    } else {
      Toast.makeText(getActivity(), R.string.dap_issuer_wallet_system_error, Toast.LENGTH_SHORT)
          .show();
    }
    return digitalAssets;
  }
예제 #2
0
  @Override
  public List<UserDelivery> getMoreDataAsync(FermatRefreshTypes refreshType, int pos) {
    List<UserDelivery> users = new ArrayList<>();
    if (moduleManager != null) {
      try {
        if (digitalAsset == null) digitalAsset = (DigitalAsset) appSession.getData("asset_data");
        users =
            Data.getUserDeliveryList(
                WalletUtilities.WALLET_PUBLIC_KEY, digitalAsset, moduleManager);

      } catch (Exception ex) {
        CommonLogger.exception(TAG, ex.getMessage(), ex);
        if (errorManager != null)
          errorManager.reportUnexpectedWalletException(
              Wallets.DAP_ASSET_ISSUER_WALLET,
              UnexpectedWalletExceptionSeverity.DISABLES_SOME_FUNCTIONALITY_WITHIN_THIS_FRAGMENT,
              ex);
      }
    } else {
      Toast.makeText(getActivity(), R.string.dap_issuer_wallet_system_error, Toast.LENGTH_SHORT)
          .show();
    }
    return users;
  }