Show / Hide Table of Contents

Class RecommendationViewModel

The view model for displaying a recommendation.

Inheritance
System.Object
RecommendationViewModel
Namespace: Phoenix.Polaris
Assembly: Phoenix.Plugin.Polaris.dll
Syntax
public class RecommendationViewModel : BindableBase

Constructors

View Source

RecommendationViewModel(RecommendationSetViewModel, String, String, RecommendationClient, IPhoenixLogger)

Initializes a new instance of the RecommendationViewModel class.

Declaration
public RecommendationViewModel(RecommendationSetViewModel parent, string name, string id, RecommendationClient recClient, IPhoenixLogger logger)
Parameters
Type Name Description
RecommendationSetViewModel parent

The parent recommendation set for this recommendation.

System.String name

The name of the recommendation.

System.String id

The identifier of the recommendation.

RecommendationClient recClient

A reference to the recommendation client.

IPhoenixLogger logger

The logger.

Properties

View Source

CompassRequestIds

Gets the compass request Ids associated with this recommendation.

Declaration
public List<string> CompassRequestIds { get; }
Property Value
Type Description
System.Collections.Generic.List<System.String>
View Source

Enabled

Gets or sets a value indicating whether this RecommendationViewModel is enabled.

Declaration
public bool Enabled { get; set; }
Property Value
Type Description
System.Boolean
View Source

Id

Gets the identifier.

Declaration
public string Id { get; }
Property Value
Type Description
System.String
View Source

IsExpanded

Gets or sets a value indicating whether this view model is expanded. Used in xaml.

Declaration
public bool IsExpanded { get; set; }
Property Value
Type Description
System.Boolean
View Source

IsPaused

Gets or sets a value indicating whether to pause the subscription of this recommendation.

Declaration
public bool IsPaused { get; set; }
Property Value
Type Description
System.Boolean
View Source

IsWaiting

Gets a value indicating whether the recommendation is currently waiting for a request.

Declaration
public bool IsWaiting { get; }
Property Value
Type Description
System.Boolean
View Source

Name

Gets or sets the name.

Declaration
public string Name { get; set; }
Property Value
Type Description
System.String
View Source

NumberOfWaitRequests

Gets the number of requests this recommendation is currently waiting on.

Declaration
public int NumberOfWaitRequests { get; }
Property Value
Type Description
System.Int32
View Source

Parent

Gets or sets the parent (Recommendation Set) of this recommendation

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

ShowMoveVisualizationButtons

Gets a value indicating whether to show the move left/move right buttons on a visual.

Declaration
public bool ShowMoveVisualizationButtons { get; }
Property Value
Type Description
System.Boolean
View Source

ShowVisualizationsSection

Gets a value indicating whether to show the Visualization section. Avoids empty border if there are no visuals.

Declaration
public bool ShowVisualizationsSection { get; }
Property Value
Type Description
System.Boolean
View Source

Visualizations

Gets the visualizations for this recommendation.

Declaration
public ObservableCollection<VisualizationViewModel> Visualizations { get; }
Property Value
Type Description
System.Collections.ObjectModel.ObservableCollection<VisualizationViewModel>
View Source

WaitList

Gets the dictionary of items that this recommendation is waiting on.

Declaration
public Dictionary<string, DateTime> WaitList { get; }
Property Value
Type Description
System.Collections.Generic.Dictionary<System.String, System.DateTime>

Methods

View Source

UpdatePauseAllState(Boolean)

Handles saving paused state when Pause All Recommendations is being set.

Declaration
public void UpdatePauseAllState(bool paused)
Parameters
Type Name Description
System.Boolean paused

The Pause All state.

View Source

WaitListEditedExternally()

A function to inform the UI that the IsWaiting status has changed based on the wait list being edited.

Declaration
public void WaitListEditedExternally()
  • View Source
In This Article
Back to top Generated by DocFX