mirror of
https://github.com/tcgdex/javascript-sdk.git
synced 2025-07-16 03:39:52 +00:00
feat: Allow a user to filters elements on the API (#275)
This commit is contained in:
25
src/models/SetResume.ts
Normal file
25
src/models/SetResume.ts
Normal file
@ -0,0 +1,25 @@
|
||||
import Model from './Model'
|
||||
import type TCGdexSet from './Set'
|
||||
|
||||
export default class SetResume extends Model {
|
||||
public id!: string
|
||||
public name!: string
|
||||
public logo?: string
|
||||
public symbol?: string
|
||||
public cardCount!: {
|
||||
|
||||
/**
|
||||
* total of number of cards
|
||||
*/
|
||||
total: number
|
||||
|
||||
/**
|
||||
* number of cards officialy (on the bottom of each cards)
|
||||
*/
|
||||
official: number
|
||||
}
|
||||
|
||||
public async getSet(): Promise<TCGdexSet> {
|
||||
return (await this.sdk.set.get(this.id))!
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user