freetubesync/FreeTubeSync/Model/Subscription.cs
Mario Steele 77c95a9525 Update Subscription
Added Update() Method to model.
2025-07-21 17:08:58 -05:00

19 lines
No EOL
461 B
C#

using System.ComponentModel.DataAnnotations;
using System.Diagnostics.CodeAnalysis;
namespace FreeTubeSync.Model;
[SuppressMessage("ReSharper", "InconsistentNaming")]
public class Subscription
{
[Key]
public required string id { get; set; }
public required string name { get; set; }
public string? thumbnail { get; set; }
public void Update(Subscription other)
{
name = other.name;
thumbnail = other.thumbnail;
}
}