Files
WinWARP/WinWARP.Core/Models/Entities/Subscription.cs
T

83 lines
1.2 KiB
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;
} = [];
public long Upload
{
get; set;
} = 0;
public long Download
{
get; set;
} = 0;
public long Total
{
get; set;
} = 0;
public DateTime ExpireDate
{
get; set;
} = DateTime.MaxValue;
}