Created Syncer Generic Class to handle Monitoring, and Syncing between local database, and remote REST server. Temporarily changed Program.cs from an Avalonia UI app, to a Console App for testing and debugging purposes.
26 lines
No EOL
1 KiB
C#
26 lines
No EOL
1 KiB
C#
using System.Diagnostics.CodeAnalysis;
|
|
|
|
namespace FreeTubeSyncer.Models.DatabaseModels;
|
|
|
|
[SuppressMessage("ReSharper", "InconsistentNaming")]
|
|
public class History : IDataModel
|
|
{
|
|
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; }
|
|
|
|
public string Id() => _id;
|
|
public bool EqualId(string oid) => _id == oid;
|
|
} |