コード例 #1
0
        public InteractorPost(string postId, IOnePostController onePostsController, INotificationCenter notificationCenter, IRepositoryPost repository, IRepositoryQc repositoryQc)
        {
            _postId = postId;

            _repository = repository;

            _onePostController = onePostsController;
            _onePostController.OnRecieveModel += ControllerOnMessage;

            InteractorPostBody   = new InteractorPostBody(_postId, notificationCenter, repository);
            InteractorPostChart  = new InteractorPostChart(notificationCenter, repository);
            InteractorPostHeader = new InteractorPostHeader(_postId, new PostHeaderController(ConnectionController.GetInstance(), WebMsgParser.ParseResponseDeletePost, notificationCenter, repositoryQc,
                                                                                              repository.GetPostById(_postId).Quote), repository);
            InteractorPostSocial = new InteractorPostSocial(_postId, new PostSocialController(ConnectionController.GetInstance(), WebMsgParser.ParseResponsePostLike), notificationCenter, repository);
            //InteractorPostStatistics = new InteractorPostStatistics(notificationCenter, repository);
            InteractorTrade = new InteractorTrade(notificationCenter, repository);
        }
コード例 #2
0
 private void FillPost(DataModelOnePost postModel)
 {
     InteractorPostHeader.RecieveModel(postModel.ModelPost);
     InteractorPostBody.RecieveModel(postModel.ModelPost);
     InteractorPostSocial.RecieveModel(postModel.ModelPost);
 }