mirror of
https://github.com/Radarr/Radarr.git
synced 2026-04-21 22:05:43 -04:00
Fixed: Replaced trakt with tvdb as data source
This commit is contained in:
@@ -0,0 +1,32 @@
|
||||
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);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user