mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-03-16 23:26:22 +00:00
add LocalFileInfo.Id
This commit is contained in:
@@ -43,8 +43,8 @@ namespace MediaBrowser.Model.ApiClient
|
||||
/// Gets the API client.
|
||||
/// </summary>
|
||||
/// <param name="item">The item.</param>
|
||||
/// <returns>MediaBrowser.Model.ApiClient.IApiClient.</returns>
|
||||
IApiClient GetApiClient(BaseItemDto item);
|
||||
/// <returns>IApiClient.</returns>
|
||||
IApiClient GetApiClient(IHasServerId item);
|
||||
|
||||
/// <summary>
|
||||
/// Connects the specified cancellation token.
|
||||
|
||||
@@ -4,5 +4,10 @@ namespace MediaBrowser.Model.Configuration
|
||||
public class MetadataConfiguration
|
||||
{
|
||||
public bool UseFileCreationTimeForDateAdded { get; set; }
|
||||
|
||||
public MetadataConfiguration()
|
||||
{
|
||||
UseFileCreationTimeForDateAdded = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -88,6 +88,8 @@ namespace MediaBrowser.Model.Configuration
|
||||
|
||||
public AccessSchedule[] AccessSchedules { get; set; }
|
||||
|
||||
public bool EnableUserPreferenceAccess { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="UserConfiguration" /> class.
|
||||
/// </summary>
|
||||
@@ -112,6 +114,7 @@ namespace MediaBrowser.Model.Configuration
|
||||
SyncConnectImage = true;
|
||||
IncludeTrailersInSuggestions = true;
|
||||
EnableCinemaMode = true;
|
||||
EnableUserPreferenceAccess = true;
|
||||
|
||||
AccessSchedules = new AccessSchedule[] { };
|
||||
}
|
||||
|
||||
@@ -4,7 +4,7 @@ namespace MediaBrowser.Model.Devices
|
||||
public class LocalFileInfo
|
||||
{
|
||||
public string Name { get; set; }
|
||||
public string FullPath { get; set; }
|
||||
public string Id { get; set; }
|
||||
public string Album { get; set; }
|
||||
public string MimeType { get; set; }
|
||||
}
|
||||
|
||||
@@ -16,7 +16,7 @@ namespace MediaBrowser.Model.Dto
|
||||
/// This holds information about a BaseItem in a format that is convenient for the client.
|
||||
/// </summary>
|
||||
[DebuggerDisplay("Name = {Name}, ID = {Id}, Type = {Type}")]
|
||||
public class BaseItemDto : IHasProviderIds, IHasPropertyChangedEvent, IItemDto
|
||||
public class BaseItemDto : IHasProviderIds, IHasPropertyChangedEvent, IItemDto, IHasServerId
|
||||
{
|
||||
/// <summary>
|
||||
/// Gets or sets the name.
|
||||
@@ -24,6 +24,12 @@ namespace MediaBrowser.Model.Dto
|
||||
/// <value>The name.</value>
|
||||
public string Name { 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 id.
|
||||
/// </summary>
|
||||
|
||||
8
MediaBrowser.Model/Dto/IHasServerId.cs
Normal file
8
MediaBrowser.Model/Dto/IHasServerId.cs
Normal file
@@ -0,0 +1,8 @@
|
||||
|
||||
namespace MediaBrowser.Model.Dto
|
||||
{
|
||||
public interface IHasServerId
|
||||
{
|
||||
string ServerId { get; }
|
||||
}
|
||||
}
|
||||
@@ -12,7 +12,7 @@ namespace MediaBrowser.Model.Dto
|
||||
/// Class UserDto
|
||||
/// </summary>
|
||||
[DebuggerDisplay("Name = {Name}, ID = {Id}, HasPassword = {HasPassword}")]
|
||||
public class UserDto : IHasPropertyChangedEvent, IItemDto
|
||||
public class UserDto : IHasPropertyChangedEvent, IItemDto, IHasServerId
|
||||
{
|
||||
/// <summary>
|
||||
/// Gets or sets the name.
|
||||
@@ -20,6 +20,12 @@ namespace MediaBrowser.Model.Dto
|
||||
/// <value>The name.</value>
|
||||
public string Name { 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 name of the connect user.
|
||||
/// </summary>
|
||||
|
||||
@@ -121,6 +121,7 @@
|
||||
<Compile Include="Dlna\SubtitleDeliveryMethod.cs" />
|
||||
<Compile Include="Dlna\SubtitleStreamInfo.cs" />
|
||||
<Compile Include="Drawing\ImageOrientation.cs" />
|
||||
<Compile Include="Dto\IHasServerId.cs" />
|
||||
<Compile Include="Dto\MediaSourceType.cs" />
|
||||
<Compile Include="Dto\StreamOptions.cs" />
|
||||
<Compile Include="Dto\VideoStreamOptions.cs" />
|
||||
|
||||
Reference in New Issue
Block a user