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

27 lines
799 B
C#
Executable File

using System.Collections.Generic;
using System.Collections.ObjectModel;
using Microsoft.Extensions.Options;
namespace PodNoms.Api.Models
{
public class Podcast : BaseModel
{
public int Id { get; set; }
public string Uid { get; set; }
public User User { get; set; }
public string Title { get; set; }
public string Description { get; set; }
public string Slug { get; set; }
public string ImageUrl { get; set; }
public List<PodcastEntry> PodcastEntries { get; set; }
public Podcast()
{
PodcastEntries = new List<PodcastEntry>();
}
public string GetImageUrl(string cdnUrl, string containerName)
{
return $"{cdnUrl}{containerName}/{this.ImageUrl}";
}
}
}