mirror of
https://github.com/Readarr/Readarr
synced 2025-12-30 04:06:53 +01:00
32 lines
No EOL
728 B
C#
32 lines
No EOL
728 B
C#
using System;
|
|
|
|
namespace TVDBSharp.Models.Enums
|
|
{
|
|
public enum Interval
|
|
{
|
|
Day,
|
|
Week,
|
|
Month,
|
|
All
|
|
}
|
|
|
|
public static class IntervalHelpers
|
|
{
|
|
public static string Print(Interval interval)
|
|
{
|
|
switch (interval)
|
|
{
|
|
case Interval.Day:
|
|
return "day";
|
|
case Interval.Week:
|
|
return "week";
|
|
case Interval.Month:
|
|
return "month";
|
|
case Interval.All:
|
|
return "all";
|
|
default:
|
|
throw new ArgumentException("Unsupported interval enum: " + interval);
|
|
}
|
|
}
|
|
}
|
|
} |