コード例 #1
0
 @Override
 public String toString() {
   return "Export all transactions created since "
       + TimestampHelper.getUtcStringFromTimestamp(mExportStartTime)
       + " UTC"
       + " as "
       + mExportFormat.name()
       + " to "
       + mExportTarget.name();
 }
コード例 #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);
  }