Class CardBrief
- Namespace
- TcgDex.Models
- Assembly
- TcgDex.CSharpSdk.dll
The reduced card shape returned by list endpoints and by a set's card list.
public sealed record CardBrief : IEquatable<CardBrief>Inheritance
Implements
Inherited Members
Extension Methods
Remarks
List responses carry only these four fields. TcgDex.Models.Card.Category, TcgDex.Models.Card.Rarity and TcgDex.Models.Card.TrainerType are not included — fetch the full card by TcgDex.Models.CardBrief.Id to read them.
Properties
Id
The card identifier, in {setId}-{localId} form. Not always
URL-safe as printed: some ids arrive percent-encoded, such as
"exu-%3F".
public required string Id { get; init; }Property Value
Image
Base image URL without a file extension, or null when the card has no artwork on record.
public string? Image { get; init; }Property Value
LocalId
The card's number within its set. Not necessarily numeric — values such
as "!" and "%3F" occur in older promo sets.
[JsonConverter(typeof(FlexibleStringConverter))]
public required string LocalId { get; init; }Property Value
Remarks
TCGdex documents this as "String or Number", so an unquoted value is read
as text rather than throwing. Every card the API currently serves quotes
it; the converter is here because this property is required, so one
unquoted value would fail the entire card.
Name
The card's printed name.
public required string Name { get; init; }