refactor: extract Models and Data into MoneyMap.Core shared library

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-04-20 18:16:33 -04:00
parent d831991ad0
commit 3deca29f05
23 changed files with 59 additions and 7 deletions
@@ -0,0 +1,28 @@
namespace MoneyMap.Models.Import
{
/// <summary>
/// Context for transaction import operations, containing payment selection mode and available options.
/// </summary>
public class ImportContext
{
public required PaymentSelectMode PaymentMode { get; init; }
public int? SelectedCardId { get; init; }
public int? SelectedAccountId { get; init; }
public required List<Card> AvailableCards { get; init; }
public required List<Account> AvailableAccounts { get; init; }
public required string FileName { get; init; }
}
/// <summary>
/// Specifies how to determine the payment method for imported transactions.
/// </summary>
public enum PaymentSelectMode
{
/// <summary>Auto-detect from memo or filename.</summary>
Auto,
/// <summary>Use a specific card for all transactions.</summary>
Card,
/// <summary>Use a specific account for all transactions.</summary>
Account
}
}