Add progress and complettion indication
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
namespace Jellyfin.Plugin.Jellypod.Api.Models;
|
||||
|
||||
/// <summary>
|
||||
/// Request to update playback progress.
|
||||
/// </summary>
|
||||
public class PlaybackProgressRequest
|
||||
{
|
||||
/// <summary>
|
||||
/// Gets or sets the playback position in ticks.
|
||||
/// </summary>
|
||||
public long PositionTicks { get; set; }
|
||||
}
|
||||
@@ -0,0 +1,29 @@
|
||||
using System;
|
||||
|
||||
namespace Jellyfin.Plugin.Jellypod.Api.Models;
|
||||
|
||||
/// <summary>
|
||||
/// Response containing playback progress info.
|
||||
/// </summary>
|
||||
public class PlaybackProgressResponse
|
||||
{
|
||||
/// <summary>
|
||||
/// Gets or sets the playback position in ticks.
|
||||
/// </summary>
|
||||
public long PositionTicks { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets a value indicating whether the episode has been played.
|
||||
/// </summary>
|
||||
public bool IsPlayed { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the date the episode was last played.
|
||||
/// </summary>
|
||||
public DateTime? LastPlayedDate { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the number of times the episode has been played.
|
||||
/// </summary>
|
||||
public int PlayCount { get; set; }
|
||||
}
|
||||
Reference in New Issue
Block a user