Exemplo n.º 1
0
        public MainController(LauncherConfig config, LauncherContainer container)
        {
            this.config = config;
            //Dependency
            service    = new DownloadFileServiceImpl(config);
            dataSource = new WebClientDataSource(config);
            repository = new LauncherRepositoryImpl(dataSource, service, config);

            //UseCases
            checkUpdate = new CheckUpdateImpl(repository);
            openLink    = new OpenLinkImpl();
            startGame   = new StartGameImpl(repository);

            Container = container;
        }
 public CheckUpdateImpl(LauncherRepository pRepository)
 {
     this.reposity = pRepository;
 }
 public StartGameImpl(LauncherRepository repository)
 {
     this.repository = repository;
 }