Beispiel #1
0
 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);
            }
        }
Beispiel #3
0
 internal void AddFeedbackThread(FeedbackThreadVM fbThreadVM)
 {
     this._openthreadVMs.Add(fbThreadVM);
 }