This commit is contained in:
Chris Kruining 2026-02-05 09:41:07 +01:00
parent 86aa0f856c
commit 0801ceee6a
No known key found for this signature in database
GPG key ID: EB894A3560CCCAD2
310 changed files with 6712 additions and 418 deletions

View file

@ -0,0 +1,32 @@
namespace Scry.Core.Models;
public record Card
{
public required string Id { get; init; }
public required string Name { get; init; }
public string? SetCode { get; init; }
public string? SetName { get; init; }
public string? CollectorNumber { get; init; }
public string? ScryfallId { get; init; }
public string? Rarity { get; init; }
public string? ManaCost { get; init; }
public string? TypeLine { get; init; }
public string? OracleText { get; init; }
public string? ImageUri { get; init; }
public string? ImageUriSmall { get; init; }
public string? ImageUriLarge { get; init; }
public string? Artist { get; init; }
public string? Lang { get; init; }
public decimal? PriceUsd { get; init; }
public decimal? PriceUsdFoil { get; init; }
/// <summary>
/// Alias for ImageUri for compatibility with App layer
/// </summary>
public string? ImageUrl => ImageUri;
/// <summary>
/// Alias for PriceUsd for compatibility with App layer
/// </summary>
public decimal? Price => PriceUsd;
}