Class AutomationViewModelBase<T>
The view model for a bot automation panel.
Inheritance
AutomationViewModelBase<T>
Inherited Members
Namespace: Phoenix.BotBrain
Assembly: Phoenix.Plugin.BotBrain.Shared.dll
Syntax
public class AutomationViewModelBase<T> : AutomationViewModelBase, INotifyPropertyChanged, IDisposable where T : UserControl
Type Parameters
Name | Description |
---|---|
T | The view type. |
Constructors
View SourceAutomationViewModelBase(T, IServiceProvider, IEventAggregator?)
Initializes a new instance of the AutomationViewModelBase<T> class.
Declaration
public AutomationViewModelBase(T content, IServiceProvider services, IEventAggregator? events = null)
Parameters
Type | Name | Description |
---|---|---|
T | content | The view for this view model. |
IServiceProvider | services | The service provider used to log and send telemetry. |
IEventAggregator | events | The event aggregator. |
Properties
View SourceContent
Gets the view associated with this view model.
Declaration
public T Content { get; }
Property Value
Type | Description |
---|---|
T |
SelectedDevice
Gets the currently selected device.
Declaration
public IDevice? SelectedDevice { get; }
Property Value
Type | Description |
---|---|
IDevice |
TelemetryClient
Gets the telemetry client.
Declaration
protected override ITelemetryClient? TelemetryClient { get; }
Property Value
Type | Description |
---|---|
ITelemetryClient |
Overrides
Methods
View SourceHandleDeviceSelected(DeviceCollectionChangeInfo)
Handles when the user's device selection changes.
Declaration
protected virtual void HandleDeviceSelected(DeviceCollectionChangeInfo changeInfo)
Parameters
Type | Name | Description |
---|---|---|
DeviceCollectionChangeInfo | changeInfo | The change information. |