Update to 3.5.2 and .net core 2.1

This commit is contained in:
stefan
2018-09-12 19:26:21 +02:00
parent c32d865638
commit 48facb797e
1419 changed files with 27525 additions and 88927 deletions

View File

@@ -1,15 +0,0 @@
using System.Collections.Generic;
namespace MediaBrowser.Model.Sync
{
public class CompleteSyncJobInfo
{
public SyncJob Job { get; set; }
public SyncJobItem[] JobItems { get; set; }
public CompleteSyncJobInfo()
{
JobItems = new SyncJobItem[] { };
}
}
}

View File

@@ -1,9 +0,0 @@

namespace MediaBrowser.Model.Sync
{
public class DeviceFileInfo
{
public string Path { get; set; }
public string Name { get; set; }
}
}

View File

@@ -1,33 +0,0 @@
using MediaBrowser.Model.Entities;
namespace MediaBrowser.Model.Sync
{
public class ItemFileInfo
{
/// <summary>
/// Gets or sets the type.
/// </summary>
/// <value>The type.</value>
public ItemFileType Type { get; set; }
/// <summary>
/// Gets or sets the name.
/// </summary>
/// <value>The name.</value>
public string Name { get; set; }
/// <summary>
/// Gets or sets the path.
/// </summary>
/// <value>The path.</value>
public string Path { get; set; }
/// <summary>
/// Gets or sets the type of the image.
/// </summary>
/// <value>The type of the image.</value>
public ImageType? ImageType { get; set; }
/// <summary>
/// Gets or sets the index.
/// </summary>
/// <value>The index.</value>
public int Index { get; set; }
}
}

View File

@@ -1,19 +0,0 @@

namespace MediaBrowser.Model.Sync
{
public enum ItemFileType
{
/// <summary>
/// The media
/// </summary>
Media = 0,
/// <summary>
/// The image
/// </summary>
Image = 1,
/// <summary>
/// The subtitles
/// </summary>
Subtitles = 2
}
}

View File

@@ -1,60 +0,0 @@
using MediaBrowser.Model.Dto;
using System.Collections.Generic;
namespace MediaBrowser.Model.Sync
{
public class LocalItem
{
/// <summary>
/// Gets or sets the item.
/// </summary>
/// <value>The item.</value>
public BaseItemDto Item { get; set; }
/// <summary>
/// Gets or sets the local path.
/// </summary>
/// <value>The local path.</value>
public string LocalPath { get; set; }
/// <summary>
/// Gets or sets the server identifier.
/// </summary>
/// <value>The server identifier.</value>
public string ServerId { get; set; }
/// <summary>
/// Gets or sets the unique identifier.
/// </summary>
/// <value>The unique identifier.</value>
public string Id { get; set; }
/// <summary>
/// Gets or sets the file identifier.
/// </summary>
/// <value>The file identifier.</value>
public string FileId { 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 synchronize job item identifier.
/// </summary>
/// <value>The synchronize job item identifier.</value>
public string SyncJobItemId { get; set; }
/// <summary>
/// Gets or sets the user ids with access.
/// </summary>
/// <value>The user ids with access.</value>
public string[] UserIdsWithAccess { get; set; }
/// <summary>
/// Gets or sets the additional files.
/// </summary>
/// <value>The additional files.</value>
public string[] AdditionalFiles { get; set; }
public LocalItem()
{
AdditionalFiles = new string[] { };
UserIdsWithAccess = new string[] { };
}
}
}

View File

@@ -1,11 +0,0 @@

namespace MediaBrowser.Model.Sync
{
public class LocalItemInfo
{
public string ServerId { get; set; }
public string Id { get; set; }
public string Name { get; set; }
public string PrimaryImageTag { get; set; }
}
}

View File

@@ -1,19 +0,0 @@

namespace MediaBrowser.Model.Sync
{
public class LocalItemQuery
{
public string ServerId { get; set; }
public string AlbumArtistId { get; set; }
public string AlbumId { get; set; }
public string SeriesId { get; set; }
public string Type { get; set; }
public string MediaType { get; set; }
public string[] ExcludeTypes { get; set; }
public LocalItemQuery()
{
ExcludeTypes = new string[] { };
}
}
}

View File

@@ -1,19 +0,0 @@

namespace MediaBrowser.Model.Sync
{
public enum SyncCategory
{
/// <summary>
/// The latest
/// </summary>
Latest = 0,
/// <summary>
/// The next up
/// </summary>
NextUp = 1,
/// <summary>
/// The resume
/// </summary>
Resume = 2
}
}

View File

@@ -1,16 +0,0 @@

namespace MediaBrowser.Model.Sync
{
public class SyncDataRequest
{
public string[] LocalItemIds { get; set; }
public string[] SyncJobItemIds { get; set; }
public string TargetId { get; set; }
public SyncDataRequest()
{
LocalItemIds = new string[] { };
}
}
}

View File

@@ -1,13 +0,0 @@

namespace MediaBrowser.Model.Sync
{
public class SyncDataResponse
{
public string[] ItemIdsToRemove { get; set; }
public SyncDataResponse()
{
ItemIdsToRemove = new string[] { };
}
}
}

View File

@@ -1,36 +0,0 @@
using System.Collections.Generic;
namespace MediaBrowser.Model.Sync
{
public class SyncDialogOptions
{
/// <summary>
/// Gets or sets the targets.
/// </summary>
/// <value>The targets.</value>
public SyncTarget[] Targets { get; set; }
/// <summary>
/// Gets or sets the options.
/// </summary>
/// <value>The options.</value>
public SyncJobOption[] Options { get; set; }
/// <summary>
/// Gets or sets the quality options.
/// </summary>
/// <value>The quality options.</value>
public SyncQualityOption[] QualityOptions { get; set; }
/// <summary>
/// Gets or sets the profile options.
/// </summary>
/// <value>The profile options.</value>
public SyncProfileOption[] ProfileOptions { get; set; }
public SyncDialogOptions()
{
Targets = new SyncTarget[] { };
Options = new SyncJobOption[] { };
QualityOptions = new SyncQualityOption[] { };
ProfileOptions = new SyncProfileOption[] { };
}
}
}

View File

@@ -1,113 +0,0 @@
using System;
using System.Collections.Generic;
namespace MediaBrowser.Model.Sync
{
public class SyncJob
{
/// <summary>
/// Gets or sets the identifier.
/// </summary>
/// <value>The identifier.</value>
public string Id { get; set; }
/// <summary>
/// Gets or sets the device identifier.
/// </summary>
/// <value>The device identifier.</value>
public string TargetId { get; set; }
/// <summary>
/// Gets or sets the name of the target.
/// </summary>
/// <value>The name of the target.</value>
public string TargetName { get; set; }
/// <summary>
/// Gets or sets the quality.
/// </summary>
/// <value>The quality.</value>
public string Quality { get; set; }
/// <summary>
/// Gets or sets the bitrate.
/// </summary>
/// <value>The bitrate.</value>
public int? Bitrate { get; set; }
/// <summary>
/// Gets or sets the profile.
/// </summary>
/// <value>The profile.</value>
public string Profile { get; set; }
/// <summary>
/// Gets or sets the category.
/// </summary>
/// <value>The category.</value>
public SyncCategory? Category { get; set; }
/// <summary>
/// Gets or sets the parent identifier.
/// </summary>
/// <value>The parent identifier.</value>
public string ParentId { get; set; }
/// <summary>
/// Gets or sets the current progress.
/// </summary>
/// <value>The current progress.</value>
public double? Progress { get; set; }
/// <summary>
/// Gets or sets the name.
/// </summary>
/// <value>The name.</value>
public string Name { get; set; }
/// <summary>
/// Gets or sets the status.
/// </summary>
/// <value>The status.</value>
public SyncJobStatus Status { get; set; }
/// <summary>
/// Gets or sets the user identifier.
/// </summary>
/// <value>The user identifier.</value>
public string UserId { get; set; }
/// <summary>
/// Gets or sets a value indicating whether [unwatched only].
/// </summary>
/// <value><c>true</c> if [unwatched only]; otherwise, <c>false</c>.</value>
public bool UnwatchedOnly { get; set; }
/// <summary>
/// Gets or sets a value indicating whether [synchronize new content].
/// </summary>
/// <value><c>true</c> if [synchronize new content]; otherwise, <c>false</c>.</value>
public bool SyncNewContent { get; set; }
/// <summary>
/// Gets or sets the item limit.
/// </summary>
/// <value>The item limit.</value>
public int? ItemLimit { get; set; }
/// <summary>
/// Gets or sets the requested item ids.
/// </summary>
/// <value>The requested item ids.</value>
public string[] RequestedItemIds { get; set; }
/// <summary>
/// Gets or sets the date created.
/// </summary>
/// <value>The date created.</value>
public DateTime DateCreated { get; set; }
/// <summary>
/// Gets or sets the date last modified.
/// </summary>
/// <value>The date last modified.</value>
public DateTime DateLastModified { get; set; }
/// <summary>
/// Gets or sets the item count.
/// </summary>
/// <value>The item count.</value>
public int ItemCount { get; set; }
public string ParentName { get; set; }
public string PrimaryImageItemId { get; set; }
public string PrimaryImageTag { get; set; }
public SyncJob()
{
RequestedItemIds = new string[] { };
}
}
}

View File

@@ -1,15 +0,0 @@
using System.Collections.Generic;
namespace MediaBrowser.Model.Sync
{
public class SyncJobCreationResult
{
public SyncJob Job { get; set; }
public SyncJobItem[] JobItems { get; set; }
public SyncJobCreationResult()
{
JobItems = new SyncJobItem[] { };
}
}
}

View File

@@ -1,107 +0,0 @@
using System;
using System.Collections.Generic;
using MediaBrowser.Model.Dto;
namespace MediaBrowser.Model.Sync
{
public class SyncJobItem
{
/// <summary>
/// Gets or sets the identifier.
/// </summary>
/// <value>The identifier.</value>
public string Id { get; set; }
/// <summary>
/// Gets or sets the job identifier.
/// </summary>
/// <value>The job identifier.</value>
public string JobId { 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 name of the item.
/// </summary>
/// <value>The name of the item.</value>
public string ItemName { get; set; }
/// <summary>
/// Gets or sets the media source identifier.
/// </summary>
/// <value>The media source identifier.</value>
public string MediaSourceId { get; set; }
/// <summary>
/// Gets or sets the media source.
/// </summary>
/// <value>The media source.</value>
public MediaSourceInfo MediaSource { get; set; }
/// <summary>
/// Gets or sets the target identifier.
/// </summary>
/// <value>The target identifier.</value>
public string TargetId { get; set; }
/// <summary>
/// Gets or sets the output path.
/// </summary>
/// <value>The output path.</value>
public string OutputPath { get; set; }
/// <summary>
/// Gets or sets the status.
/// </summary>
/// <value>The status.</value>
public SyncJobItemStatus Status { get; set; }
/// <summary>
/// Gets or sets the current progress.
/// </summary>
/// <value>The current progress.</value>
public double? Progress { get; set; }
/// <summary>
/// Gets or sets the date created.
/// </summary>
/// <value>The date created.</value>
public DateTime DateCreated { get; set; }
/// <summary>
/// Gets or sets the primary image item identifier.
/// </summary>
/// <value>The primary image item identifier.</value>
public string PrimaryImageItemId { get; set; }
/// <summary>
/// Gets or sets the primary image tag.
/// </summary>
/// <value>The primary image tag.</value>
public string PrimaryImageTag { get; set; }
/// <summary>
/// Gets or sets the temporary path.
/// </summary>
/// <value>The temporary path.</value>
public string TemporaryPath { get; set; }
/// <summary>
/// Gets or sets the additional files.
/// </summary>
/// <value>The additional files.</value>
public ItemFileInfo[] AdditionalFiles { get; set; }
/// <summary>
/// Gets or sets the index of the job item.
/// </summary>
/// <value>The index of the job item.</value>
public int JobItemIndex { get; set; }
public long ItemDateModifiedTicks { get; set; }
public SyncJobItem()
{
AdditionalFiles = new ItemFileInfo[] { };
}
}
}

View File

@@ -1,47 +0,0 @@

namespace MediaBrowser.Model.Sync
{
public class SyncJobItemQuery
{
/// <summary>
/// Gets or sets the start index.
/// </summary>
/// <value>The start index.</value>
public int? StartIndex { get; set; }
/// <summary>
/// Gets or sets the limit.
/// </summary>
/// <value>The limit.</value>
public int? Limit { get; set; }
/// <summary>
/// Gets or sets the job identifier.
/// </summary>
/// <value>The job identifier.</value>
public string JobId { 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 target identifier.
/// </summary>
/// <value>The target identifier.</value>
public string TargetId { get; set; }
/// <summary>
/// Gets or sets the status.
/// </summary>
/// <value>The status.</value>
public SyncJobItemStatus[] Statuses { get; set; }
/// <summary>
/// Gets or sets a value indicating whether [add metadata].
/// </summary>
/// <value><c>true</c> if [add metadata]; otherwise, <c>false</c>.</value>
public bool AddMetadata { get; set; }
public SyncJobItemQuery()
{
Statuses = new SyncJobItemStatus[] {};
}
}
}

View File

@@ -1,13 +0,0 @@

namespace MediaBrowser.Model.Sync
{
public enum SyncJobItemStatus
{
Queued = 0,
Converting = 1,
ReadyToTransfer = 2,
Transferring = 3,
Synced = 4,
Failed = 5
}
}

View File

@@ -1,44 +0,0 @@

namespace MediaBrowser.Model.Sync
{
public class SyncJobQuery
{
/// <summary>
/// Gets or sets the start index.
/// </summary>
/// <value>The start index.</value>
public int? StartIndex { get; set; }
/// <summary>
/// Gets or sets the limit.
/// </summary>
/// <value>The limit.</value>
public int? Limit { get; set; }
/// <summary>
/// Gets or sets the target identifier.
/// </summary>
/// <value>The target identifier.</value>
public string TargetId { get; set; }
/// <summary>
/// Gets or sets the user identifier.
/// </summary>
/// <value>The user identifier.</value>
public string UserId { get; set; }
public string ExcludeTargetIds { get; set; }
public string ItemId { get; set; }
/// <summary>
/// Gets or sets the status.
/// </summary>
/// <value>The status.</value>
public SyncJobStatus[] Statuses { get; set; }
/// <summary>
/// Gets or sets a value indicating whether [synchronize new content].
/// </summary>
/// <value><c>null</c> if [synchronize new content] contains no value, <c>true</c> if [synchronize new content]; otherwise, <c>false</c>.</value>
public bool? SyncNewContent { get; set; }
public SyncJobQuery()
{
Statuses = new SyncJobStatus[] { };
}
}
}

View File

@@ -1,74 +0,0 @@
using System.Collections.Generic;
namespace MediaBrowser.Model.Sync
{
public class SyncJobRequest
{
/// <summary>
/// Gets or sets the target identifier.
/// </summary>
/// <value>The target identifier.</value>
public string TargetId { get; set; }
/// <summary>
/// Gets or sets the item ids.
/// </summary>
/// <value>The item ids.</value>
public string[] ItemIds { get; set; }
/// <summary>
/// Gets or sets the category.
/// </summary>
/// <value>The category.</value>
public SyncCategory? Category { get; set; }
/// <summary>
/// Gets or sets the parent identifier.
/// </summary>
/// <value>The parent identifier.</value>
public string ParentId { get; set; }
/// <summary>
/// Gets or sets the quality.
/// </summary>
/// <value>The quality.</value>
public string Quality { get; set; }
/// <summary>
/// Gets or sets the profile.
/// </summary>
/// <value>The profile.</value>
public string Profile { get; set; }
/// <summary>
/// Gets or sets the name.
/// </summary>
/// <value>The name.</value>
public string Name { get; set; }
/// <summary>
/// Gets or sets the user identifier.
/// </summary>
/// <value>The user identifier.</value>
public string UserId { get; set; }
/// <summary>
/// Gets or sets a value indicating whether [unwatched only].
/// </summary>
/// <value><c>true</c> if [unwatched only]; otherwise, <c>false</c>.</value>
public bool UnwatchedOnly { get; set; }
/// <summary>
/// Gets or sets a value indicating whether [synchronize new content].
/// </summary>
/// <value><c>true</c> if [synchronize new content]; otherwise, <c>false</c>.</value>
public bool SyncNewContent { get; set; }
/// <summary>
/// Gets or sets the limit.
/// </summary>
/// <value>The limit.</value>
public int? ItemLimit { get; set; }
/// <summary>
/// Gets or sets the bitrate.
/// </summary>
/// <value>The bitrate.</value>
public int? Bitrate { get; set; }
public SyncJobRequest()
{
ItemIds = new string[] { };
SyncNewContent = true;
}
}
}

View File

@@ -1,14 +0,0 @@

namespace MediaBrowser.Model.Sync
{
public enum SyncJobStatus
{
Queued = 0,
Converting = 1,
ReadyToTransfer = 2,
Transferring = 3,
Completed = 4,
CompletedWithError = 5,
Failed = 6
}
}

View File

@@ -1,16 +0,0 @@

namespace MediaBrowser.Model.Sync
{
public class SyncOptions
{
public string TemporaryPath { get; set; }
public long UploadSpeedLimitBytes { get; set; }
public int TranscodingCpuCoreLimit { get; set; }
public bool EnableFullSpeedTranscoding { get; set; }
public SyncOptions()
{
TranscodingCpuCoreLimit = 1;
}
}
}

View File

@@ -1,13 +0,0 @@

namespace MediaBrowser.Model.Sync
{
public enum SyncJobOption
{
Name = 0,
Quality = 1,
UnwatchedOnly = 2,
SyncNewContent = 3,
ItemLimit = 4,
Profile = 5
}
}

View File

@@ -1,37 +0,0 @@

namespace MediaBrowser.Model.Sync
{
public class SyncProfileOption
{
/// <summary>
/// Gets or sets the name.
/// </summary>
/// <value>The name.</value>
public string Name { get; set; }
/// <summary>
/// Gets or sets the description.
/// </summary>
/// <value>The description.</value>
public string Description { get; set; }
/// <summary>
/// Gets or sets the identifier.
/// </summary>
/// <value>The identifier.</value>
public string Id { get; set; }
/// <summary>
/// Gets or sets a value indicating whether this instance is default.
/// </summary>
/// <value><c>true</c> if this instance is default; otherwise, <c>false</c>.</value>
public bool IsDefault { get; set; }
/// <summary>
/// Gets or sets a value indicating whether [enable quality options].
/// </summary>
/// <value><c>true</c> if [enable quality options]; otherwise, <c>false</c>.</value>
public bool EnableQualityOptions { get; set; }
public SyncProfileOption()
{
EnableQualityOptions = true;
}
}
}

View File

@@ -1,32 +0,0 @@

namespace MediaBrowser.Model.Sync
{
public class SyncQualityOption
{
/// <summary>
/// Gets or sets the name.
/// </summary>
/// <value>The name.</value>
public string Name { get; set; }
/// <summary>
/// Gets or sets the description.
/// </summary>
/// <value>The description.</value>
public string Description { get; set; }
/// <summary>
/// Gets or sets the identifier.
/// </summary>
/// <value>The identifier.</value>
public string Id { get; set; }
/// <summary>
/// Gets or sets a value indicating whether this instance is default.
/// </summary>
/// <value><c>true</c> if this instance is default; otherwise, <c>false</c>.</value>
public bool IsDefault { get; set; }
/// <summary>
/// Gets or sets a value indicating whether this instance is original quality.
/// </summary>
/// <value><c>true</c> if this instance is original quality; otherwise, <c>false</c>.</value>
public bool IsOriginalQuality { get; set; }
}
}

View File

@@ -1,17 +0,0 @@

namespace MediaBrowser.Model.Sync
{
public class SyncTarget
{
/// <summary>
/// Gets or sets the name.
/// </summary>
/// <value>The name.</value>
public string Name { get; set; }
/// <summary>
/// Gets or sets the identifier.
/// </summary>
/// <value>The identifier.</value>
public string Id { get; set; }
}
}

View File

@@ -1,60 +0,0 @@
using MediaBrowser.Model.Dto;
using System;
using System.Collections.Generic;
namespace MediaBrowser.Model.Sync
{
public class SyncedItem
{
/// <summary>
/// Gets or sets the server identifier.
/// </summary>
/// <value>The server identifier.</value>
public string ServerId { get; set; }
/// <summary>
/// Gets or sets the synchronize job identifier.
/// </summary>
/// <value>The synchronize job identifier.</value>
public string SyncJobId { get; set; }
/// <summary>
/// Gets or sets the name of the synchronize job.
/// </summary>
/// <value>The name of the synchronize job.</value>
public string SyncJobName { get; set; }
/// <summary>
/// Gets or sets the synchronize job date created.
/// </summary>
/// <value>The synchronize job date created.</value>
public DateTime SyncJobDateCreated { get; set; }
/// <summary>
/// Gets or sets the synchronize job item identifier.
/// </summary>
/// <value>The synchronize job item identifier.</value>
public string SyncJobItemId { get; set; }
/// <summary>
/// Gets or sets the name of the original file.
/// </summary>
/// <value>The name of the original file.</value>
public string OriginalFileName { get; set; }
/// <summary>
/// Gets or sets the item.
/// </summary>
/// <value>The item.</value>
public BaseItemDto Item { get; set; }
/// <summary>
/// Gets or sets the user identifier.
/// </summary>
/// <value>The user identifier.</value>
public string UserId { get; set; }
/// <summary>
/// Gets or sets the additional files.
/// </summary>
/// <value>The additional files.</value>
public ItemFileInfo[] AdditionalFiles { get; set; }
public SyncedItem()
{
AdditionalFiles = new ItemFileInfo[] { };
}
}
}