00eb6c0d6f
* Added Media segment manager * Added "HasSegments" to MediaSourceInfo when requesting though baseitem * Fixed ordering of Media Segements * Added media segment API controller * Added .ConfigureAwait(false) on media segments manager * renamed MediaSegmentsController removed empty route * Added Model layer for Media Segments Fixed review comments Media segments * Updated media segment naming refactored api and manager usage * Added mediaSegment type filter * Fixed codesmell * Fixed naming and typos * Added EF Migration * Added Identity Generation for MediaSegments Made mediasegment filter optional * Fixed optional filter parameter * refactored segment namespace * Added SegmentProviderId to MediaSegment * Media segment comment indentation * Added MediaSegmentManager query notracking
43 lines
1.1 KiB
C#
43 lines
1.1 KiB
C#
using System;
|
|
using System.ComponentModel.DataAnnotations.Schema;
|
|
using Jellyfin.Data.Enums;
|
|
|
|
namespace Jellyfin.Data.Entities;
|
|
|
|
/// <summary>
|
|
/// An entity representing the metadata for a group of trickplay tiles.
|
|
/// </summary>
|
|
public class MediaSegment
|
|
{
|
|
/// <summary>
|
|
/// Gets or sets the id of the media segment.
|
|
/// </summary>
|
|
[DatabaseGenerated(DatabaseGeneratedOption.Identity)]
|
|
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>
|
|
public MediaSegmentType Type { get; set; }
|
|
|
|
/// <summary>
|
|
/// Gets or sets the end of the segment.
|
|
/// </summary>
|
|
public long EndTicks { get; set; }
|
|
|
|
/// <summary>
|
|
/// Gets or sets the start of the segment.
|
|
/// </summary>
|
|
public long StartTicks { get; set; }
|
|
|
|
/// <summary>
|
|
/// Gets or sets Id of the media segment provider this entry originates from.
|
|
/// </summary>
|
|
public required string SegmentProviderId { get; set; }
|
|
}
|