Files
pgsql-jellyfin/Jellyfin.Api/Models/SystemInfoDtos/FolderStorageDto.cs
T
wjones af1152b001 Refactor: standardize namespace and using directive style
Refactored all C# test files to use explicit namespace declarations and moved all using directives inside the namespace block for consistency. Updated assembly info and cache files to reflect the new build. Adjusted MvcTestingAppManifest.json to use fully qualified assembly names. No functional changes; all updates are related to code style, organization, and project metadata.
2026-02-20 16:26:53 -05:00

51 lines
1.4 KiB
C#

// <copyright file="FolderStorageDto.cs" company="PlaceholderCompany">
// Copyright (c) PlaceholderCompany. All rights reserved.
// </copyright>
namespace Jellyfin.Api.Models.SystemInfoDtos;
using MediaBrowser.Model.System;
/// <summary>
/// Contains information about a specific folder.
/// </summary>
public record FolderStorageDto
{
/// <summary>
/// Gets the path of the folder in question.
/// </summary>
public required string Path { get; init; }
/// <summary>
/// Gets the free space of the underlying storage device of the <see cref="Path"/>.
/// </summary>
public long FreeSpace { get; init; }
/// <summary>
/// Gets the used space of the underlying storage device of the <see cref="Path"/>.
/// </summary>
public long UsedSpace { get; init; }
/// <summary>
/// Gets the kind of storage device of the <see cref="Path"/>.
/// </summary>
public string? StorageType { get; init; }
/// <summary>
/// Gets the Device Identifier.
/// </summary>
public string? DeviceId { get; init; }
internal static FolderStorageDto FromFolderStorageInfo(FolderStorageInfo model)
{
return new()
{
Path = model.Path,
FreeSpace = model.FreeSpace,
UsedSpace = model.UsedSpace,
StorageType = model.StorageType,
DeviceId = model.DeviceId
};
}
}