Show / Hide Table of Contents

Class BotWithQueueViewModel<T>

The view model for a bot with a queue of actions which can be started from any index.

Inheritance
object
BindableBase
ViewModelBase
BotViewModelBase
BotViewModel
BotWithQueueViewModel<T>
BotWithPresetActionsViewModel<TBot, T>
Implements
IBotViewModelWithActions
IBotViewModel
INotifyPropertyChanged
IOnSelected
ICanMoveItemsTo
IDisposable
Inherited Members
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 BotWithQueueViewModel<T> : BotViewModel, IBotViewModelWithActions, IBotViewModel, INotifyPropertyChanged, IOnSelected, ICanMoveItemsTo, IDisposable
Type Parameters
Name Description
T

The type of actions the bot supports.

Constructors

View Source

BotWithQueueViewModel(IServiceProvider)

Initializes a new instance of the BotWithQueueViewModel<T> class.

Declaration
public BotWithQueueViewModel(IServiceProvider services)
Parameters
Type Name Description
IServiceProvider services

The service provider.

Properties

View Source

CanResume

Gets a value indicating whether or not the bot can be resumed.

Declaration
public override bool CanResume { get; }
Property Value
Type Description
bool
Overrides
BotViewModelBase.CanResume

Methods

View Source

CreateBot()

Creates a bot.

Declaration
protected abstract IAutomatedBot<T> CreateBot()
Returns
Type Description
IAutomatedBot<T>

The bot.

View Source

DisposeBot(IAutomatedBot)

Disposes the bot.

Declaration
protected override void DisposeBot(IAutomatedBot bot)
Parameters
Type Name Description
IAutomatedBot bot

The bot.

Overrides
BotViewModel.DisposeBot(IAutomatedBot)
View Source

OnBotQueueStarted(object?, EventArgs)

Called when a bot queue starts.

Declaration
protected virtual void OnBotQueueStarted(object? sender, EventArgs e)
Parameters
Type Name Description
object sender

The sender.

EventArgs e

Not used.

View Source

OnBotQueueStopped(object?, EventArgs)

Called when a bot queue finishes.

Declaration
protected virtual void OnBotQueueStopped(object? sender, EventArgs e)
Parameters
Type Name Description
object sender

The sender.

EventArgs e

Not used.

View Source

PushBotActions()

Pushes the queued actions from the UI to the underlying bot.

Declaration
protected virtual Task PushBotActions()
Returns
Type Description
Task

A task.

View Source

RegisterBotEvents()

Registers bot events.

Declaration
protected override void RegisterBotEvents()
Overrides
BotViewModel.RegisterBotEvents()
View Source

ResumeAsync()

Resumes the bot.

Declaration
public override Task ResumeAsync()
Returns
Type Description
Task

A task.

Overrides
BotViewModelBase.ResumeAsync()
View Source

SetupBot()

Sets up the bot in order to start it.

Declaration
protected override Task SetupBot()
Returns
Type Description
Task

A task.

Overrides
BotViewModel.SetupBot()

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