Class DownloadController


  • public class DownloadController
    extends Controller
    The DownloadController class is the controller for the download use case. It is used to retrieve data from a source and write them to a file.
    • Constructor Detail

      • DownloadController

        public DownloadController()
        DownloadController constructor.
    • Method Detail

      • execute

        public Either<Failure,​Success> execute​(Context context)
        The execute method is used to retrieve data from a source and write them to a file.
        Specified by:
        execute in class Controller
        Parameters:
        context - the context
        Returns:
        Either a Failure or a Success