.
This commit is contained in:
parent
86aa0f856c
commit
0801ceee6a
310 changed files with 6712 additions and 418 deletions
32
src/Scry.Core/Models/Card.cs
Normal file
32
src/Scry.Core/Models/Card.cs
Normal 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;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue