-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathINavigationTopicViewModel{T}.cs
36 lines (32 loc) · 1.73 KB
/
INavigationTopicViewModel{T}.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
/*==============================================================================================================================
| Author Ignia, LLC
| Client Ignia
| Project Website
\=============================================================================================================================*/
namespace OnTopic.Models {
/*============================================================================================================================
| INTERFACE: NAVIGATION TOPIC VIEW MODEL
\---------------------------------------------------------------------------------------------------------------------------*/
/// <summary>
/// Provides a generic model for feeding views information about a navigation entry.
/// </summary>
/// <remarks>
/// No topics are expected to have a <c>Navigation</c> content type. Instead, implementers of this view model are expected
/// to manually construct instances.
/// </remarks>
public interface INavigationTopicViewModel<T> :
INavigableTopicViewModel,
IHierarchicalTopicViewModel<T> where T: INavigationTopicViewModel<T>
{
/*==========================================================================================================================
| METHOD: IS SELECTED?
\-------------------------------------------------------------------------------------------------------------------------*/
/// <summary>
/// Determines if the current item is selected based on the provided <paramref name="webPath"/>.
/// </summary>
/// <param name="webPath">
/// The path to compare against the current <see cref="INavigationTopicViewModel{T}"/>
/// </param>
bool IsSelected(string webPath);
} //Class
} //Namespace