Show / Hide Table of Contents

Class PolarisViewModel

View model for displaying Polaris recommendations.

Inheritance
System.Object
ViewModelBase<PolarisView>
TabItemViewModel<PolarisView>
PolarisViewModel
Implements
IViewInitialize
IPolarisViewProvider
IViewProvider
IClosingNotification
Inherited Members
TabItemViewModel<PolarisView>.FocusView()
TabItemViewModel<PolarisView>.LogOnlyIfTabActive(String, String, Object[])
TabItemViewModel<PolarisView>.LogOnlyIfTabActive(String, LogSeverity, String, Object[])
TabItemViewModel<PolarisView>.LogOnlyIfTabActive(String, Guid, String, Object[])
TabItemViewModel<PolarisView>.LogOnlyIfTabActive(String, Guid, LogSeverity, String, Object[])
TabItemViewModel<PolarisView>.LoglineOnlyIfTabActive(String, String, Object[])
TabItemViewModel<PolarisView>.LoglineOnlyIfTabActive(String, LogSeverity, String, Object[])
TabItemViewModel<PolarisView>.LoglineOnlyIfTabActive(String, Guid, String, Object[])
TabItemViewModel<PolarisView>.LoglineOnlyIfTabActive(String, Guid, LogSeverity, String, Object[])
TabItemViewModel<PolarisView>.LogExceptionOnlyIfTabActive(String, LogSeverity, Exception)
TabItemViewModel<PolarisView>.LogCriticalExceptionOnlyIfTabActive(String, Exception)
ViewModelBase<PolarisView>.Closed
ViewModelBase<PolarisView>.IsClosable
ViewModelBase<PolarisView>.IsDockable
ViewModelBase<PolarisView>.HeaderName
ViewModelBase<PolarisView>.View
ViewModelBase<PolarisView>.IViewProvider.View
ViewModelBase<PolarisView>.EventAggregator
ViewModelBase<PolarisView>.Logger
ViewModelBase<PolarisView>.Closing(CancelEventArgs)
ViewModelBase<PolarisView>.IViewInitialize.Initialize()
ViewModelBase<PolarisView>.IViewInitialize.Uninitialize()
ViewModelBase<PolarisView>.IClosingNotification.Closed(EventArgs)
ViewModelBase<PolarisView>.OnClosing(CancelEventArgs)
ViewModelBase<PolarisView>.OnClosed()
ViewModelBase<PolarisView>.CloseView()
Namespace: Phoenix.Polaris
Assembly: Phoenix.Plugin.Polaris.dll
Syntax
public class PolarisViewModel : TabItemViewModel<PolarisView>, IViewInitialize, IPolarisViewProvider, IViewProvider, IClosingNotification

Constructors

View Source

PolarisViewModel(PolarisView, IWindowingControl, IEventAggregator, IPhoenixLogger, IEnumerable<IRecommendationClientFactory>, IEnumerable<ICompassGameStateClient>, EventSubscriber, IServiceProvider)

Initializes a new instance of the PolarisViewModel class.

Declaration
public PolarisViewModel(PolarisView view, IWindowingControl windowing, IEventAggregator eventAggregator, IPhoenixLogger logger, IEnumerable<IRecommendationClientFactory> recommendationClientFactories, IEnumerable<ICompassGameStateClient> compassGameStateClients, EventSubscriber eventSubscriber, IServiceProvider services)
Parameters
Type Name Description
PolarisView view

The view this view model is driving.

IWindowingControl windowing
IEventAggregator eventAggregator

The event aggregator for the application.

IPhoenixLogger logger

The logger for the application.

System.Collections.Generic.IEnumerable<IRecommendationClientFactory> recommendationClientFactories
System.Collections.Generic.IEnumerable<ICompassGameStateClient> compassGameStateClients
EventSubscriber eventSubscriber
System.IServiceProvider services

Fields

View Source

Name

The tab header name.

Declaration
public const string Name = "Polaris"
Field Value
Type Description
System.String

Properties

View Source

CompassGameStates

Gets the compass game states.

Declaration
public Collection<ICompassGameStateClient> CompassGameStates { get; }
Property Value
Type Description
System.Collections.ObjectModel.Collection<ICompassGameStateClient>
View Source

CurrentDevice

Gets the currently selected device.

Declaration
public IDevice CurrentDevice { get; }
Property Value
Type Description
IDevice
View Source

Factories

Gets the factories for getting recommendations.

Declaration
public Collection<IRecommendationClientFactory> Factories { get; }
Property Value
Type Description
System.Collections.ObjectModel.Collection<IRecommendationClientFactory>
View Source

GetRecommendationsCommand

Gets the command for receiving recommendations.

Declaration
public DelegateCommand GetRecommendationsCommand { get; }
Property Value
Type Description
DelegateCommand
View Source

Instance

Gets the singleton instance for easier access

Declaration
public static PolarisViewModel Instance { get; }
Property Value
Type Description
PolarisViewModel
View Source

RecommendationSets

Gets or sets the recommendation sets.

Declaration
public IReadOnlyList<RecommendationSetViewModel> RecommendationSets { get; set; }
Property Value
Type Description
System.Collections.Generic.IReadOnlyList<RecommendationSetViewModel>
View Source

RecommendationSettings

Gets the recommendation settings.

Declaration
public PolarisRecommendationSetSettings RecommendationSettings { get; }
Property Value
Type Description
PolarisRecommendationSetSettings
View Source

SelectedFactory

Gets or sets the selected recommendation client factory.

Declaration
public IRecommendationClientFactory SelectedFactory { get; set; }
Property Value
Type Description
IRecommendationClientFactory
View Source

SelectedRecommendationSet

Gets or sets the selected recommendation set.

Declaration
public RecommendationSetViewModel SelectedRecommendationSet { get; set; }
Property Value
Type Description
RecommendationSetViewModel
View Source

SelectedRecommendationSetConnectionStatus

Gets the selected recommendation set's connection status

Declaration
public string SelectedRecommendationSetConnectionStatus { get; }
Property Value
Type Description
System.String

Methods

View Source

Initialize()

Initializes phoenix managed resources all modules are loaded.

Declaration
protected override void Initialize()
Overrides
Phoenix.Views.ViewModelBase<Phoenix.Polaris.PolarisView>.Initialize()
View Source

OnViewChanged(Object, DependencyPropertyChangedEventArgs)

Updates the logger with the active tabs.

Declaration
protected override void OnViewChanged(object sender, DependencyPropertyChangedEventArgs e)
Parameters
Type Name Description
System.Object sender

The tab being updated.

System.Windows.DependencyPropertyChangedEventArgs e

The tab's status (whether or not it is visible).

Overrides
Phoenix.Views.TabItemViewModel<Phoenix.Polaris.PolarisView>.OnViewChanged(System.Object, System.Windows.DependencyPropertyChangedEventArgs)
View Source

PauseSelectedRecommendationSet(Boolean)

Sets the pause state of the current recommendation set.

Declaration
public void PauseSelectedRecommendationSet(bool pause)
Parameters
Type Name Description
System.Boolean pause

The paused state.

View Source

SendPolarisRequests(String, String, List<PhoenixRequestBase>)

Sends the polaris requests to the correct recommendation set.

Declaration
public void SendPolarisRequests(string titleName, string ipAddress, List<PhoenixRequestBase> requests)
Parameters
Type Name Description
System.String titleName

Name of the title.

System.String ipAddress

The ip for the game's device.

System.Collections.Generic.List<PhoenixRequestBase> requests

The requests.

View Source

Uninitialize()

Uninitializes phoenix managed resources when closed.

Declaration
protected override void Uninitialize()
Overrides
Phoenix.Views.ViewModelBase<Phoenix.Polaris.PolarisView>.Uninitialize()

Implements

IViewInitialize
IPolarisViewProvider
IViewProvider
IClosingNotification

See Also

PolarisView
  • View Source
In This Article
Back to top Generated by DocFX