Class BugViewerViewModel
Represents the BugViewer view model.
Implements
Inherited Members
Namespace: Phoenix.Aruba
Assembly: Phoenix.Plugin.Aruba.dll
Syntax
public class BugViewerViewModel : BindableBase, INotifyPropertyChanged
Constructors
View SourceBugViewerViewModel(Dispatcher)
Initializes a new instance of the BugViewerViewModel class.
Declaration
public BugViewerViewModel(Dispatcher dispatcher)
Parameters
Type | Name | Description |
---|---|---|
Dispatcher | dispatcher | The dispatcher. |
Properties
View SourceBrowseBugCommand
Gets the command for browsing a bug.
Declaration
public ICommand BrowseBugCommand { get; }
Property Value
Type | Description |
---|---|
ICommand |
BugActionCommand
Gets the command for performing an action on a bug.
Declaration
public ICommand BugActionCommand { get; }
Property Value
Type | Description |
---|---|
ICommand |
BugActionRegistry
Gets or sets the bug action registry.
Declaration
public BugActionRegistry BugActionRegistry { get; set; }
Property Value
Type | Description |
---|---|
BugActionRegistry |
BugInfo
Gets or sets the bug info.
Declaration
public BugInfo BugInfo { get; set; }
Property Value
Type | Description |
---|---|
BugInfo |
BugSummary
Gets the bug summary value.
Declaration
public string BugSummary { get; }
Property Value
Type | Description |
---|---|
string |
CurrentBugKey
Gets or sets the current bug key.
Declaration
public string CurrentBugKey { get; set; }
Property Value
Type | Description |
---|---|
string |
ErrorString
Gets the debug error string to display about the bug action's error.
Declaration
public string ErrorString { get; }
Property Value
Type | Description |
---|---|
string |
HasBugInfo
Gets a value indicating whether the bug viewer view model have a bug's info.
Declaration
public bool HasBugInfo { get; }
Property Value
Type | Description |
---|---|
bool |
HasError
Gets a value indicating whether a bug action has an error.
Declaration
public bool HasError { get; }
Property Value
Type | Description |
---|---|
bool |
HasRegisteredBugActions
Gets a value indicating whether at least one registered BugAction is available in our BugActionRegistry.
Declaration
public bool HasRegisteredBugActions { get; }
Property Value
Type | Description |
---|---|
bool |
HasResolvedTokens
Gets a value indicating whether the bug has resolved tokens.
Declaration
public bool HasResolvedTokens { get; }
Property Value
Type | Description |
---|---|
bool |
LoadBugCommand
Gets the command for loading a bug.
Declaration
public ICommand LoadBugCommand { get; }
Property Value
Type | Description |
---|---|
ICommand |
ResolvedTokens
Gets the resolved tokens.
Declaration
public List<ResolvedToken> ResolvedTokens { get; }
Property Value
Type | Description |
---|---|
List<ResolvedToken> |
SharedInfo
Gets or sets the view model shared info.
Declaration
public ViewModelSharedInfo SharedInfo { get; set; }
Property Value
Type | Description |
---|---|
ViewModelSharedInfo |
TemplateName
Gets the template name.
Declaration
public string TemplateName { get; }
Property Value
Type | Description |
---|---|
string |
Methods
View SourceBrowseBugAsync()
Browses to a bug based on it's Uri.
Declaration
public Task BrowseBugAsync()
Returns
Type | Description |
---|---|
Task |
CanPerformBugAction(BugAction)
Determines if the action can be performed.
Declaration
public bool CanPerformBugAction(BugAction bugAction)
Parameters
Type | Name | Description |
---|---|---|
BugAction | bugAction | The bug action to check. |
Returns
Type | Description |
---|---|
bool | Returns whether the bug action can be performed. |
ResetViewer()
Reset the Bug Viewer (clear out current bug)
Declaration
public void ResetViewer()
StartFetchBugInfo()
Starts the setup for fetching a bug.
Declaration
public void StartFetchBugInfo()