Class BaseRequestModifier

java.lang.Object
com.castlabs.android.network.BaseRequestModifier
All Implemented Interfaces:
RequestModifier

public final class BaseRequestModifier extends Object implements RequestModifier
  • Constructor Details

    • BaseRequestModifier

      public BaseRequestModifier(@NonNull PlayerConfig playerConfig)
      Constructs the Modifier
      Parameters:
      playerConfig - PlayerConfig holding request parameters
  • Method Details

    • onRequest

      @NonNull public Request onRequest(@NonNull Request request)
      Description copied from interface: RequestModifier
      Called with the current request object. Note: Do not return null here. If no modification should be applied, return the received request
      Specified by:
      onRequest in interface RequestModifier
      Parameters:
      request - The request object
      Returns:
      The potentially modified request instance. Do not return null here