Class RecommendationViewModel
The view model for displaying a recommendation.
Inheritance
Namespace: Phoenix.Polaris
Assembly: Phoenix.Plugin.Polaris.dll
Syntax
public class RecommendationViewModel : BindableBase
Constructors
View SourceRecommendationViewModel(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 SourceCompassRequestIds
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> |
Enabled
Gets or sets a value indicating whether this RecommendationViewModel is enabled.
Declaration
public bool Enabled { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
Id
Gets the identifier.
Declaration
public string Id { get; }
Property Value
Type | Description |
---|---|
System.String |
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 |
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 |
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 |
Name
Gets or sets the name.
Declaration
public string Name { get; set; }
Property Value
Type | Description |
---|---|
System.String |
NumberOfWaitRequests
Gets the number of requests this recommendation is currently waiting on.
Declaration
public int NumberOfWaitRequests { get; }
Property Value
Type | Description |
---|---|
System.Int32 |
Parent
Gets or sets the parent (Recommendation Set) of this recommendation
Declaration
public RecommendationSetViewModel Parent { get; set; }
Property Value
Type | Description |
---|---|
RecommendationSetViewModel |
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 |
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 |
Visualizations
Gets the visualizations for this recommendation.
Declaration
public ObservableCollection<VisualizationViewModel> Visualizations { get; }
Property Value
Type | Description |
---|---|
System.Collections.ObjectModel.ObservableCollection<VisualizationViewModel> |
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 SourceUpdatePauseAllState(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. |
WaitListEditedExternally()
A function to inform the UI that the IsWaiting status has changed based on the wait list being edited.
Declaration
public void WaitListEditedExternally()