Schnittstelle TopGamesCallback<T>

Typparameter:
T - The type of the successful response data.

public interface TopGamesCallback<T>
A generic callback interface for handling asynchronous API responses.
  • Methodenübersicht

    Modifizierer und Typ
    Methode
    Beschreibung
    void
    Called when the API request fails.
    void
    onSuccess(T result)
    Called when the API request succeeds.
  • Methodendetails

    • onSuccess

      void onSuccess(T result)
      Called when the API request succeeds.
      Parameter:
      result - The parsed response data.
    • onFailure

      void onFailure(Exception e)
      Called when the API request fails.
      Parameter:
      e - The exception that occurred.