Пример #1
0
 public StageResultUseCase(IAnswerRenderer answerRenderer,
                           IEffectCrackerRenderer effectCrackerRenderer,
                           IInfoEntity infoEntity,
                           IMainStateEntity mainStateEntity,
                           IMainStateRpcRequester mainStateRpcRequester,
                           IPlayerEntity playerEntity,
                           IReadOnlyList <IStageResultListRenderer> stageResultListRendererList,
                           IResultEntity resultEntity,
                           IStageEntity stageEntity,
                           IStageResultHandler stageResultHandler,
                           IStageResultRenderer stageResultRenderer,
                           IStageResultTimelineHandler stageResultTimelineHandler,
                           IStageResultTimelineRenderer stageResultTimelineRenderer,
                           ITimerEntity timerEntity)
 {
     AnswerRenderer              = answerRenderer;
     EffectCrackerRenderer       = effectCrackerRenderer;
     InfoEntity                  = infoEntity;
     MainStateEntity             = mainStateEntity;
     MainStateRpcRequester       = mainStateRpcRequester;
     PlayerEntity                = playerEntity;
     StageResultListRendererList = stageResultListRendererList;
     ResultEntity                = resultEntity;
     StageEntity                 = stageEntity;
     StageResultHandler          = stageResultHandler;
     StageResultRenderer         = stageResultRenderer;
     StageResultTimelineHandler  = stageResultTimelineHandler;
     StageResultTimelineRenderer = stageResultTimelineRenderer;
     TimerEntity                 = timerEntity;
 }
Пример #2
0
 public ResultUseCase(IAudioPlayer audioPlayer,
                      IInfoEntity infoEntity,
                      IMainStateEntity mainStateEntity,
                      IResultEntity resultEntity,
                      IResultRankRenderer resultRankRenderer,
                      IResultTotalTimeRenderer resultTotalTimeRenderer,
                      ITweetButtonHandler tweetButtonHandler,
                      IPlayerEntity playerEntity,
                      ResultRankList resultRankList)
 {
     AudioPlayer             = audioPlayer;
     InfoEntity              = infoEntity;
     MainStateEntity         = mainStateEntity;
     ResultEntity            = resultEntity;
     ResultRankRenderer      = resultRankRenderer;
     ResultTotalTimeRenderer = resultTotalTimeRenderer;
     TweetButtonHandler      = tweetButtonHandler;
     PlayerEntity            = playerEntity;
     ResultRankList          = resultRankList;
 }
Пример #3
0
        private async void AddResult(IResultEntity resultEntity)
        {
            await RankingEntitySubject;

            RankingEntitySubject.Value.List.Add(resultEntity);
        }