Files
podnoms/server/Models/PodcastEntry.cs
Fergal Moran 12705b6a5a Re-scaffold db
2018-05-12 16:34:28 +01:00

32 lines
965 B
C#

using System.Runtime.Serialization;
namespace PodNoms.Api.Models {
public enum ProcessingStatus {
Accepted, //0
Downloading, //1
Processing, //2
Uploading, //3
Processed, //4
Failed, //5
Deferred //6
}
public class PodcastEntry : BaseEntity {
public string Author { get; set; }
public string Title { get; set; }
public string Description { get; set; }
public string SourceUrl { get; set; }
public string AudioUrl { get; set; }
public float AudioLength { get; set; }
public long AudioFileSize { get; set; }
public string ImageUrl { get; set; }
public string ProcessingPayload { get; set; }
public ProcessingStatus ProcessingStatus { get; set; } = ProcessingStatus.Accepted;
public bool Processed { get; set; }
public int PodcastId { get; set; }
public Podcast Podcast { get; set; }
}
}