Ombi/PlexRequests.Store/RequestedModel.cs
tidusjar 0942bfcbcc Some error handling and ensure we are an admin to delete requests.
Also started on the approval of everything
2016-03-08 14:26:26 +00:00

42 lines
1.1 KiB
C#

using System;
using System.Security.Cryptography;
using Dapper.Contrib.Extensions;
namespace PlexRequests.Store
{
[Table("Requested")]
public class RequestedModel : Entity
{
// ReSharper disable once IdentifierTypo
public int ProviderId { get; set; }
public string ImdbId { get; set; }
public string Overview { get; set; }
public string Title { get; set; }
public string PosterPath { get; set; }
public DateTime ReleaseDate { get; set; }
public RequestType Type { get; set; }
public string Status { get; set; }
public bool Approved { get; set; }
public string RequestedBy { get; set; }
public DateTime RequestedDate { get; set; }
public bool Available { get; set; }
public IssueState Issues { get; set; }
public string OtherMessage { get; set; }
}
public enum RequestType
{
Movie,
TvShow
}
public enum IssueState
{
WrongAudio,
NoSubtitles,
WrongContent,
PlaybackIssues,
Other
}
}