repo creation with initial code after cloning public repo
This commit is contained in:
@@ -0,0 +1,37 @@
|
||||
using System;
|
||||
using System.ComponentModel;
|
||||
using Jellyfin.Database.Implementations.Enums;
|
||||
|
||||
namespace MediaBrowser.Model.MediaSegments;
|
||||
|
||||
/// <summary>
|
||||
/// Api model for MediaSegment's.
|
||||
/// </summary>
|
||||
public class MediaSegmentDto
|
||||
{
|
||||
/// <summary>
|
||||
/// Gets or sets the id of the media segment.
|
||||
/// </summary>
|
||||
public Guid Id { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the id of the associated item.
|
||||
/// </summary>
|
||||
public Guid ItemId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the type of content this segment defines.
|
||||
/// </summary>
|
||||
[DefaultValue(MediaSegmentType.Unknown)]
|
||||
public MediaSegmentType Type { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the start of the segment.
|
||||
/// </summary>
|
||||
public long StartTicks { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the end of the segment.
|
||||
/// </summary>
|
||||
public long EndTicks { get; set; }
|
||||
}
|
||||
@@ -0,0 +1,22 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using Jellyfin.Database.Implementations.Entities;
|
||||
using MediaBrowser.Model.MediaSegments;
|
||||
|
||||
namespace MediaBrowser.Model;
|
||||
|
||||
/// <summary>
|
||||
/// Model containing the arguments for enumerating the requested media item.
|
||||
/// </summary>
|
||||
public record MediaSegmentGenerationRequest
|
||||
{
|
||||
/// <summary>
|
||||
/// Gets the Id to the BaseItem the segments should be extracted from.
|
||||
/// </summary>
|
||||
public Guid ItemId { get; init; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets existing media segments generated on an earlier scan by this provider.
|
||||
/// </summary>
|
||||
public required IReadOnlyList<MediaSegmentDto> ExistingSegments { get; init; }
|
||||
}
|
||||
Reference in New Issue
Block a user