Files
podnoms/server/Models/Playlist.cs
2018-05-11 19:17:06 +01:00

22 lines
821 B
C#

using System.Collections.Generic;
namespace PodNoms.Api.Models {
public class Playlist : BaseModel {
//TODO: Update this to use concrete model
public int PodcastId { get; set; }
public string SourceUrl { get; set; }
public Podcast Podcast { get; set; }
public List<PodcastEntry> PodcastEntries { get; set; }
public List<ParsedPlaylistItem> ParsedPlaylistItems { get; set; }
public Playlist() {
ParsedPlaylistItems = new List<ParsedPlaylistItem>();
}
}
public class ParsedPlaylistItem : BaseModel {
public string VideoId { get; set; }
public string VideoType { get; set; }
public bool IsProcessed { get; set; }
public int PlaylistId { get; set; }
public Playlist Playlist { get; set; }
}
}