Updated Playlist, SearchHistory and Video

Changed all ints to longs for field datatypes dealing with Unix
timestamp.
This commit is contained in:
Mario Steele 2025-07-19 12:41:50 -05:00
parent 2e27078443
commit a61362e9b5
3 changed files with 5 additions and 5 deletions

View file

@ -11,8 +11,8 @@ public class Playlist
public string playlistName { get; set; } = string.Empty;
public bool @protected { get; set; }
public List<Video> videos { get; set; } = [];
public int createdAt { get; set; }
public int lastUpdatedAt { get; set; }
public long createdAt { get; set; }
public long lastUpdatedAt { get; set; }
public void Update(Playlist other)
{

View file

@ -8,7 +8,7 @@ public class SearchHistory
{
[Key]
public string _id { get; set; } = string.Empty;
public int lastUpdatedAt { get; set; }
public long lastUpdatedAt { get; set; }
public void Update(SearchHistory other)
{

View file

@ -11,8 +11,8 @@ public class Video
public string author { get; set; } = string.Empty;
public string authorId { get; set; } = string.Empty;
public string lengthSeconds { get; set; } = string.Empty;
public int pubished { get; set; }
public int timeAdded { get; set; }
public string playlistItemId { get; set; } = string.Empty;
public long pubished { get; set; }
public long timeAdded { get; set; }
public string type { get; set; } = string.Empty;
}