-
Notifications
You must be signed in to change notification settings - Fork 635
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Cherry pick update notifications number (#13246)
* DYN-5189 update notifications number (#13232) * fetching the notifications and counting the number * setting shortcut viewmodel to internal * setting shortcut viewmodel to internal
- Loading branch information
1 parent
7240196
commit e1e7555
Showing
6 changed files
with
137 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
17 changes: 17 additions & 0 deletions
17
src/DynamoCoreWpf/ViewModels/Core/ShortcutToolbarViewModel.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
using Dynamo.ViewModels; | ||
|
||
namespace Dynamo.Wpf.ViewModels.Core | ||
{ | ||
internal class ShortcutToolbarViewModel : ViewModelBase | ||
{ | ||
public ShortcutToolbarViewModel() | ||
{ | ||
NotificationsNumber = 0; | ||
} | ||
|
||
/// <summary> | ||
/// This property represents the number of new notifications | ||
/// </summary> | ||
public int NotificationsNumber { get; set; } | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using System.Runtime.Serialization; | ||
using System.Text; | ||
using System.Threading.Tasks; | ||
|
||
namespace Dynamo.Notifications | ||
{ | ||
[DataContract] | ||
internal class NotificationsModel | ||
{ | ||
[DataMember(Name = "version")] | ||
internal string Version { get; set; } | ||
|
||
[DataMember(Name = "last_update_timestamp")] | ||
internal DateTime LastUpdate { get; set; } | ||
|
||
[DataMember(Name = "notifications")] | ||
internal List<NotificationItemModel> Notifications { get; set; } | ||
} | ||
|
||
[DataContract] | ||
internal class NotificationItemModel | ||
{ | ||
[DataMember(Name = "id")] | ||
internal string Id { get; set; } | ||
|
||
[DataMember(Name = "title")] | ||
internal string Title { get; set; } | ||
|
||
[DataMember(Name = "link")] | ||
internal string Link { get; set; } | ||
|
||
[DataMember(Name = "linkTitle")] | ||
internal string LinkTitle { get; set; } | ||
|
||
[DataMember(Name = "longDescription")] | ||
internal string LongDescription { get; set; } | ||
|
||
[DataMember(Name = "created")] | ||
internal DateTime Created { get; set; } | ||
|
||
[DataMember(Name = "thumbnail")] | ||
internal string Thumbnail { get; set; } | ||
|
||
[DataMember(Name = "priority")] | ||
internal string Priority { get; set; } | ||
|
||
[DataMember(Name = "type")] | ||
internal string Type { get; set; } | ||
|
||
[DataMember(Name = "scope")] | ||
internal string Scope { get; set; } | ||
|
||
[DataMember(Name = "source")] | ||
internal string Source { get; set; } | ||
|
||
[DataMember(Name = "status")] | ||
internal string Status { get; set; } | ||
|
||
[DataMember(Name = "isPinned")] | ||
internal bool IsPinned { get; set; } | ||
} | ||
} |