You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
32 lines
803 B
32 lines
803 B
using Lidarr.Http.REST;
|
|
|
|
namespace Lidarr.Api.V1.DiskSpace
|
|
{
|
|
public class DiskSpaceResource : RestResource
|
|
{
|
|
public string Path { get; set; }
|
|
public string Label { get; set; }
|
|
public long FreeSpace { get; set; }
|
|
public long TotalSpace { get; set; }
|
|
}
|
|
|
|
public static class DiskSpaceResourceMapper
|
|
{
|
|
public static DiskSpaceResource MapToResource(this NzbDrone.Core.DiskSpace.DiskSpace model)
|
|
{
|
|
if (model == null)
|
|
{
|
|
return null;
|
|
}
|
|
|
|
return new DiskSpaceResource
|
|
{
|
|
Path = model.Path,
|
|
Label = model.Label,
|
|
FreeSpace = model.FreeSpace,
|
|
TotalSpace = model.TotalSpace
|
|
};
|
|
}
|
|
}
|
|
}
|