Exemplo n.º 1
0
 internal async Task RefreshFeedbackThreadVMAsync(FeedbackThreadVM threadVM)
 {
     if (!threadVM.FeedbackThread.IsNewThread)
     {
         threadVM.FeedbackThread = (await HockeyClient.Current.AsInternal().OpenFeedbackThreadAsync(threadVM.FeedbackThread.Token)) ?? FeedbackThread.CreateInstance();
     }
 }
Exemplo n.º 2
0
        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);
            }
        }
Exemplo n.º 3
0
 internal void AddFeedbackThread(FeedbackThreadVM fbThreadVM)
 {
     this._openthreadVMs.Add(fbThreadVM);
 }