Show / Hide Table of Contents

Interface IBotViewModel

A view model for a bot.

Inherited Members
INotifyPropertyChanged.PropertyChanged
IOnSelected.OnSelected(object)
Namespace: Phoenix.BotBrain
Assembly: Phoenix.Plugin.BotBrain.BotScripting.dll
Syntax
public interface IBotViewModel : INotifyPropertyChanged, IOnSelected

Properties

View Source

AllListViewChoices

Gets all possible titles for the list view, if the bot has many component types, such as actions, urges, and/or considerations.

Declaration
IEnumerable<string>? AllListViewChoices { get; }
Property Value
Type Description
IEnumerable<string>
View Source

CanResume

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

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

CanSave

Gets a value indicating whether or not the bot can be saved to its current location.

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

CanStart

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

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

CanStop

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

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

DetailsTitle

Gets the title of the primary view for controlling this bot.

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

FilePath

Gets or sets the bot's file path.

Declaration
string? FilePath { get; set; }
Property Value
Type Description
string
View Source

IsRunning

Gets a value indicating whether or not the bot is running.

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

ListDetailsTitle

Gets the title for presenting details about the selected list view item.

Declaration
string? ListDetailsTitle { get; }
Property Value
Type Description
string
View Source

ListViewContext

Gets the data context for the list view presenting actions, urges, or other components.

Declaration
IListViewModel? ListViewContext { get; }
Property Value
Type Description
IListViewModel
View Source

ListViewTitle

Gets the title for the list view.

Declaration
string? ListViewTitle { get; }
Property Value
Type Description
string
View Source

Name

Gets or sets the bot's name.

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

Status

Gets the bot's status.

Declaration
string Status { get; }
Property Value
Type Description
string

Methods

View Source

IsRunningOn(IDevice)

Gets a value indicating whether or not the bot is running on the device.

Declaration
bool IsRunningOn(IDevice device)
Parameters
Type Name Description
IDevice device

The device.

Returns
Type Description
bool

True if it is running on the device.

View Source

Load(string)

Loads a serialized representation of a bot.

Declaration
void Load(string data)
Parameters
Type Name Description
string data

The data to load.

View Source

OnCanExecuteChanged()

Handles UI updates when the bot's status changes.

Declaration
void OnCanExecuteChanged()
View Source

OnDeviceSelected(DeviceCollectionChangeInfo)

Handles when the user's device selection changes.

Declaration
void OnDeviceSelected(DeviceCollectionChangeInfo changeInfo)
Parameters
Type Name Description
DeviceCollectionChangeInfo changeInfo

The change information.

View Source

ResumeAsync()

Resumes the bot.

Declaration
Task ResumeAsync()
Returns
Type Description
Task

A task.

View Source

Save()

Saves the bot.

Declaration
void Save()
View Source

StartAsync()

Starts the bot.

Declaration
Task StartAsync()
Returns
Type Description
Task

A task.

View Source

StopAsync()

Stops the bot.

Declaration
Task StopAsync()
Returns
Type Description
Task

A task.

Events

View Source

IsRunningChanged

Occurs when the IsRunning property changes.

Declaration
event EventHandler IsRunningChanged
Event Type
Type Description
EventHandler

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