示例#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();
 }
示例#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()
     };
 }
示例#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;
        }