mirror of
https://github.com/Ombi-app/Ombi.git
synced 2025-07-15 01:32:55 -07:00
More work on the calendar, including unit tests
This commit is contained in:
parent
9a267465a7
commit
7fdbc10ccc
8 changed files with 344 additions and 37 deletions
|
@ -1,4 +1,6 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using Ombi.Store.Entities;
|
||||
|
||||
namespace Ombi.Core.Models.Search.V2
|
||||
{
|
||||
|
@ -6,5 +8,32 @@ namespace Ombi.Core.Models.Search.V2
|
|||
{
|
||||
public string Title { get; set; }
|
||||
public DateTime Start { get; set; }
|
||||
public string BackgroundColor { get; set; }
|
||||
public RequestType Type { get; set; }
|
||||
public List<ExtraParams> ExtraParams { get; set; }
|
||||
|
||||
public string BorderColor
|
||||
{
|
||||
get
|
||||
{
|
||||
switch (Type)
|
||||
{
|
||||
case RequestType.TvShow:
|
||||
return "#ff0000";
|
||||
case RequestType.Movie:
|
||||
return "#0d5a3e";
|
||||
case RequestType.Album:
|
||||
return "#797979";
|
||||
default:
|
||||
throw new ArgumentOutOfRangeException();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public class ExtraParams
|
||||
{
|
||||
public int ProviderId { get; set; }
|
||||
public string Overview { get; set; }
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue