internal async Task RefreshFeedbackThreadVMAsync(FeedbackThreadVM threadVM) { if (!threadVM.FeedbackThread.IsNewThread) { threadVM.FeedbackThread = (await HockeyClient.Current.AsInternal().OpenFeedbackThreadAsync(threadVM.FeedbackThread.Token)) ?? FeedbackThread.CreateInstance(); } }
internal async Task <FeedbackThreadVM> TryRestoreFeedbackThread() { try { await this.LoadFeedbackThreadsAsync(); var threadVM = this.OpenFeedbackThreadVMs.FirstOrDefault(); this.CurrentFeedbackThreadVM = threadVM; return(this.CurrentFeedbackThreadVM); } catch (Exception ex) { HockeyClient.Current.AsInternal().HandleInternalUnhandledException(ex); return(null); } }
internal void AddFeedbackThread(FeedbackThreadVM fbThreadVM) { this._openthreadVMs.Add(fbThreadVM); }