19 lines
No EOL
461 B
C#
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;
|
|
}
|
|
} |