Class: GenshinTCGModule
Represents a module for the Genshin Impact TCG.
Constructors
constructor
• new GenshinTCGModule(request, lang, region, uid)
Creates an instance of the GenshinTCGModule.
Parameters
| Name | Type | Description |
|---|---|---|
request | HTTPRequest | The HTTP request object. |
lang | LanguageEnum | The language enumeration for the module. |
region | null | string | The region string or null. |
uid | null | number | The UID number or null. |
Defined in
Properties
lang
• Private lang: LanguageEnum
The language enumeration for the module.
Defined in
region
• Private region: null | string
The region string or null.
Defined in
request
• Private request: HTTPRequest
The HTTP request object.
Defined in
uid
• Private uid: null | number
The UID number or null.
Defined in
Methods
basicInfo
▸ basicInfo(): Promise<IGenshinTCGBasicInfo>
Retrieves basic information for the Genshin Impact TCG.
Throws
If there is an error retrieving the data.
Returns
Promise<IGenshinTCGBasicInfo>
The Genshin Impact TCG basic information.
Defined in
cards
▸ cards(): Promise<IGenshinTCGCards>
Retrieves the cards for the Genshin Impact TCG.
Throws
If there is an error retrieving the data.
Returns
Promise<IGenshinTCGCards>
The Genshin Impact TCG cards.
Defined in
challangeDeck
▸ challangeDeck(schedule_id, deck_id): Promise<IGenshinTCGDeck>
Retrieves the challenge deck for the Genshin Impact TCG.
Throws
If there is an error retrieving the data.
Parameters
| Name | Type | Description |
|---|---|---|
schedule_id | number | Schedule ID from GenshinTCGModule.challengeSchedule() |
deck_id | number | Deck ID from GenshinTCGModule.challengeRecord() |
Returns
Promise<IGenshinTCGDeck>
The Genshin Impact TCG challenge record.
Defined in
challengeRecord
▸ challengeRecord(schedule_id): Promise<IGenshinTCGRecord>
Retrieves the challenge record for the Genshin Impact TCG.
Throws
If there is an error retrieving the data.
Parameters
| Name | Type | Description |
|---|---|---|
schedule_id | number | Schedule ID from GenshinTCGModule.challengeSchedule() |
Returns
Promise<IGenshinTCGRecord>
The Genshin Impact TCG challenge record.
Defined in
challengeSchedule
▸ challengeSchedule(): Promise<IGenshinTCGScheduleBasic[]>
Retrieves the challenge schedule for the Genshin Impact TCG.
Throws
If there is an error retrieving the data.
Returns
Promise<IGenshinTCGScheduleBasic[]>
The Genshin Impact TCG challenge schedule.
Defined in
matchs
▸ matchs(): Promise<IGenshinTCGMatchs>
Retrieves the match data for the Genshin Impact TCG.
Throws
If there is an error retrieving the data.
Returns
Promise<IGenshinTCGMatchs>
The Genshin Impact TCG match data.