Show / Hide Table of Contents

Class BotWithPresetActionsViewModel<TBot, T>

The view model for a bot with a preset list of actions which can be created.

Inheritance
object
BindableBase
ViewModelBase
BotViewModelBase
BotViewModel
BotWithQueueViewModel<T>
BotWithPresetActionsViewModel<TBot, T>
TestBotViewModel
Implements
IBotViewModelWithActions
IBotViewModel
INotifyPropertyChanged
IOnSelected
ICanMoveItemsTo
IDisposable
Inherited Members
BotWithQueueViewModel<T>.CanResume
BotWithQueueViewModel<T>.ResumeAsync()
BotWithQueueViewModel<T>.SetupBot()
BotWithQueueViewModel<T>.CreateBot()
BotWithQueueViewModel<T>.PushBotActions()
BotWithQueueViewModel<T>.RegisterBotEvents()
BotWithQueueViewModel<T>.DisposeBot(IAutomatedBot)
BotWithQueueViewModel<T>.OnBotQueueStarted(object, EventArgs)
BotWithQueueViewModel<T>.OnBotQueueStopped(object, EventArgs)
BotViewModel.Name
BotViewModel.IsRunning
BotViewModel.Status
BotViewModel.Actions
BotViewModel.SelectedAction
BotViewModel.Bot
BotViewModel.Device
BotViewModel.ListViewTitle
BotViewModel.StartAsync()
BotViewModel.StopAsync()
BotViewModel.IsRunningOn(IDevice)
BotViewModel.MoveItemsTo(object)
BotViewModel.CopyItemsTo(object)
BotViewModel.CanAppendItems(object)
BotViewModel.OnCanExecuteChanged()
BotViewModel.Load(string)
BotViewModel.Dispose()
BotViewModel.DisposeBot()
BotViewModel.SaveToString()
BotViewModel.CheckAreActionsEditable()
BotViewModel.SetRunningAction(int)
BotViewModel.ClearRunningAction()
BotViewModel.SetRunningActions(IEnumerable<int>)
BotViewModel.OnBotActionStarted(object, BotActionEventArgs)
BotViewModel.OnBotActionFinished(object, BotActionEventArgs)
BotViewModel.OnBotActionFailed(object, BotActionFailedEventArgs)
BotViewModelBase.IsRunningChanged
BotViewModelBase.CanStart
BotViewModelBase.CanStop
BotViewModelBase.CanSave
BotViewModelBase.DetailsTitle
BotViewModelBase.ListViewContext
BotViewModelBase.AllListViewChoices
BotViewModelBase.ListDetailsTitle
BotViewModelBase.StartCommand
BotViewModelBase.StopCommand
BotViewModelBase.ResumeCommand
BotViewModelBase.SaveCommand
BotViewModelBase.ModifyListViewTitleIndexCommand
BotViewModelBase.FilePath
BotViewModelBase.DeviceManager
BotViewModelBase.TelemetryClient
BotViewModelBase.BotScriptTelemetryClient
BotViewModelBase.Save()
BotViewModelBase.OnDeviceSelected(DeviceCollectionChangeInfo)
BotViewModelBase.OnSelected(object)
BotViewModelBase.TryRunTask(string, Func<Task>)
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)
object.ToString()
Namespace: Phoenix.BotBrain
Assembly: Phoenix.Plugin.BotBrain.BotScripting.dll
Syntax
public abstract class BotWithPresetActionsViewModel<TBot, T> : BotWithQueueViewModel<T>, IBotViewModelWithActions, IBotViewModel, INotifyPropertyChanged, IOnSelected, ICanMoveItemsTo, IDisposable
Type Parameters
Name Description
TBot

The bot type.

T

The type of actions the bot supports.

Remarks

Initializes a new instance of the BotWithPresetActionsViewModel<TBot, T> class.

Constructors

View Source

BotWithPresetActionsViewModel(IServiceProvider)

The view model for a bot with a preset list of actions which can be created.

Declaration
protected BotWithPresetActionsViewModel(IServiceProvider services)
Parameters
Type Name Description
IServiceProvider services

The service provider.

Remarks

Initializes a new instance of the BotWithPresetActionsViewModel<TBot, T> class.

Properties

View Source

AvailableActionTypes

Gets the action types which can be created.

Declaration
public ICollectionView? AvailableActionTypes { get; }
Property Value
Type Description
ICollectionView

Methods

View Source

CreateAction(T)

Creates a bot action view model for the given action.

Declaration
protected virtual IBotActionViewModel CreateAction(T action)
Parameters
Type Name Description
T action

The bot action.

Returns
Type Description
IBotActionViewModel

The bot action view model.

View Source

CreateActionFromExport(Type, string)

Creates a bot action view model using the specified contract type and name.

Declaration
protected virtual IBotActionViewModel CreateActionFromExport(Type contractType, string contractName)
Parameters
Type Name Description
Type contractType

The contract type.

string contractName

The contract name.

Returns
Type Description
IBotActionViewModel

The bot action view model.

View Source

CreateActionFromName(string)

Creates a bot action view model using the specified contract name.

Declaration
protected virtual IBotActionViewModel CreateActionFromName(string contractName)
Parameters
Type Name Description
string contractName

The contract name.

Returns
Type Description
IBotActionViewModel

The bot action view model.

View Source

CreateActionWithInfo(ItemInfo)

Creates a bot action view model with the specified name.

Declaration
protected virtual IBotActionViewModel CreateActionWithInfo(ItemInfo info)
Parameters
Type Name Description
ItemInfo info

The action name.

Returns
Type Description
IBotActionViewModel

The bot action view model.

View Source

InitializePresetActionsList(IEnumerable<ItemInfo>)

Initializes the list of preset actions which can be created.

Declaration
protected void InitializePresetActionsList(IEnumerable<ItemInfo> items)
Parameters
Type Name Description
IEnumerable<ItemInfo> items

An enumeration of action names.

Implements

IBotViewModelWithActions
IBotViewModel
INotifyPropertyChanged
IOnSelected
ICanMoveItemsTo
IDisposable

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