mirror of
https://github.com/lidarr/lidarr.git
synced 2025-07-16 10:03:51 -07:00
Added progress messaging, using info logging
Also extension methods for complete and failed (for coloured UI messaging)
This commit is contained in:
parent
eeda4e83f9
commit
c928ccb201
21 changed files with 191 additions and 32 deletions
21
NzbDrone.Api/ProgressMessaging/ProgressMessageModule.cs
Normal file
21
NzbDrone.Api/ProgressMessaging/ProgressMessageModule.cs
Normal file
|
@ -0,0 +1,21 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using Nancy;
|
||||
using NzbDrone.Api.Extensions;
|
||||
|
||||
namespace NzbDrone.Api.ProgressMessaging
|
||||
{
|
||||
public class ProgressMessageModule : NzbDroneRestModule<ProgressMessageResource>
|
||||
{
|
||||
public ProgressMessageModule()
|
||||
{
|
||||
Get["/"] = x => GetAllMessages();
|
||||
}
|
||||
|
||||
private Response GetAllMessages()
|
||||
{
|
||||
return new List<ProgressMessageResource>().AsResponse();
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue