Ejemplo n.º 1
0
        public Rating_Main(IDataProvider dataProvider, INavigationService navigationService)
        {
            DataProvider      = dataProvider;
            NavigationService = navigationService;

            _review = DataProvider.Review;
        }
Ejemplo n.º 2
0
        public Rating_BestSpeaker(IDataProvider dataProvider, INavigationService navigationService)
        {
            DataProvider      = dataProvider;
            NavigationService = navigationService;

            _review = DataProvider.Review;

            if (_review.StepFour != null)
            {
                Model.GetDataFromModel(_review.StepFour);
            }
        }
Ejemplo n.º 3
0
        public Rating_BestModerator(IDataProvider dataProvider, INavigationService navigationService)
        {
            DataProvider      = dataProvider;
            NavigationService = navigationService;

            _review = DataProvider.Review;

            if (_review.StepThree != null)
            {
                Model.GetDataFromModel(_review.StepThree);
            }
        }
Ejemplo n.º 4
0
        public Rating_Common(IDataProvider dataProvider, INavigationService navigationService)
        {
            DataProvider      = dataProvider;
            NavigationService = navigationService;

            _review = DataProvider.Review;

            if (_review.StepOne != null)
            {
                Model.GetDataFromModel(_review.StepOne);
            }
        }
Ejemplo n.º 5
0
        public Rating_Final(IDataProvider dataProvider, INavigationService navigationService, IBusinessDataProvider serviceProvider)
        {
            DataProvider      = dataProvider;
            NavigationService = navigationService;
            ServiceProvider   = serviceProvider;

            _review = DataProvider.Review;

            if (_review.StepFinal != null)
            {
                Model.GetDataFromModel(_review.StepFinal);
            }
        }
Ejemplo n.º 6
0
 public static QuestionnaireModel CastToDTO([NotNull] ReviewCollector x)
 {
     return(new QuestionnaireModel
     {
         ConferenceId = x.ConferenceId,
         BestModeratorEventId = x.StepThree.BestModeratorSection?.Id ?? 0,
         BestModeratorId = x.StepThree.BestModerator?.Id ?? 0,
         BestSpeakerEventId = x.StepFour.BestSpeakerSection?.Id ?? 0,
         BestSpeakerId = x.StepFour.BestSpeaker?.Id ?? 0,
         OrganizationalScore = x.StepOne.PlaceReview,
         OrganizerWorkScore = x.StepOne.OrganisatorssWorkReview,
         RegistrationProcessScore = x.StepOne.RegistrationProcessReview,
         ThemesRelevanceScore = x.StepOne.RelevanceReview,
         UserId = x.UserId,
         BestEventId = x.StepTwo.BestSection?.Id ?? 0,
         Comment = x.StepFive.MainReview,
         Wishes = x.StepFinal.DesireForNextEvent
     });
 }