2020-02-04 00:49:27 +00:00
|
|
|
#pragma warning disable CS1591
|
|
|
|
|
2019-01-13 20:02:23 +00:00
|
|
|
using System;
|
2018-12-27 23:27:57 +00:00
|
|
|
|
|
|
|
namespace MediaBrowser.Model.Entities
|
|
|
|
{
|
|
|
|
/// <summary>
|
2020-04-05 16:10:56 +00:00
|
|
|
/// Class LibraryUpdateInfo.
|
2018-12-27 23:27:57 +00:00
|
|
|
/// </summary>
|
|
|
|
public class LibraryUpdateInfo
|
|
|
|
{
|
2020-04-05 16:10:56 +00:00
|
|
|
/// <summary>
|
|
|
|
/// Initializes a new instance of the <see cref="LibraryUpdateInfo"/> class.
|
|
|
|
/// </summary>
|
|
|
|
public LibraryUpdateInfo()
|
|
|
|
{
|
|
|
|
FoldersAddedTo = Array.Empty<string>();
|
|
|
|
FoldersRemovedFrom = Array.Empty<string>();
|
|
|
|
ItemsAdded = Array.Empty<string>();
|
|
|
|
ItemsRemoved = Array.Empty<string>();
|
|
|
|
ItemsUpdated = Array.Empty<string>();
|
|
|
|
CollectionFolders = Array.Empty<string>();
|
|
|
|
}
|
|
|
|
|
2018-12-27 23:27:57 +00:00
|
|
|
/// <summary>
|
|
|
|
/// Gets or sets the folders added to.
|
|
|
|
/// </summary>
|
|
|
|
/// <value>The folders added to.</value>
|
|
|
|
public string[] FoldersAddedTo { get; set; }
|
2020-04-05 16:10:56 +00:00
|
|
|
|
2018-12-27 23:27:57 +00:00
|
|
|
/// <summary>
|
|
|
|
/// Gets or sets the folders removed from.
|
|
|
|
/// </summary>
|
|
|
|
/// <value>The folders removed from.</value>
|
|
|
|
public string[] FoldersRemovedFrom { get; set; }
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// Gets or sets the items added.
|
|
|
|
/// </summary>
|
|
|
|
/// <value>The items added.</value>
|
|
|
|
public string[] ItemsAdded { get; set; }
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// Gets or sets the items removed.
|
|
|
|
/// </summary>
|
|
|
|
/// <value>The items removed.</value>
|
|
|
|
public string[] ItemsRemoved { get; set; }
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// Gets or sets the items updated.
|
|
|
|
/// </summary>
|
|
|
|
/// <value>The items updated.</value>
|
|
|
|
public string[] ItemsUpdated { get; set; }
|
|
|
|
|
|
|
|
public string[] CollectionFolders { get; set; }
|
|
|
|
|
2019-01-13 20:31:14 +00:00
|
|
|
public bool IsEmpty => FoldersAddedTo.Length == 0 && FoldersRemovedFrom.Length == 0 && ItemsAdded.Length == 0 && ItemsRemoved.Length == 0 && ItemsUpdated.Length == 0 && CollectionFolders.Length == 0;
|
2018-12-27 23:27:57 +00:00
|
|
|
}
|
|
|
|
}
|