Add progress and complettion indication
🏗️ Build Plugin / build (push) Successful in 1m59s
🧪 Test Plugin / test (push) Successful in 56s
🚀 Release Plugin / build-and-release (push) Successful in 1m56s

This commit is contained in:
2025-12-14 11:11:26 +01:00
parent ba497924e9
commit c1f7981ed7
7 changed files with 421 additions and 2 deletions
@@ -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; }
}