mirror of
https://github.com/Cleanuparr/Cleanuparr.git
synced 2026-01-01 18:37:48 -05:00
22 lines
532 B
C#
22 lines
532 B
C#
using Cleanuparr.Domain.Enums;
|
|
|
|
namespace Cleanuparr.Infrastructure.Models;
|
|
|
|
public class IntervalGap
|
|
{
|
|
public TorrentPrivacyType PrivacyType { get; set; }
|
|
public double Start { get; set; }
|
|
public double End { get; set; }
|
|
|
|
public string GetPrivacyTypeDisplayName()
|
|
{
|
|
return PrivacyType switch
|
|
{
|
|
TorrentPrivacyType.Public => "Public",
|
|
TorrentPrivacyType.Private => "Private",
|
|
TorrentPrivacyType.Both => "Both",
|
|
_ => "Unknown"
|
|
};
|
|
}
|
|
}
|