More work on the calendar, including unit tests

This commit is contained in:
Jamie Rees 2019-04-01 14:47:20 +01:00
parent 9a267465a7
commit 7fdbc10ccc
8 changed files with 344 additions and 37 deletions

View file

@ -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; }
}
}