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