MAL Interest Stacks (#2932)
This commit is contained in:
parent
29eb65c783
commit
b23300b1a4
61 changed files with 4104 additions and 382 deletions
|
@ -41,9 +41,9 @@ public static class MessageFactory
|
|||
/// </summary>
|
||||
public const string OnlineUsers = "OnlineUsers";
|
||||
/// <summary>
|
||||
/// When a series is added to a collection
|
||||
/// When a Collection has been updated
|
||||
/// </summary>
|
||||
public const string SeriesAddedToCollection = "SeriesAddedToCollection";
|
||||
public const string CollectionUpdated = "CollectionUpdated";
|
||||
/// <summary>
|
||||
/// Event sent out during backing up the database
|
||||
/// </summary>
|
||||
|
@ -310,17 +310,17 @@ public static class MessageFactory
|
|||
};
|
||||
}
|
||||
|
||||
public static SignalRMessage SeriesAddedToCollectionEvent(int tagId, int seriesId)
|
||||
|
||||
public static SignalRMessage CollectionUpdatedEvent(int collectionId)
|
||||
{
|
||||
return new SignalRMessage
|
||||
{
|
||||
Name = SeriesAddedToCollection,
|
||||
Name = CollectionUpdated,
|
||||
Progress = ProgressType.None,
|
||||
EventType = ProgressEventType.Single,
|
||||
Body = new
|
||||
{
|
||||
TagId = tagId,
|
||||
SeriesId = seriesId
|
||||
TagId = collectionId,
|
||||
}
|
||||
};
|
||||
}
|
||||
|
@ -428,7 +428,7 @@ public static class MessageFactory
|
|||
/// <param name="eventType"></param>
|
||||
/// <param name="seriesName"></param>
|
||||
/// <returns></returns>
|
||||
public static SignalRMessage LibraryScanProgressEvent(string libraryName, string eventType, string seriesName = "")
|
||||
public static SignalRMessage LibraryScanProgressEvent(string libraryName, string eventType, string seriesName = "", int? totalToProcess = null)
|
||||
{
|
||||
return new SignalRMessage()
|
||||
{
|
||||
|
@ -437,7 +437,12 @@ public static class MessageFactory
|
|||
SubTitle = seriesName,
|
||||
EventType = eventType,
|
||||
Progress = ProgressType.Indeterminate,
|
||||
Body = null
|
||||
Body = new
|
||||
{
|
||||
SeriesName = seriesName,
|
||||
LibraryName = libraryName,
|
||||
LeftToProcess = totalToProcess
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue