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:
@@ -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
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user