-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added a dispatch queue to address an issue where batching wasn't as e…
…ffective as I'd like.
- Loading branch information
Showing
3 changed files
with
118 additions
and
67 deletions.
There are no files selected for viewing
25 changes: 25 additions & 0 deletions
25
XSOverlay VRChat Parser/Models/NotificationDispatchModel.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,25 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using System.Text; | ||
using System.Threading.Tasks; | ||
using XSNotifications; | ||
using XSOverlay_VRChat_Parser.Helpers; | ||
|
||
namespace XSOverlay_VRChat_Parser.Models | ||
{ | ||
class NotificationDispatchModel | ||
{ | ||
public int DurationMilliseconds { get; set; } | ||
public EventType Type { get; set; } | ||
public XSNotification Message { get; set; } | ||
public bool WasGrouped { get; set; } | ||
public List<NotificationDispatchModel> GroupedNotifications { get; set; } | ||
|
||
public NotificationDispatchModel() | ||
{ | ||
WasGrouped = false; | ||
GroupedNotifications = new List<NotificationDispatchModel>(); | ||
} | ||
} | ||
} |
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