mirror of
https://github.com/Kareadita/Kavita.git
synced 2026-06-04 05:45:26 -04:00
Progress Overhaul + Profile Page and a LOT more! (#4262)
Co-authored-by: Amelia <77553571+Fesaa@users.noreply.github.com> Co-authored-by: Robbie Davis <robbie@therobbiedavis.com>
This commit is contained in:
@@ -13,9 +13,10 @@ public static class MessageFactoryEntityTypes
|
||||
public const string Series = "series";
|
||||
public const string Volume = "volume";
|
||||
public const string Chapter = "chapter";
|
||||
public const string CollectionTag = "collection";
|
||||
public const string Collection = "collection";
|
||||
public const string ReadingList = "readingList";
|
||||
public const string Person = "person";
|
||||
public const string User = "user";
|
||||
}
|
||||
public static class MessageFactory
|
||||
{
|
||||
@@ -161,6 +162,10 @@ public static class MessageFactory
|
||||
/// Annotation is updated within the reader
|
||||
/// </summary>
|
||||
public const string AnnotationUpdate = "AnnotationUpdate";
|
||||
/// <summary>
|
||||
/// A Session is closing
|
||||
/// </summary>
|
||||
public const string SessionClose = "SessionClose";
|
||||
|
||||
|
||||
|
||||
@@ -721,4 +726,16 @@ public static class MessageFactory
|
||||
},
|
||||
};
|
||||
}
|
||||
|
||||
public static SignalRMessage SessionCloseEvent(int sessionId)
|
||||
{
|
||||
return new SignalRMessage()
|
||||
{
|
||||
Name = SessionClose,
|
||||
Body = new
|
||||
{
|
||||
SessionId = sessionId
|
||||
}
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user