Esempio n. 1
0
 public JourneyViewModel()
 {
     Answers     = new List <Answer>();
     JourneyJson = JsonConvert.SerializeObject(new Journey());
     Bullets     = new List <string>();
     State       = new Dictionary <string, string>();
     SymptomDiscriminatorCode = String.Empty;
     CollectedKeywords        = new KeywordBag();
 }
Esempio n. 2
0
 public JourneyViewModel()
 {
     Answers     = new List <Answer>();
     JourneyJson = JsonConvert.SerializeObject(new Journey());
     Bullets     = new List <string>();
     State       = new Dictionary <string, string>();
     SymptomDiscriminatorCode = String.Empty;
     CollectedKeywords        = new KeywordBag();
     FilterServices           = true;
     UserInfo = new UserInfo {
         CurrentAddress = new FindServicesAddressViewModel()
     };
 }
Esempio n. 3
0
        public JourneyViewModel()
        {
            bool fb;
            var  feedbackEnabled = bool.TryParse(ConfigurationManager.AppSettings.Get("FeedbackEnabled"), out fb) ? fb : true;

            Answers     = new List <Answer>();
            JourneyJson = JsonConvert.SerializeObject(new Journey());
            Bullets     = new List <string>();
            State       = new Dictionary <string, string>();
            SymptomDiscriminatorCode = String.Empty;
            CollectedKeywords        = new KeywordBag();
            FilterServices           = true;
            UserInfo = new UserInfo {
                CurrentAddress = new FindServicesAddressViewModel()
            };
            FeedbackEnabled = feedbackEnabled;
        }