Merge pull request #3235 from Bond-009/build

Fix build
This commit is contained in:
Vasily 2020-06-03 15:21:38 +03:00 committed by GitHub
commit 73cc214bf2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
11 changed files with 12 additions and 74 deletions

View File

@ -144,6 +144,7 @@ namespace Emby.Server.Implementations.Library
/// <param name="userviewManagerFactory">The userview manager.</param> /// <param name="userviewManagerFactory">The userview manager.</param>
/// <param name="mediaEncoder">The media encoder.</param> /// <param name="mediaEncoder">The media encoder.</param>
/// <param name="itemRepository">The item repository.</param> /// <param name="itemRepository">The item repository.</param>
/// <param name="imageProcessor">The image processor.</param>
public LibraryManager( public LibraryManager(
IServerApplicationHost appHost, IServerApplicationHost appHost,
ILogger<LibraryManager> logger, ILogger<LibraryManager> logger,

View File

@ -1,4 +1,3 @@
using System.IO;
using MediaBrowser.Controller.Configuration; using MediaBrowser.Controller.Configuration;
using MediaBrowser.Controller.Devices; using MediaBrowser.Controller.Devices;
using MediaBrowser.Controller.Net; using MediaBrowser.Controller.Net;
@ -40,33 +39,6 @@ namespace MediaBrowser.Api.Devices
public string Id { get; set; } public string Id { get; set; }
} }
[Route("/Devices/CameraUploads", "GET", Summary = "Gets camera upload history for a device")]
[Authenticated]
public class GetCameraUploads : IReturn<ContentUploadHistory>
{
[ApiMember(Name = "Id", Description = "Device Id", IsRequired = true, DataType = "string", ParameterType = "query", Verb = "GET")]
public string DeviceId { get; set; }
}
[Route("/Devices/CameraUploads", "POST", Summary = "Uploads content")]
[Authenticated]
public class PostCameraUpload : IRequiresRequestStream, IReturnVoid
{
[ApiMember(Name = "DeviceId", Description = "Device Id", IsRequired = true, DataType = "string", ParameterType = "query", Verb = "POST")]
public string DeviceId { get; set; }
[ApiMember(Name = "Album", Description = "Album", IsRequired = true, DataType = "string", ParameterType = "query", Verb = "POST")]
public string Album { get; set; }
[ApiMember(Name = "Name", Description = "Name", IsRequired = true, DataType = "string", ParameterType = "query", Verb = "POST")]
public string Name { get; set; }
[ApiMember(Name = "Id", Description = "Id", IsRequired = true, DataType = "string", ParameterType = "query", Verb = "POST")]
public string Id { get; set; }
public Stream RequestStream { get; set; }
}
[Route("/Devices/Options", "POST", Summary = "Updates device options")] [Route("/Devices/Options", "POST", Summary = "Updates device options")]
[Authenticated(Roles = "Admin")] [Authenticated(Roles = "Admin")]
public class PostDeviceOptions : DeviceOptions, IReturnVoid public class PostDeviceOptions : DeviceOptions, IReturnVoid

View File

@ -1,10 +0,0 @@
using MediaBrowser.Model.Devices;
namespace MediaBrowser.Controller.Devices
{
public class CameraImageUploadInfo
{
public LocalFileInfo FileInfo { get; set; }
public DeviceInfo Device { get; set; }
}
}

View File

@ -1,19 +0,0 @@
#nullable disable
#pragma warning disable CS1591
using System;
namespace MediaBrowser.Model.Devices
{
public class ContentUploadHistory
{
public string DeviceId { get; set; }
public LocalFileInfo[] FilesUploaded { get; set; }
public ContentUploadHistory()
{
FilesUploaded = Array.Empty<LocalFileInfo>();
}
}
}

View File

@ -4,6 +4,6 @@ namespace MediaBrowser.Model.Devices
{ {
public class DeviceOptions public class DeviceOptions
{ {
public string CustomName { get; set; } public string? CustomName { get; set; }
} }
} }

View File

@ -1,16 +0,0 @@
#nullable disable
#pragma warning disable CS1591
namespace MediaBrowser.Model.Devices
{
public class LocalFileInfo
{
public string Name { get; set; }
public string Id { get; set; }
public string Album { get; set; }
public string MimeType { get; set; }
}
}

View File

@ -1,3 +1,5 @@
#nullable disable
using System.Collections.Generic; using System.Collections.Generic;
namespace MediaBrowser.Model.SyncPlay namespace MediaBrowser.Model.SyncPlay

View File

@ -1,3 +1,5 @@
#nullable disable
namespace MediaBrowser.Model.SyncPlay namespace MediaBrowser.Model.SyncPlay
{ {
/// <summary> /// <summary>

View File

@ -1,3 +1,5 @@
#nullable disable
namespace MediaBrowser.Model.SyncPlay namespace MediaBrowser.Model.SyncPlay
{ {
/// <summary> /// <summary>

View File

@ -1,3 +1,5 @@
#nullable disable
namespace MediaBrowser.Model.SyncPlay namespace MediaBrowser.Model.SyncPlay
{ {
/// <summary> /// <summary>

View File

@ -1,3 +1,5 @@
#nullable disable
using System; using System;
namespace MediaBrowser.Model.Updates namespace MediaBrowser.Model.Updates