public Interactor(DataGateWay gate, OutputBoundary output) { _iDatagateway = gate; _iOutput = output; // _iDatagateway.ConnectionChanged += _iDatagateway_ConnectionChanged; }
/// <summary> /// Constructor /// </summary> /// <param></param> /// //viết trước khi có history public PointInteractor( PointDataGateway iPointDataGateway, OutputBoundary iOutput, ScreenBoundary iScreen) { _IPointDataGateway = iPointDataGateway; _Ioutput = iOutput; _IScreen = iScreen; }
public ITControl_Interactor(OutputBoundary iOutput, PointDataGateway iPoint, HardDriveGateway hd, ScreenBoundary iScreen) { _iOuput = iOutput; _iPoint = iPoint; _hd = hd; _iScreen = iScreen; }
public ITControl_Interactor(OutputBoundary iOutput, PointDataGateway iPoint, HardDriveGateway hd, ScreenBoundary iScreen, FileOpenerAPI fileAPI) { _iOuput = iOutput; _iPoint = iPoint; _hd = hd; _iScreen = iScreen; _fileAPI = fileAPI; }
public void Execute(SearchBlogPostsRequest request) { try { var blogposts = _gateway.Search(request.Search, request.NumberOfRecords, request.Page); var response = new SearchBlogPostsResponse( blogposts.Select(p => new BlogSearchResultDto() { CreationDate = p.CreationDate, Id = p.Id, Title = p.Title }) ); OutputBoundary.PublishSuccess(response); } catch (Exception e) { OutputBoundary.PublishError(e.Message); } }
public IT_Control_InteractorMain(HardDriveGateway iHD, ScreenBoundary iScreen, PointDataGateway iPointData, OutputBoundary iOut, FileOpenerAPI fileAPI) { interactor = new ITControl_Interactor( iOut, iPointData, iHD, iScreen, fileAPI ); }
public PointInteractorMain(HistoryGateway iHistory, ScreenBoundary iScreen, PointDataGateway iPointData, OutputBoundary iOut) { interactor = new PointInteractor( iHistory, iPointData, iOut, iScreen ); }
public InteractorMain(DataGateWay iData, OutputBoundary output) { _interactor = new Interactor(iData, output); }