Commit 44b8649
committed
Reduced scope of
The `INavigationTopicViewModel<T>` previously inherited from `ITopicViewModel`. The `ITopicViewModel` has grown since its inception, and also includes a lot of properties that aren't relevant to the `INavigationTopicViewModel<T>`. Given this, I've removed the dependency on `ITopicViewModel` from `INavigationTopicViewModel<T>`, and updated it to include only the most critical properties previously inherited from `ITopicViewModel`—namely `Title` and `WebPath`.
Since the `INavigationTopicViewModel<T>` will no longer have a `UniqueKey` property to compare against, I've updated the `IsSelected()` method to accept a `webPath` property instead. This makes more sense in context of how it will be used.INavigationTopicViewModel<T>
1 parent 219ece4 commit 44b8649
1 file changed
Lines changed: 18 additions & 9 deletions
File tree
- OnTopic/Models
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
19 | | - | |
20 | | - | |
21 | | - | |
22 | | - | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
23 | 26 | | |
24 | 27 | | |
25 | 28 | | |
| |||
31 | 34 | | |
32 | 35 | | |
33 | 36 | | |
34 | | - | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
35 | 44 | | |
36 | 45 | | |
37 | | - | |
| 46 | + | |
38 | 47 | | |
39 | | - | |
40 | | - | |
| 48 | + | |
| 49 | + | |
41 | 50 | | |
42 | | - | |
| 51 | + | |
43 | 52 | | |
44 | 53 | | |
45 | 54 | | |
0 commit comments