Protected
Readonly
baseReadonly
ERR_Protected
doA generic request helper.
The path to send the request to.
The request RequestInit | Configuration.
Protected
doSend a GET request.
The path to send the request to.
Protected
doSend a POST request.
THe path to send the request to.
Optional
bodyData: DThe body-data to send.
The data-type of the bodyData.
Get a system savedata.
The GetSystemSavedataRequest
to send
The system savedata as string
or null
on error
Protected
toHelper to transform data to URLSearchParams
Any key with a value of undefined
will be ignored.
Any key with a value of null
will be included.
the data to transform to URLSearchParams
a URLSearchParams representaton of data
Update a system savedata.
The UpdateSystemSavedataRequest
to send
The raw SystemSaveData
An error message if something went wrong
Verify if the session is valid. If not the SystemSaveData is returned.
The VerifySystemSavedataRequest
to send
A SystemSaveData if NOT valid, otherwise null
.
TODO: add handling for errors
A wrapper for PokéRogue system savedata API requests.