Class CardFilter
- Namespace
- TcgDex.Querying
- Assembly
- TcgDex.CSharpSdk.dll
An equality-only filter for the GraphQL card search.
public sealed record CardFilter : IEquatable<CardFilter>Inheritance
Implements
Inherited Members
Remarks
Deliberately narrower than TcgDex.Querying.CardQuery. GraphQL's
CardsFilters input takes typed scalars, so hp accepts a number
and nothing else — passing "gt:100" fails with
Int cannot represent non-integer value. There are no ranges, no
wildcards, and no null checks on this path.
Use TcgDex.Querying.CardQuery against REST when you need those. Use this when you want full card detail for many cards in a single round trip.
Properties
Category
Card category: Pokemon, Trainer or Energy.
public string? Category { get; init; }Property Value
DexId
National Pokédex number.
public int? DexId { get; init; }Property Value
- int?
EnergyType
Energy category.
public string? EnergyType { get; init; }Property Value
EvolvesFrom
The Pokémon this card evolves from.
public string? EvolvesFrom { get; init; }Property Value
HitPoints
Exact hit points.
public int? HitPoints { get; init; }Property Value
- int?
Id
Card identifier.
public string? Id { get; init; }Property Value
Illustrator
Illustrator name.
public string? Illustrator { get; init; }Property Value
ItemsPerPage
How many cards per page. Unset asks the server for its default page size.
public int? ItemsPerPage { get; init; }Property Value
- int?
LocalId
Card number within its set.
public string? LocalId { get; init; }Property Value
Name
Exact card name.
public string? Name { get; init; }Property Value
Page
The 1-based page to fetch. Unset asks the server for its default, the first page.
public int? Page { get; init; }Property Value
- int?
Remarks
Paging is part of the filter, not an argument of the search, so it can grow (sorting is next) without changing the interface (DECISIONS #36). A value below one makes the search throw System.ArgumentOutOfRangeException.
Rarity
Exact rarity.
public string? Rarity { get; init; }Property Value
RegulationMark
Regulation mark.
public string? RegulationMark { get; init; }Property Value
RetreatCost
Retreat cost.
public int? RetreatCost { get; init; }Property Value
- int?
Stage
Evolution stage.
public string? Stage { get; init; }Property Value
Suffix
Name suffix, such as EX.
public string? Suffix { get; init; }Property Value
TrainerType
Trainer subtype.
public string? TrainerType { get; init; }