Package net.dzultra.jsa.bulk_data
Klasse BulkData
java.lang.Object
net.dzultra.jsa.bulk_data.BulkData
Provides access to Scryfall bulk data endpoints.
Bulk data endpoints allow retrieval of large datasets such as card databases, rulings, and other full-scale API resources. This class handles request execution, response validation, and JSON deserialization for bulk data operations.
-
Feldübersicht
FelderModifizierer und TypFeldBeschreibungprotected final ScryfallClientThe Scryfall client used for HTTP communication.Base endpoint for bulk data API requests.protected com.google.gson.GsonGson instance used for JSON deserialization.Stores the last raw JSON response received. -
Konstruktorübersicht
Konstruktoren -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungRetrieves the full bulk data listing.getBulkData(String uuid) Retrieves a specific bulk data object by UUID.getBulkData(BulkDataType type) Retrieves a specific bulk data object by type.booleanisValidBulkDataResponse(String response) Validates whether the response is a valid bulk data response.
-
Felddetails
-
client
The Scryfall client used for HTTP communication. -
gson
protected com.google.gson.Gson gsonGson instance used for JSON deserialization. -
endpoint
Base endpoint for bulk data API requests. -
response
Stores the last raw JSON response received.
-
-
Konstruktordetails
-
BulkData
Constructs a newBulkDatahandler.- Parameter:
client- the Scryfall client used for API communication
-
-
Methodendetails
-
getBulkData
Retrieves the full bulk data listing.- Gibt zurück:
- a
BulkDataResponsecontaining all bulk data entries
-
getBulkData
Retrieves a specific bulk data object by type.- Parameter:
type- the bulk data type identifier- Gibt zurück:
- the corresponding
BulkDataResponse.BulkDataObjectRecord
-
getBulkData
Retrieves a specific bulk data object by UUID.- Parameter:
uuid- the unique identifier of the bulk data object- Gibt zurück:
- the corresponding
BulkDataResponse.BulkDataObjectRecord
-
isValidBulkDataResponse
Validates whether the response is a valid bulk data response.- Parameter:
response- the raw JSON response string- Gibt zurück:
trueif the response matches expected bulk data formats
-