Show / Hide Table of Contents

Class RoleViewModel

Represents a role in a scenario.

Inheritance
object
BindableBase
ViewModelBase
DetailsViewModel
DetailsViewModel<IRole>
RoleViewModel
Implements
INotifyPropertyChanged
IOnSelected
IRoleViewModel
IScenarioTreeItem
Inherited Members
DetailsViewModel<IRole>.ParameterNames
DetailsViewModel<IRole>.Item
DetailsViewModel<IRole>.TelemetryClient
DetailsViewModel<IRole>.ToString()
DetailsViewModel<IRole>.ResetParameters()
DetailsViewModel<IRole>.CreateParameters()
DetailsViewModel.ParameterEditor
DetailsViewModel.ParameterFactory
DetailsViewModel.OnSelected(object)
ViewModelBase.Services
ViewModelBase.Logger
ViewModelBase.LogVerboseException(Exception, string, string)
BindableBase.SetProperty<T>(ref T, T, string)
BindableBase.SetProperty<T>(ref T, T, Action, string)
BindableBase.RaisePropertyChanged(string)
BindableBase.OnPropertyChanged(PropertyChangedEventArgs)
BindableBase.PropertyChanged
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
Namespace: Phoenix.BotBrain.Overmind
Assembly: Phoenix.Plugin.BotBrain.Overmind.dll
Syntax
public class RoleViewModel : DetailsViewModel<IRole>, INotifyPropertyChanged, IOnSelected, IRoleViewModel, IScenarioTreeItem

Constructors

View Source

RoleViewModel(IEventAggregator, IParameterFactory, IServiceProvider, QualityPassViewModel)

Initializes a new instance of the RoleViewModel class.

Declaration
public RoleViewModel(IEventAggregator eventAggregator, IParameterFactory parameterFactory, IServiceProvider services, QualityPassViewModel qualityPass)
Parameters
Type Name Description
IEventAggregator eventAggregator

The event aggregator.

IParameterFactory parameterFactory

The parameter factory.

IServiceProvider services

The service provider.

QualityPassViewModel qualityPass

The quality pass.

Properties

View Source

CanEdit

Gets a value indicating whether or not parameters are editable.

Declaration
protected override bool CanEdit { get; }
Property Value
Type Description
bool
Overrides
DetailsViewModel.CanEdit
View Source

HasUnsavedChanges

Gets a value indicating whether this item has unsaved changes.

Declaration
public bool HasUnsavedChanges { get; }
Property Value
Type Description
bool
View Source

Name

Gets the name.

Declaration
public string Name { get; }
Property Value
Type Description
string
View Source

QualityPass

Gets the quality pass.

Declaration
public QualityPassViewModel QualityPass { get; }
Property Value
Type Description
QualityPassViewModel
View Source

Role

Gets or sets the role.

Declaration
public IRole Role { get; set; }
Property Value
Type Description
IRole
View Source

Scenario

Gets or sets the scenario view model.

Declaration
public IRoleBasedScenarioViewModel? Scenario { get; set; }
Property Value
Type Description
IRoleBasedScenarioViewModel
View Source

Title

Gets a descriptive title for displaying details about the item.

Declaration
public string Title { get; }
Property Value
Type Description
string

Methods

View Source

OnParameterChanged(string)

Called when a parameter value changes.

Declaration
protected override void OnParameterChanged(string parameterName)
Parameters
Type Name Description
string parameterName

The parameter name.

Overrides
DetailsViewModel<IRole>.OnParameterChanged(string)

Implements

INotifyPropertyChanged
IOnSelected
IRoleViewModel
IScenarioTreeItem

Extension Methods

INotifyPropertyChangedExtensions.OnPropertyChanged(INotifyPropertyChanged, string, Action)
INotifyPropertyChangedExtensions.OnPropertyChanged(INotifyPropertyChanged, string, Action<object?, string>)
INotifyPropertyChangedExtensions.OnPropertyChangedUntil(INotifyPropertyChanged, string, Func<bool>)
INotifyPropertyChangedExtensions.OnPropertyChangedUntil(INotifyPropertyChanged, string, Func<object?, string, bool>)
  • View Source
In this article
Back to top Generated by DocFX