Class TokenActivatorViewModel
Represents the TokenActivator view model.
Inherited Members
Namespace: Phoenix.Aruba
Assembly: Phoenix.Plugin.Aruba.dll
Syntax
public class TokenActivatorViewModel : BindableBase, INotifyPropertyChanged, IDataErrorInfo
Constructors
View SourceTokenActivatorViewModel()
Initializes a new instance of the TokenActivatorViewModel class.
Declaration
public TokenActivatorViewModel()
Properties
View SourceCurrentBugDevices
Gets the collection of devices associated with this bug.
Declaration
public ObservableCollection<IGameDevice> CurrentBugDevices { get; }
Property Value
Type | Description |
---|---|
ObservableCollection<IGameDevice> |
Error
Gets or sets the current error.
Declaration
public string Error { get; set; }
Property Value
Type | Description |
---|---|
string |
FieldsViewModel
Gets or sets the BugInfo object backing the view's tokens.
Declaration
public IFieldsViewModel FieldsViewModel { get; set; }
Property Value
Type | Description |
---|---|
IFieldsViewModel |
HasTokens
Gets a value indicating whether there are tokenized items.
Declaration
public bool HasTokens { get; }
Property Value
Type | Description |
---|---|
bool |
this[string]
Gets the error message for the property with the given name.
Declaration
public string this[string columnName] { get; }
Parameters
Type | Name | Description |
---|---|---|
string | columnName | The name of the column to validate. |
Property Value
Type | Description |
---|---|
string | The error message for the property. The default is an empty string (""). |
ResolveAllCommand
Gets the command to resolve all tokenized items.
Declaration
public AsyncDelegateCommand ResolveAllCommand { get; }
Property Value
Type | Description |
---|---|
AsyncDelegateCommand |
ResolveForDeviceCommand
Gets the command for resolving tokens on a specific device.
Declaration
public AsyncDelegateCommand<IGameDevice> ResolveForDeviceCommand { get; }
Property Value
Type | Description |
---|---|
AsyncDelegateCommand<IGameDevice> |
SharedInfo
Gets or sets the view model shared info.
Declaration
public ViewModelSharedInfo SharedInfo { get; set; }
Property Value
Type | Description |
---|---|
ViewModelSharedInfo |
ShowResolveForDeviceUI
Gets a value indicating whether to show the 'Resolve for Device' UI.
Declaration
public bool ShowResolveForDeviceUI { get; }
Property Value
Type | Description |
---|---|
bool |
TokenResolverRegistry
Gets or sets access to the TokenResolverRegistry
Declaration
public TokenResolverRegistry TokenResolverRegistry { get; set; }
Property Value
Type | Description |
---|---|
TokenResolverRegistry |
TokenizedItems
Gets the collection of TokenizedItem wrappers.
Declaration
public ObservableCollection<TokenizedItemViewModel> TokenizedItems { get; }
Property Value
Type | Description |
---|---|
ObservableCollection<TokenizedItemViewModel> |
Methods
View SourceForceFieldDataRefresh()
Forces a refresh of the field related data.
Declaration
public void ForceFieldDataRefresh()
ResolveAllFieldsAsync()
Resolves all fields asynchronously.
Declaration
public Task<bool> ResolveAllFieldsAsync()
Returns
Type | Description |
---|---|
Task<bool> | Whether the tokens resolved successfully. |
ResolveAllFieldsOnSpecificDevicesAsync(List<IGameDevice>)
Resolves all fields on the given list of devices.
Declaration
public Task<bool> ResolveAllFieldsOnSpecificDevicesAsync(List<IGameDevice> devices)
Parameters
Type | Name | Description |
---|---|---|
List<IGameDevice> | devices | The devices to resolve fields on. |
Returns
Type | Description |
---|---|
Task<bool> | Whether the operation performed successfully. |
ResolveFieldsAsync(IList<TokenizedItemViewModel>)
Resolves all fields asynchronously.
Declaration
public Task<bool> ResolveFieldsAsync(IList<TokenizedItemViewModel> tokensToResolve)
Parameters
Type | Name | Description |
---|---|---|
IList<TokenizedItemViewModel> | tokensToResolve | The set of tokens to resolve. |
Returns
Type | Description |
---|---|
Task<bool> | Whether the tokens resolved successfully. |
SetSkipResolveState(bool)
Sets whether to skip resolving fields.
Declaration
public void SetSkipResolveState(bool skipResolve)
Parameters
Type | Name | Description |
---|---|---|
bool | skipResolve | Whether to skip the resolving step. |