2014-03-09 22:14:44 +00:00
|
|
|
|
using MediaBrowser.Controller.Entities;
|
2014-03-18 01:45:41 +00:00
|
|
|
|
using MediaBrowser.Model.Entities;
|
|
|
|
|
using System;
|
2014-03-09 22:14:44 +00:00
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
|
|
|
|
|
namespace MediaBrowser.Controller.Channels
|
|
|
|
|
{
|
2014-03-18 01:45:41 +00:00
|
|
|
|
public class ChannelItemInfo : IHasProviderIds
|
2014-03-09 22:14:44 +00:00
|
|
|
|
{
|
|
|
|
|
public string Name { get; set; }
|
|
|
|
|
|
|
|
|
|
public string Id { get; set; }
|
|
|
|
|
|
|
|
|
|
public ChannelItemType Type { get; set; }
|
|
|
|
|
|
|
|
|
|
public string OfficialRating { get; set; }
|
|
|
|
|
|
|
|
|
|
public string Overview { get; set; }
|
|
|
|
|
|
|
|
|
|
public List<string> Genres { get; set; }
|
2014-05-03 04:20:04 +00:00
|
|
|
|
public List<string> Studios { get; set; }
|
2014-03-09 22:14:44 +00:00
|
|
|
|
|
|
|
|
|
public List<PersonInfo> People { get; set; }
|
|
|
|
|
|
|
|
|
|
public float? CommunityRating { get; set; }
|
|
|
|
|
|
|
|
|
|
public long? RunTimeTicks { get; set; }
|
|
|
|
|
|
2014-03-18 01:45:41 +00:00
|
|
|
|
public bool IsInfiniteStream { get; set; }
|
2014-03-09 22:14:44 +00:00
|
|
|
|
|
|
|
|
|
public string ImageUrl { get; set; }
|
|
|
|
|
|
|
|
|
|
public ChannelMediaType MediaType { get; set; }
|
|
|
|
|
|
|
|
|
|
public ChannelMediaContentType ContentType { get; set; }
|
2014-03-18 01:45:41 +00:00
|
|
|
|
|
|
|
|
|
public Dictionary<string, string> ProviderIds { get; set; }
|
2014-03-18 17:05:57 +00:00
|
|
|
|
|
|
|
|
|
public DateTime? PremiereDate { get; set; }
|
|
|
|
|
public int? ProductionYear { get; set; }
|
|
|
|
|
|
2014-05-03 04:20:04 +00:00
|
|
|
|
public DateTime? DateCreated { get; set; }
|
|
|
|
|
|
|
|
|
|
public List<ChannelMediaInfo> MediaSources { get; set; }
|
|
|
|
|
|
2014-03-09 22:14:44 +00:00
|
|
|
|
public ChannelItemInfo()
|
|
|
|
|
{
|
2014-05-03 04:20:04 +00:00
|
|
|
|
MediaSources = new List<ChannelMediaInfo>();
|
2014-03-09 22:14:44 +00:00
|
|
|
|
Genres = new List<string>();
|
2014-05-03 04:20:04 +00:00
|
|
|
|
Studios = new List<string>();
|
2014-03-09 22:14:44 +00:00
|
|
|
|
People = new List<PersonInfo>();
|
2014-03-18 01:45:41 +00:00
|
|
|
|
ProviderIds = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase);
|
2014-03-09 22:14:44 +00:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public enum ChannelItemType
|
|
|
|
|
{
|
|
|
|
|
Media = 0,
|
|
|
|
|
|
|
|
|
|
Category = 1
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public enum ChannelMediaType
|
|
|
|
|
{
|
|
|
|
|
Audio = 0,
|
|
|
|
|
|
|
|
|
|
Video = 1
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public enum ChannelMediaContentType
|
|
|
|
|
{
|
|
|
|
|
Clip = 0,
|
|
|
|
|
|
|
|
|
|
Podcast = 1,
|
|
|
|
|
|
|
|
|
|
Trailer = 2,
|
|
|
|
|
|
|
|
|
|
Movie = 3,
|
|
|
|
|
|
2014-05-03 04:20:04 +00:00
|
|
|
|
Episode = 4,
|
|
|
|
|
|
|
|
|
|
Song = 5
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public class ChannelMediaInfo
|
|
|
|
|
{
|
|
|
|
|
public string Path { get; set; }
|
|
|
|
|
|
|
|
|
|
public Dictionary<string, string> RequiredHttpHeaders { get; set; }
|
|
|
|
|
|
2014-05-05 00:46:52 +00:00
|
|
|
|
public string Container { get; set; }
|
|
|
|
|
public string AudioCodec { get; set; }
|
|
|
|
|
public string VideoCodec { get; set; }
|
|
|
|
|
|
|
|
|
|
public int? AudioBitrate { get; set; }
|
|
|
|
|
public int? VideoBitrate { get; set; }
|
|
|
|
|
public int? Width { get; set; }
|
|
|
|
|
public int? Height { get; set; }
|
|
|
|
|
public int? AudioChannels { get; set; }
|
|
|
|
|
|
2014-05-03 04:20:04 +00:00
|
|
|
|
public ChannelMediaInfo()
|
|
|
|
|
{
|
|
|
|
|
RequiredHttpHeaders = new Dictionary<string, string>();
|
|
|
|
|
}
|
2014-03-09 22:14:44 +00:00
|
|
|
|
}
|
|
|
|
|
}
|