コード例 #1
0
ファイル: ApiSetup.cs プロジェクト: wlkodlak/FreediveComp
 private static ResultsComponentDto BuildResultsComponent(ResultsComponent model)
 {
     return(new ResultsComponentDto
     {
         DisciplineId = model.DisciplineId,
         FinalPointsCoeficient = model.FinalPointsCoeficient
     });
 }
コード例 #2
0
        private void InitializeUiComponents(ViewGroup container)
        {
            var loadingComponent = new LoadingComponent(container);
            var resultsComponent = new ResultsComponent(container);
            var errorComponent   = new ErrorComponent(container);

            _components = new List <UiComponent>
            {
                loadingComponent,
                resultsComponent,
                errorComponent
            };

            // uiEvents should initiate the stream of usecases from a presenter
            // like mvi. not the scope of this sample
        }