2020-04-05 09:10:56 -07:00
|
|
|
#nullable disable
|
2020-02-03 17:49:27 -07:00
|
|
|
#pragma warning disable CS1591
|
|
|
|
|
2019-01-13 13:02:23 -07:00
|
|
|
using System;
|
2021-03-07 18:16:35 -07:00
|
|
|
using System.Text.Json.Serialization;
|
2021-06-19 09:02:33 -07:00
|
|
|
using Jellyfin.Extensions.Json.Converters;
|
2018-12-27 16:27:57 -07:00
|
|
|
using MediaBrowser.Model.Configuration;
|
|
|
|
|
|
|
|
namespace MediaBrowser.Model.Entities
|
|
|
|
{
|
|
|
|
/// <summary>
|
2020-06-15 15:37:52 -07:00
|
|
|
/// Used to hold information about a user's list of configured virtual folders.
|
2018-12-27 16:27:57 -07:00
|
|
|
/// </summary>
|
|
|
|
public class VirtualFolderInfo
|
|
|
|
{
|
2021-02-20 15:13:04 -07:00
|
|
|
/// <summary>
|
|
|
|
/// Initializes a new instance of the <see cref="VirtualFolderInfo"/> class.
|
|
|
|
/// </summary>
|
|
|
|
public VirtualFolderInfo()
|
|
|
|
{
|
|
|
|
Locations = Array.Empty<string>();
|
|
|
|
}
|
|
|
|
|
2018-12-27 16:27:57 -07:00
|
|
|
/// <summary>
|
|
|
|
/// Gets or sets the name.
|
|
|
|
/// </summary>
|
|
|
|
/// <value>The name.</value>
|
|
|
|
public string Name { get; set; }
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// Gets or sets the locations.
|
|
|
|
/// </summary>
|
|
|
|
/// <value>The locations.</value>
|
|
|
|
public string[] Locations { get; set; }
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// Gets or sets the type of the collection.
|
|
|
|
/// </summary>
|
|
|
|
/// <value>The type of the collection.</value>
|
2021-03-07 18:16:35 -07:00
|
|
|
[JsonConverter(typeof(JsonLowerCaseConverter<CollectionTypeOptions?>))]
|
2021-02-24 03:57:04 -07:00
|
|
|
public CollectionTypeOptions? CollectionType { get; set; }
|
2018-12-27 16:27:57 -07:00
|
|
|
|
|
|
|
public LibraryOptions LibraryOptions { get; set; }
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// Gets or sets the item identifier.
|
|
|
|
/// </summary>
|
|
|
|
/// <value>The item identifier.</value>
|
|
|
|
public string ItemId { get; set; }
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// Gets or sets the primary image item identifier.
|
|
|
|
/// </summary>
|
|
|
|
/// <value>The primary image item identifier.</value>
|
|
|
|
public string PrimaryImageItemId { get; set; }
|
|
|
|
|
|
|
|
public double? RefreshProgress { get; set; }
|
2020-06-15 14:43:52 -07:00
|
|
|
|
2018-12-27 16:27:57 -07:00
|
|
|
public string RefreshStatus { get; set; }
|
|
|
|
}
|
|
|
|
}
|