63 lines
953 B
C#
63 lines
953 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.ComponentModel.DataAnnotations;
|
|
using System.Text;
|
|
|
|
namespace WinWARP.Core.Models.Entities;
|
|
|
|
public class Subscription
|
|
{
|
|
[Key]
|
|
public int Id
|
|
{
|
|
get; set;
|
|
}
|
|
|
|
[Required]
|
|
[StringLength(100)]
|
|
public string Link
|
|
{
|
|
get; set;
|
|
}
|
|
|
|
[StringLength(100)]
|
|
public string WebPage
|
|
{
|
|
get; set;
|
|
} = string.Empty;
|
|
|
|
[StringLength(100)]
|
|
public string DefaultTitle
|
|
{
|
|
get; set;
|
|
} = string.Empty;
|
|
|
|
public int DefaultUpdateInterval
|
|
{
|
|
get; set;
|
|
} = 1;
|
|
|
|
[StringLength(100)]
|
|
public string Title
|
|
{
|
|
get; set;
|
|
} = string.Empty;
|
|
|
|
public int UpdateInterval
|
|
{
|
|
get; set;
|
|
} = 1;
|
|
|
|
[StringLength(100)]
|
|
public string SupportURL
|
|
{
|
|
get; set;
|
|
} = string.Empty;
|
|
|
|
|
|
public List<SubscriptionServer> Servers
|
|
{
|
|
get; set;
|
|
} = [];
|
|
}
|