Exemplo n.º 1
0
 @Override
 public String toString() {
   return "Export all transactions created since "
       + TimestampHelper.getUtcStringFromTimestamp(mExportStartTime)
       + " UTC"
       + " as "
       + mExportFormat.name()
       + " to "
       + mExportTarget.name();
 }
Exemplo n.º 2
0
  /**
   * Returns the export parameters formatted as CSV.
   *
   * <p>The CSV format is:
   * exportformat;exportTarget;shouldExportAllTransactions;shouldDeleteAllTransactions
   *
   * @return String containing CSV format of ExportParams
   */
  public String toCsv() {
    String separator = ";";

    return mExportFormat.name()
        + separator
        + mExportTarget.name()
        + separator
        + TimestampHelper.getUtcStringFromTimestamp(mExportStartTime)
        + separator
        + Boolean.toString(mDeleteTransactionsAfterExport);
  }