From 21af6f43006ba62c8711da61d7f079456a98f219 Mon Sep 17 00:00:00 2001 From: Mario Steele Date: Mon, 21 Jul 2025 17:09:14 -0500 Subject: [PATCH] Update Video Added Update() method to model. --- FreeTubeSync/Model/Video.cs | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/FreeTubeSync/Model/Video.cs b/FreeTubeSync/Model/Video.cs index 0fd1c08..435b33b 100644 --- a/FreeTubeSync/Model/Video.cs +++ b/FreeTubeSync/Model/Video.cs @@ -16,4 +16,16 @@ public class Video public long timeAdded { get; set; } [Key] public string playlistItemId { get; set; } = string.Empty; public string type { get; set; } = string.Empty; + + public void Update(Video other) + { + videoId = other.videoId; + title = other.title; + author = other.author; + authorId = other.authorId; + lengthSeconds = other.lengthSeconds; + pubished = other.pubished; + timeAdded = other.timeAdded; + type = other.type; + } } \ No newline at end of file