After doing testing with a test project, re-organized code to new method of storing, as well as ensure that all Endpoint lambda's are separated out into functions. Large commit, will be testing.
23 lines
No EOL
875 B
C#
23 lines
No EOL
875 B
C#
using System.ComponentModel.DataAnnotations;
|
|
|
|
namespace FreeTubeSync.Model;
|
|
|
|
public class History
|
|
{
|
|
[Key]
|
|
public string _id { get; set; } = string.Empty;
|
|
public string videoId { get; set; } = string.Empty;
|
|
public string title { get; set; } = string.Empty;
|
|
public string author { get; set; } = string.Empty;
|
|
public string authorId { get; set; } = string.Empty;
|
|
public long published { get; set; }
|
|
public string description { get; set; } = string.Empty;
|
|
public long viewCount { get; set; }
|
|
public long lengthSeconds { get; set; }
|
|
public float watchProgress { get; set; }
|
|
public long timeWatched { get; set; }
|
|
public bool isLive { get; set; }
|
|
public string type { get; set; } = string.Empty;
|
|
public string lastViewedPlaylistType { get; set; } = string.Empty;
|
|
public string? lastViewedPlaylistItemId { get; set; }
|
|
} |