Files
podnoms/server/Models/PodcastEntry.cs
Fergal Moran 8d69c72b83 Merge Repos
2017-10-30 20:42:23 +00:00

30 lines
1015 B
C#
Executable File

using System.Runtime.Serialization;
namespace PodNoms.Api.Models {
public enum ProcessingStatus {
Accepted, //0
Downloading, //1
Processing, //2
Uploading, //3
Processed, //4
Failed //5
}
public class PodcastEntry : BaseModel {
public int Id { get; set; }
public string Uid { get; set; }
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; }
}
}