Example #1
0
 public SettingsViewModel(AppSettings appSettings, PushSharpClient pushSharpClient, 
     ToastService toastService, IEventAggregator eventAggregator, SingOuter singOuter)
 {
     this.appSettings = appSettings;
     this.pushSharpClient = pushSharpClient;
     this.toastService = toastService;
     this.eventAggregator = eventAggregator;
     this.singOuter = singOuter;
 }
 public AnswerQuestionViewModel(
     INavigationService navigationService,
     QuestionRestService questionRestService,
     AppSettings appSettings,
     ToastService toastService)
 {
     this.navigationService = navigationService;
     this.questionRestService = questionRestService;
     this.appSettings = appSettings;
     this.toastService = toastService;
 }
        public ViewQuestionViewModel(
            INavigationService navigationService,
            AppSettings appSettings,
            QuestionRestService questionRestService,
            ToastService toastService,
            AnswerRestService answerRestService)
        {
            this.navigationService = navigationService;
            this.appSettings = appSettings;
            this.questionRestService = questionRestService;
            this.toastService = toastService;
            this.answerRestService = answerRestService;


            Question = new Services.Model.Question()
            {
                Author = new Author()
            };

            Answers = new OrderedObservableCollection<Answer>((x, y) => y.CreatedAt.CompareTo(x.CreatedAt));
            Votes = new Dictionary<string, VoteDirection>();
        }