UX Overhaul Part 2 (#3112)

Co-authored-by: Robbie Davis <robbie@therobbiedavis.com>
This commit is contained in:
Joe Milazzo 2024-08-16 19:37:12 -05:00 committed by GitHub
parent 0247bc5012
commit 3d8aa2ad24
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
192 changed files with 14808 additions and 1874 deletions

View file

@ -138,6 +138,14 @@ public static class MessageFactory
/// A Progress event when a smart collection is synchronizing
/// </summary>
public const string SmartCollectionSync = "SmartCollectionSync";
/// <summary>
/// Chapter is removed from server
/// </summary>
public const string ChapterRemoved = "ChapterRemoved";
/// <summary>
/// Volume is removed from server
/// </summary>
public const string VolumeRemoved = "VolumeRemoved";
public static SignalRMessage DashboardUpdateEvent(int userId)
{
@ -213,6 +221,32 @@ public static class MessageFactory
};
}
public static SignalRMessage ChapterRemovedEvent(int chapterId, int seriesId)
{
return new SignalRMessage()
{
Name = ChapterRemoved,
Body = new
{
SeriesId = seriesId,
ChapterId = chapterId
}
};
}
public static SignalRMessage VolumeRemovedEvent(int volumeId, int seriesId)
{
return new SignalRMessage()
{
Name = VolumeRemoved,
Body = new
{
SeriesId = seriesId,
VolumeId = volumeId
}
};
}
public static SignalRMessage WordCountAnalyzerProgressEvent(int libraryId, float progress, string eventType, string subtitle = "")
{