ApiDataRetriever

open class ApiDataRetriever

A data retriever for fetching responses from APIs.

Constructors

Link copied to clipboard
constructor(@NotNull url: @NotNull String)

Properties

Link copied to clipboard
val NO_DATA_ERROR_MESSAGE: String = "Error: No data received from API"

Functions

Link copied to clipboard
open fun fetchResponse()
Fetches the response from the API.
Link copied to clipboard
open fun shutDownConnections(@Nullable urlConnection: @Nullable HttpsURLConnection, @Nullable apiReader: @Nullable BufferedReader)
Handles the shutdown of connections.