C# Class Microsoft.HockeyApp.FeedbackManager

Provides the methods to integrate HockeyApp Feedback in your app. Don't use directly. Use HockeyClient.Current - extension methods
Datei anzeigen Open project: bitstadium/HockeySDK-Windows

Protected Properties

Property Type Description
_instance FeedbackManager

Private Properties

Property Type Description
AddFeedbackThread void
ClearMessageCacheAsync System.Threading.Tasks.Task
FeedbackManager System.Windows.Navigation
GetDataContextNavigatedToFormPage Task
GetDataContextNavigatedToImagePage Task
GetDataContextNavigatedToListPage Task
HandleSentMessage void
LoadFeedbackThreadsAsync Task>
RefreshFeedbackThreadVMAsync System.Threading.Tasks.Task
SaveFeedbackThreadTokens void
StoreDataIfNeeded System.Threading.Tasks.Task
TryRestoreFeedbackThread Task

Public Methods

Method Description
Configure ( string toptitle = null, string initialUsername = null, string initialEmail = null ) : void

Optional. Only needed if you want to set an initial toptitle for the UI or an intitial email and username. A Crashhandler has to be configured before usage of the Feedbackmanager!

GetActiveThreadAsync ( bool forceReload = false ) : Task

Gets the active feedback thread with all messages from the HockeyApp server (cached) (you should not need this is you use the provided feedpage page)

Logout ( ) : void

Deletes all persistently stored data like FeedbackThreadToken, UserName, etc. Call in your app if user logs out.

NavigateToFeedbackUI ( System.Windows.Navigation.NavigationService navigationService = null ) : void

Navigates to the feedback page

SendFeedback ( string message, string email, string subject, string name, IEnumerable attachments ) : Task

Send a feedback message to the server (you should not need this if you use the provided feedback page)

Protected Methods

Method Description
ForgetThreadInfos ( ) : void
InitializeIfNeeded ( ) : System.Threading.Tasks.Task
PersistThreadMetaInfos ( string token, string subject, string user, string email ) : void

Private Methods

Method Description
AddFeedbackThread ( FeedbackThreadVM fbThreadVM ) : void
ClearMessageCacheAsync ( ) : System.Threading.Tasks.Task
FeedbackManager ( ) : System.Windows.Navigation
GetDataContextNavigatedToFormPage ( System.Windows.Navigation.NavigationEventArgs args ) : Task
GetDataContextNavigatedToImagePage ( System.Windows.Navigation.NavigationEventArgs args, System.Windows.Controls.Canvas canvas, Image showArea ) : Task
GetDataContextNavigatedToListPage ( System.Windows.Navigation.NavigationEventArgs args, System.Windows.Controls.ListBox messageList ) : Task
HandleSentMessage ( IFeedbackMessage sentMsg ) : void
LoadFeedbackThreadsAsync ( ) : Task>
RefreshFeedbackThreadVMAsync ( FeedbackThreadVM threadVM ) : System.Threading.Tasks.Task
SaveFeedbackThreadTokens ( ) : void
StoreDataIfNeeded ( ) : System.Threading.Tasks.Task
TryRestoreFeedbackThread ( ) : Task

Method Details

Configure() public method

Optional. Only needed if you want to set an initial toptitle for the UI or an intitial email and username. A Crashhandler has to be configured before usage of the Feedbackmanager!
public Configure ( string toptitle = null, string initialUsername = null, string initialEmail = null ) : void
toptitle string Title shown over the header on the feedback page
initialUsername string Initial username to show in form
initialEmail string Initial email to show in form
return void

ForgetThreadInfos() protected method

protected ForgetThreadInfos ( ) : void
return void

GetActiveThreadAsync() public method

Gets the active feedback thread with all messages from the HockeyApp server (cached) (you should not need this is you use the provided feedpage page)
public GetActiveThreadAsync ( bool forceReload = false ) : Task
forceReload bool [optional] force reload of thread messages
return Task

InitializeIfNeeded() protected method

protected InitializeIfNeeded ( ) : System.Threading.Tasks.Task
return System.Threading.Tasks.Task

Logout() public method

Deletes all persistently stored data like FeedbackThreadToken, UserName, etc. Call in your app if user logs out.
public Logout ( ) : void
return void

NavigateToFeedbackUI() public method

Navigates to the feedback page
public NavigateToFeedbackUI ( System.Windows.Navigation.NavigationService navigationService = null ) : void
navigationService System.Windows.Navigation.NavigationService
return void

PersistThreadMetaInfos() protected method

protected PersistThreadMetaInfos ( string token, string subject, string user, string email ) : void
token string
subject string
user string
email string
return void

SendFeedback() public method

Send a feedback message to the server (you should not need this if you use the provided feedback page)
public SendFeedback ( string message, string email, string subject, string name, IEnumerable attachments ) : Task
message string message text
email string email address of sender
subject string subject of message
name string name of sender
attachments IEnumerable The attachments.
return Task

Property Details

_instance protected_oe static_oe property

protected static FeedbackManager,Microsoft.HockeyApp _instance
return FeedbackManager