mirror of
https://github.com/Radarr/Radarr.git
synced 2026-03-30 18:25:57 -04:00
32 lines
728 B
C#
32 lines
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);
|
|
}
|
|
}
|
|
}
|
|
} |