Exemple #1
0
 public StoryService(IHackerNewsService hackerNewsService, IStoryRepository storyRepository, IStoryCommentsRepository storyCommentsRepository, ITextToSpeech textToSpeech)
 {
     _hackerNewsService           = hackerNewsService;
     _storyRepository             = storyRepository;
     this.storyCommentsRepository = storyCommentsRepository;
     _textToSpeech = textToSpeech;
 }
Exemple #2
0
        public StoryCommentsViewModel(IStoryService storyService, IStoryCommentsRepository storyCommentsRepository, ICrashReportService crashReportService)
        {
            this.storyService            = storyService;
            this.storyCommentsRepository = storyCommentsRepository;

            this.crashReportService  = crashReportService;
            CommentItems             = new ObservableCollection <ItemCommentModel>();
            LoadStoryCommentsCommand = new Command <List <long> >(ExecuteLoadStoryCommentCommand);
        }