| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193 | 
							- using MediaBrowser.Model.Drawing;
 
- using MediaBrowser.Model.Entities;
 
- using MediaBrowser.Model.Extensions;
 
- using MediaBrowser.Model.Library;
 
- using MediaBrowser.Model.LiveTv;
 
- using MediaBrowser.Model.Providers;
 
- using MediaBrowser.Model.Sync;
 
- using System;
 
- using System.Collections.Generic;
 
- using System.ComponentModel;
 
- using System.Diagnostics;
 
- using System.Runtime.Serialization;
 
- namespace MediaBrowser.Model.Dto
 
- {
 
-     /// <summary>
 
-     /// This is strictly used as a data transfer object from the api layer.
 
-     /// This holds information about a BaseItem in a format that is convenient for the client.
 
-     /// </summary>
 
-     [DebuggerDisplay("Name = {Name}, ID = {Id}, Type = {Type}")]
 
-     public class BaseItemDto : IHasProviderIds, IHasPropertyChangedEvent, IItemDto, IHasServerId, IHasSyncInfo
 
-     {
 
-         /// <summary>
 
-         /// Gets or sets the name.
 
-         /// </summary>
 
-         /// <value>The name.</value>
 
-         public string Name { get; set; }
 
-         /// <summary>
 
-         /// Gets or sets the server identifier.
 
-         /// </summary>
 
-         /// <value>The server identifier.</value>
 
-         public string ServerId { get; set; }
 
-         /// <summary>
 
-         /// Gets or sets the id.
 
-         /// </summary>
 
-         /// <value>The id.</value>
 
-         public string Id { get; set; }
 
-         /// <summary>
 
-         /// Gets or sets the etag.
 
-         /// </summary>
 
-         /// <value>The etag.</value>
 
-         public string Etag { get; set; }
 
-         
 
-         /// <summary>
 
-         /// Gets or sets the playlist item identifier.
 
-         /// </summary>
 
-         /// <value>The playlist item identifier.</value>
 
-         public string PlaylistItemId { get; set; }
 
-         /// <summary>
 
-         /// Gets or sets the date created.
 
-         /// </summary>
 
-         /// <value>The date created.</value>
 
-         public DateTime? DateCreated { get; set; }
 
-         public DateTime? DateLastMediaAdded { get; set; }
 
-         public ExtraType? ExtraType { get; set; }
 
-         public int? AirsBeforeSeasonNumber { get; set; }
 
-         public int? AirsAfterSeasonNumber { get; set; }
 
-         public int? AirsBeforeEpisodeNumber { get; set; }
 
-         public int? AbsoluteEpisodeNumber { get; set; }
 
-         public bool? DisplaySpecialsWithSeasons { get; set; }
 
-         public bool? CanDelete { get; set; }
 
-         public bool? CanDownload { get; set; }
 
-         public bool? HasSubtitles { get; set; }
 
-         
 
-         public string PreferredMetadataLanguage { get; set; }
 
-         public string PreferredMetadataCountryCode { get; set; }
 
-         public string AwardSummary { get; set; }
 
-         public string ShareUrl { get; set; }
 
-         public float? Metascore { get; set; }
 
-         public bool? HasDynamicCategories { get; set; }
 
-         public int? AnimeSeriesIndex { get; set; }
 
-         /// <summary>
 
-         /// Gets or sets a value indicating whether [supports synchronize].
 
-         /// </summary>
 
-         /// <value><c>null</c> if [supports synchronize] contains no value, <c>true</c> if [supports synchronize]; otherwise, <c>false</c>.</value>
 
-         public bool? SupportsSync { get; set; }
 
-         /// <summary>
 
-         /// Gets or sets a value indicating whether this instance has synchronize job.
 
-         /// </summary>
 
-         /// <value><c>null</c> if [has synchronize job] contains no value, <c>true</c> if [has synchronize job]; otherwise, <c>false</c>.</value>
 
-         public bool? HasSyncJob { get; set; }
 
-         /// <summary>
 
-         /// Gets or sets a value indicating whether this instance is synced.
 
-         /// </summary>
 
-         /// <value><c>null</c> if [is synced] contains no value, <c>true</c> if [is synced]; otherwise, <c>false</c>.</value>
 
-         public bool? IsSynced { get; set; }
 
-         /// <summary>
 
-         /// Gets or sets the synchronize status.
 
-         /// </summary>
 
-         /// <value>The synchronize status.</value>
 
-         public SyncJobItemStatus? SyncStatus { get; set; }
 
-         /// <summary>
 
-         /// Gets or sets the synchronize percent.
 
-         /// </summary>
 
-         /// <value>The synchronize percent.</value>
 
-         public double? SyncPercent { get; set; }
 
-         /// <summary>
 
-         /// Gets or sets the DVD season number.
 
-         /// </summary>
 
-         /// <value>The DVD season number.</value>
 
-         public int? DvdSeasonNumber { get; set; }
 
-         /// <summary>
 
-         /// Gets or sets the DVD episode number.
 
-         /// </summary>
 
-         /// <value>The DVD episode number.</value>
 
-         public float? DvdEpisodeNumber { get; set; }
 
-         /// <summary>
 
-         /// Gets or sets the name of the sort.
 
-         /// </summary>
 
-         /// <value>The name of the sort.</value>
 
-         public string SortName { get; set; }
 
-         public string ForcedSortName { get; set; }
 
-         /// <summary>
 
-         /// Gets or sets the video3 D format.
 
-         /// </summary>
 
-         /// <value>The video3 D format.</value>
 
-         public Video3DFormat? Video3DFormat { get; set; }
 
-         /// <summary>
 
-         /// Gets or sets the premiere date.
 
-         /// </summary>
 
-         /// <value>The premiere date.</value>
 
-         public DateTime? PremiereDate { get; set; }
 
-         /// <summary>
 
-         /// Gets or sets the external urls.
 
-         /// </summary>
 
-         /// <value>The external urls.</value>
 
-         public ExternalUrl[] ExternalUrls { get; set; }
 
-         /// <summary>
 
-         /// Gets or sets the media versions.
 
-         /// </summary>
 
-         /// <value>The media versions.</value>
 
-         public List<MediaSourceInfo> MediaSources { get; set; }
 
-         /// <summary>
 
-         /// Gets or sets the critic rating.
 
-         /// </summary>
 
-         /// <value>The critic rating.</value>
 
-         public float? CriticRating { get; set; }
 
-         /// <summary>
 
-         /// Gets or sets the game system.
 
-         /// </summary>
 
-         /// <value>The game system.</value>
 
-         public string GameSystem { get; set; }
 
-         /// <summary>
 
-         /// Gets or sets the critic rating summary.
 
-         /// </summary>
 
-         /// <value>The critic rating summary.</value>
 
-         public string CriticRatingSummary { get; set; }
 
-         public List<string> MultiPartGameFiles { get; set; }
 
-         /// <summary>
 
-         /// Gets or sets the path.
 
-         /// </summary>
 
-         /// <value>The path.</value>
 
-         public string Path { get; set; }
 
-         /// <summary>
 
-         /// Gets or sets the official rating.
 
-         /// </summary>
 
-         /// <value>The official rating.</value>
 
-         public string OfficialRating { get; set; }
 
-         /// <summary>
 
-         /// Gets or sets the custom rating.
 
-         /// </summary>
 
-         /// <value>The custom rating.</value>
 
-         public string CustomRating { get; set; }
 
-         /// <summary>
 
-         /// Gets or sets the channel identifier.
 
-         /// </summary>
 
-         /// <value>The channel identifier.</value>
 
-         public string ChannelId { get; set; }
 
-         public string ChannelName { get; set; }
 
-         public string ServiceName { get; set; }
 
-         /// <summary>
 
-         /// Gets or sets the overview.
 
-         /// </summary>
 
-         /// <value>The overview.</value>
 
-         public string Overview { get; set; }
 
-         /// <summary>
 
-         /// Gets or sets the short overview.
 
-         /// </summary>
 
-         /// <value>The short overview.</value>
 
-         public string ShortOverview { get; set; }
 
-         /// <summary>
 
-         /// Gets or sets the name of the TMDB collection.
 
-         /// </summary>
 
-         /// <value>The name of the TMDB collection.</value>
 
-         public string TmdbCollectionName { get; set; }
 
-         /// <summary>
 
-         /// Gets or sets the taglines.
 
-         /// </summary>
 
-         /// <value>The taglines.</value>
 
-         public List<string> Taglines { get; set; }
 
-         /// <summary>
 
-         /// Gets or sets the genres.
 
-         /// </summary>
 
-         /// <value>The genres.</value>
 
-         public List<string> Genres { get; set; }
 
-         /// <summary>
 
-         /// Gets or sets the series genres.
 
-         /// </summary>
 
-         /// <value>The series genres.</value>
 
-         public List<string> SeriesGenres { get; set; }
 
-         /// <summary>
 
-         /// Gets or sets the community rating.
 
-         /// </summary>
 
-         /// <value>The community rating.</value>
 
-         public float? CommunityRating { get; set; }
 
-         /// <summary>
 
-         /// Gets or sets the vote count.
 
-         /// </summary>
 
-         /// <value>The vote count.</value>
 
-         public int? VoteCount { get; set; }
 
-         /// <summary>
 
-         /// Gets or sets the cumulative run time ticks.
 
-         /// </summary>
 
-         /// <value>The cumulative run time ticks.</value>
 
-         public long? CumulativeRunTimeTicks { get; set; }
 
-         /// <summary>
 
-         /// Gets or sets the original run time ticks.
 
-         /// </summary>
 
-         /// <value>The original run time ticks.</value>
 
-         public long? OriginalRunTimeTicks { get; set; }
 
-         /// <summary>
 
-         /// Gets or sets the run time ticks.
 
-         /// </summary>
 
-         /// <value>The run time ticks.</value>
 
-         public long? RunTimeTicks { get; set; }
 
-         /// <summary>
 
-         /// Gets or sets the play access.
 
-         /// </summary>
 
-         /// <value>The play access.</value>
 
-         public PlayAccess PlayAccess { get; set; }
 
-         /// <summary>
 
-         /// Gets or sets the aspect ratio.
 
-         /// </summary>
 
-         /// <value>The aspect ratio.</value>
 
-         public string AspectRatio { get; set; }
 
-         /// <summary>
 
-         /// Gets or sets the production year.
 
-         /// </summary>
 
-         /// <value>The production year.</value>
 
-         public int? ProductionYear { get; set; }
 
-         /// <summary>
 
-         /// Gets or sets the players supported by a game.
 
-         /// </summary>
 
-         /// <value>The players.</value>
 
-         public int? Players { get; set; }
 
-         /// <summary>
 
-         /// Gets or sets a value indicating whether this instance is place holder.
 
-         /// </summary>
 
-         /// <value><c>null</c> if [is place holder] contains no value, <c>true</c> if [is place holder]; otherwise, <c>false</c>.</value>
 
-         public bool? IsPlaceHolder { get; set; }
 
-         /// <summary>
 
-         /// Gets or sets the index number.
 
-         /// </summary>
 
-         /// <value>The index number.</value>
 
-         public int? IndexNumber { get; set; }
 
-         /// <summary>
 
-         /// Gets or sets the index number end.
 
-         /// </summary>
 
-         /// <value>The index number end.</value>
 
-         public int? IndexNumberEnd { get; set; }
 
-         /// <summary>
 
-         /// Gets or sets the parent index number.
 
-         /// </summary>
 
-         /// <value>The parent index number.</value>
 
-         public int? ParentIndexNumber { get; set; }
 
-         /// <summary>
 
-         /// Gets or sets the trailer urls.
 
-         /// </summary>
 
-         /// <value>The trailer urls.</value>
 
-         public List<MediaUrl> RemoteTrailers { get; set; }
 
-         /// <summary>
 
-         /// Gets or sets the soundtrack ids.
 
-         /// </summary>
 
-         /// <value>The soundtrack ids.</value>
 
-         public string[] SoundtrackIds { get; set; }
 
-         /// <summary>
 
-         /// Gets or sets the provider ids.
 
-         /// </summary>
 
-         /// <value>The provider ids.</value>
 
-         public Dictionary<string, string> ProviderIds { get; set; }
 
-         /// <summary>
 
-         /// Gets or sets a value indicating whether this instance is HD.
 
-         /// </summary>
 
-         /// <value><c>null</c> if [is HD] contains no value, <c>true</c> if [is HD]; otherwise, <c>false</c>.</value>
 
-         public bool? IsHD { get; set; }
 
-         /// <summary>
 
-         /// Gets or sets a value indicating whether this instance is folder.
 
-         /// </summary>
 
-         /// <value><c>true</c> if this instance is folder; otherwise, <c>false</c>.</value>
 
-         public bool IsFolder { get; set; }
 
-         /// <summary>
 
-         /// Gets or sets the parent id.
 
-         /// </summary>
 
-         /// <value>The parent id.</value>
 
-         public string ParentId { get; set; }
 
-         /// <summary>
 
-         /// Gets or sets the type.
 
-         /// </summary>
 
-         /// <value>The type.</value>
 
-         public string Type { get; set; }
 
-         /// <summary>
 
-         /// Gets or sets the people.
 
-         /// </summary>
 
-         /// <value>The people.</value>
 
-         public BaseItemPerson[] People { get; set; }
 
-         /// <summary>
 
-         /// Gets or sets the studios.
 
-         /// </summary>
 
-         /// <value>The studios.</value>
 
-         public StudioDto[] Studios { get; set; }
 
-         /// <summary>
 
-         /// If the item does not have a logo, this will hold the Id of the Parent that has one.
 
-         /// </summary>
 
-         /// <value>The parent logo item id.</value>
 
-         public string ParentLogoItemId { get; set; }
 
-         /// <summary>
 
-         /// If the item does not have any backdrops, this will hold the Id of the Parent that has one.
 
-         /// </summary>
 
-         /// <value>The parent backdrop item id.</value>
 
-         public string ParentBackdropItemId { get; set; }
 
-         /// <summary>
 
-         /// Gets or sets the parent backdrop image tags.
 
-         /// </summary>
 
-         /// <value>The parent backdrop image tags.</value>
 
-         public List<string> ParentBackdropImageTags { get; set; }
 
-         /// <summary>
 
-         /// Gets or sets the local trailer count.
 
-         /// </summary>
 
-         /// <value>The local trailer count.</value>
 
-         public int? LocalTrailerCount { get; set; }
 
-         /// <summary>
 
-         /// User data for this item based on the user it's being requested for
 
-         /// </summary>
 
-         /// <value>The user data.</value>
 
-         public UserItemDataDto UserData { get; set; }
 
-         /// <summary>
 
-         /// Gets or sets the season user data.
 
-         /// </summary>
 
-         /// <value>The season user data.</value>
 
-         public UserItemDataDto SeasonUserData { get; set; }
 
-         /// <summary>
 
-         /// Gets or sets the recursive item count.
 
-         /// </summary>
 
-         /// <value>The recursive item count.</value>
 
-         public int? RecursiveItemCount { get; set; }
 
-         /// <summary>
 
-         /// Gets or sets the child count.
 
-         /// </summary>
 
-         /// <value>The child count.</value>
 
-         public int? ChildCount { get; set; }
 
-         /// <summary>
 
-         /// Gets or sets the name of the series.
 
-         /// </summary>
 
-         /// <value>The name of the series.</value>
 
-         public string SeriesName { get; set; }
 
-         /// <summary>
 
-         /// Gets or sets the series id.
 
-         /// </summary>
 
-         /// <value>The series id.</value>
 
-         public string SeriesId { get; set; }
 
-         /// <summary>
 
-         /// Gets or sets the season identifier.
 
-         /// </summary>
 
-         /// <value>The season identifier.</value>
 
-         public string SeasonId { get; set; }
 
-         /// <summary>
 
-         /// Gets or sets the special feature count.
 
-         /// </summary>
 
-         /// <value>The special feature count.</value>
 
-         public int? SpecialFeatureCount { get; set; }
 
-         /// <summary>
 
-         /// Gets or sets the display preferences id.
 
-         /// </summary>
 
-         /// <value>The display preferences id.</value>
 
-         public string DisplayPreferencesId { get; set; }
 
-         /// <summary>
 
-         /// Gets or sets the status.
 
-         /// </summary>
 
-         /// <value>The status.</value>
 
-         public string Status { get; set; }
 
-         [IgnoreDataMember]
 
-         public SeriesStatus? SeriesStatus
 
-         {
 
-             get
 
-             {
 
-                 if (string.IsNullOrEmpty(Status))
 
-                 {
 
-                     return null;
 
-                 }
 
-                 return (SeriesStatus)Enum.Parse(typeof(SeriesStatus), Status, true);
 
-             }
 
-             set
 
-             {
 
-                 if (value == null)
 
-                 {
 
-                     Status = null;
 
-                 }
 
-                 else
 
-                 {
 
-                     Status = value.Value.ToString();
 
-                 }
 
-             }
 
-         }
 
-         [IgnoreDataMember]
 
-         public RecordingStatus? RecordingStatus
 
-         {
 
-             get
 
-             {
 
-                 if (string.IsNullOrEmpty(Status))
 
-                 {
 
-                     return null;
 
-                 }
 
-                 return (RecordingStatus)Enum.Parse(typeof(RecordingStatus), Status, true);
 
-             }
 
-             set
 
-             {
 
-                 if (value == null)
 
-                 {
 
-                     Status = null;
 
-                 }
 
-                 else
 
-                 {
 
-                     Status = value.Value.ToString();
 
-                 }
 
-             }
 
-         }
 
-         /// <summary>
 
-         /// Gets or sets the air time.
 
-         /// </summary>
 
-         /// <value>The air time.</value>
 
-         public string AirTime { get; set; }
 
-         /// <summary>
 
-         /// Gets or sets the air days.
 
-         /// </summary>
 
-         /// <value>The air days.</value>
 
-         public List<DayOfWeek> AirDays { get; set; }
 
-         /// <summary>
 
-         /// Gets or sets the index options.
 
-         /// </summary>
 
-         /// <value>The index options.</value>
 
-         public string[] IndexOptions { get; set; }
 
-         /// <summary>
 
-         /// Gets or sets the tags.
 
-         /// </summary>
 
-         /// <value>The tags.</value>
 
-         public List<string> Tags { get; set; }
 
-         /// <summary>
 
-         /// Gets or sets the keywords.
 
-         /// </summary>
 
-         /// <value>The keywords.</value>
 
-         public List<string> Keywords { get; set; }
 
-         /// <summary>
 
-         /// Gets or sets the primary image aspect ratio, after image enhancements.
 
-         /// </summary>
 
-         /// <value>The primary image aspect ratio.</value>
 
-         public double? PrimaryImageAspectRatio { get; set; }
 
-         /// <summary>
 
-         /// Gets or sets the artists.
 
-         /// </summary>
 
-         /// <value>The artists.</value>
 
-         public List<string> Artists { get; set; }
 
-         /// <summary>
 
-         /// Gets or sets the artist items.
 
-         /// </summary>
 
-         /// <value>The artist items.</value>
 
-         public List<NameIdPair> ArtistItems { get; set; }
 
-         /// <summary>
 
-         /// Gets or sets the album.
 
-         /// </summary>
 
-         /// <value>The album.</value>
 
-         public string Album { get; set; }
 
-         /// <summary>
 
-         /// Gets or sets the type of the collection.
 
-         /// </summary>
 
-         /// <value>The type of the collection.</value>
 
-         public string CollectionType { get; set; }
 
-         /// <summary>
 
-         /// Gets or sets the type of the original collection.
 
-         /// </summary>
 
-         /// <value>The type of the original collection.</value>
 
-         public string OriginalCollectionType { get; set; }
 
-         
 
-         /// <summary>
 
-         /// Gets or sets the display order.
 
-         /// </summary>
 
-         /// <value>The display order.</value>
 
-         public string DisplayOrder { get; set; }
 
-         /// <summary>
 
-         /// Gets or sets the album id.
 
-         /// </summary>
 
-         /// <value>The album id.</value>
 
-         public string AlbumId { get; set; }
 
-         /// <summary>
 
-         /// Gets or sets the album image tag.
 
-         /// </summary>
 
-         /// <value>The album image tag.</value>
 
-         public string AlbumPrimaryImageTag { get; set; }
 
-         /// <summary>
 
-         /// Gets or sets the series primary image tag.
 
-         /// </summary>
 
-         /// <value>The series primary image tag.</value>
 
-         public string SeriesPrimaryImageTag { get; set; }
 
-         /// <summary>
 
-         /// Gets or sets the album artist.
 
-         /// </summary>
 
-         /// <value>The album artist.</value>
 
-         public string AlbumArtist { get; set; }
 
-         /// <summary>
 
-         /// Gets or sets the album artists.
 
-         /// </summary>
 
-         /// <value>The album artists.</value>
 
-         public List<NameIdPair> AlbumArtists { get; set; }
 
-         /// <summary>
 
-         /// Gets or sets the name of the season.
 
-         /// </summary>
 
-         /// <value>The name of the season.</value>
 
-         public string SeasonName { get; set; }
 
-         /// <summary>
 
-         /// Gets or sets the media streams.
 
-         /// </summary>
 
-         /// <value>The media streams.</value>
 
-         public List<MediaStream> MediaStreams { get; set; }
 
-         /// <summary>
 
-         /// Gets or sets the type of the video.
 
-         /// </summary>
 
-         /// <value>The type of the video.</value>
 
-         public VideoType? VideoType { get; set; }
 
-         /// <summary>
 
-         /// Gets or sets the display type of the media.
 
-         /// </summary>
 
-         /// <value>The display type of the media.</value>
 
-         public string DisplayMediaType { get; set; }
 
-         /// <summary>
 
-         /// Gets or sets the part count.
 
-         /// </summary>
 
-         /// <value>The part count.</value>
 
-         public int? PartCount { get; set; }
 
-         public int? MediaSourceCount { get; set; }
 
-         /// <summary>
 
-         /// Determines whether the specified type is type.
 
-         /// </summary>
 
-         /// <param name="type">The type.</param>
 
-         /// <returns><c>true</c> if the specified type is type; otherwise, <c>false</c>.</returns>
 
-         public bool IsType(Type type)
 
-         {
 
-             return IsType(type.Name);
 
-         }
 
-         /// <summary>
 
-         /// Gets or sets a value indicating whether [supports playlists].
 
-         /// </summary>
 
-         /// <value><c>true</c> if [supports playlists]; otherwise, <c>false</c>.</value>
 
-         [IgnoreDataMember]
 
-         public bool SupportsPlaylists
 
-         {
 
-             get
 
-             {
 
-                 return RunTimeTicks.HasValue || IsFolder || IsGenre || IsMusicGenre || IsArtist;
 
-             }
 
-         }
 
-         /// <summary>
 
-         /// Determines whether the specified type is type.
 
-         /// </summary>
 
-         /// <param name="type">The type.</param>
 
-         /// <returns><c>true</c> if the specified type is type; otherwise, <c>false</c>.</returns>
 
-         public bool IsType(string type)
 
-         {
 
-             return StringHelper.EqualsIgnoreCase(Type, type);
 
-         }
 
-         /// <summary>
 
-         /// Gets or sets the image tags.
 
-         /// </summary>
 
-         /// <value>The image tags.</value>
 
-         public Dictionary<ImageType, string> ImageTags { get; set; }
 
-         /// <summary>
 
-         /// Gets or sets the backdrop image tags.
 
-         /// </summary>
 
-         /// <value>The backdrop image tags.</value>
 
-         public List<string> BackdropImageTags { get; set; }
 
-         /// <summary>
 
-         /// Gets or sets the screenshot image tags.
 
-         /// </summary>
 
-         /// <value>The screenshot image tags.</value>
 
-         public List<string> ScreenshotImageTags { get; set; }
 
-         /// <summary>
 
-         /// Gets or sets the parent logo image tag.
 
-         /// </summary>
 
-         /// <value>The parent logo image tag.</value>
 
-         public string ParentLogoImageTag { get; set; }
 
-         /// <summary>
 
-         /// If the item does not have a art, this will hold the Id of the Parent that has one.
 
-         /// </summary>
 
-         /// <value>The parent art item id.</value>
 
-         public string ParentArtItemId { get; set; }
 
-         /// <summary>
 
-         /// Gets or sets the parent art image tag.
 
-         /// </summary>
 
-         /// <value>The parent art image tag.</value>
 
-         public string ParentArtImageTag { get; set; }
 
-         /// <summary>
 
-         /// Gets or sets the series thumb image tag.
 
-         /// </summary>
 
-         /// <value>The series thumb image tag.</value>
 
-         public string SeriesThumbImageTag { get; set; }
 
-         /// <summary>
 
-         /// Gets or sets the series studio.
 
-         /// </summary>
 
-         /// <value>The series studio.</value>
 
-         public string SeriesStudio { get; set; }
 
-         /// <summary>
 
-         /// Gets or sets the parent thumb item id.
 
-         /// </summary>
 
-         /// <value>The parent thumb item id.</value>
 
-         public string ParentThumbItemId { get; set; }
 
-         /// <summary>
 
-         /// Gets or sets the parent thumb image tag.
 
-         /// </summary>
 
-         /// <value>The parent thumb image tag.</value>
 
-         public string ParentThumbImageTag { get; set; }
 
-         /// <summary>
 
-         /// Gets or sets the parent primary image item identifier.
 
-         /// </summary>
 
-         /// <value>The parent primary image item identifier.</value>
 
-         public string ParentPrimaryImageItemId { get; set; }
 
-         /// <summary>
 
-         /// Gets or sets the parent primary image tag.
 
-         /// </summary>
 
-         /// <value>The parent primary image tag.</value>
 
-         public string ParentPrimaryImageTag { get; set; }
 
-         /// <summary>
 
-         /// Gets or sets the chapters.
 
-         /// </summary>
 
-         /// <value>The chapters.</value>
 
-         public List<ChapterInfoDto> Chapters { get; set; }
 
-         /// <summary>
 
-         /// Gets or sets the type of the location.
 
-         /// </summary>
 
-         /// <value>The type of the location.</value>
 
-         public LocationType LocationType { get; set; }
 
-         /// <summary>
 
-         /// Gets or sets the type of the iso.
 
-         /// </summary>
 
-         /// <value>The type of the iso.</value>
 
-         public IsoType? IsoType { get; set; }
 
-         /// <summary>
 
-         /// Gets or sets the type of the media.
 
-         /// </summary>
 
-         /// <value>The type of the media.</value>
 
-         public string MediaType { get; set; }
 
-         /// <summary>
 
-         /// Gets or sets the end date.
 
-         /// </summary>
 
-         /// <value>The end date.</value>
 
-         public DateTime? EndDate { get; set; }
 
-         /// <summary>
 
-         /// Gets or sets the home page URL.
 
-         /// </summary>
 
-         /// <value>The home page URL.</value>
 
-         public string HomePageUrl { get; set; }
 
-         /// <summary>
 
-         /// Gets or sets the production locations.
 
-         /// </summary>
 
-         /// <value>The production locations.</value>
 
-         public List<string> ProductionLocations { get; set; }
 
-         /// <summary>
 
-         /// Gets or sets the budget.
 
-         /// </summary>
 
-         /// <value>The budget.</value>
 
-         public double? Budget { get; set; }
 
-         /// <summary>
 
-         /// Gets or sets the revenue.
 
-         /// </summary>
 
-         /// <value>The revenue.</value>
 
-         public double? Revenue { get; set; }
 
-         /// <summary>
 
-         /// Gets or sets the locked fields.
 
-         /// </summary>
 
-         /// <value>The locked fields.</value>
 
-         public List<MetadataFields> LockedFields { get; set; }
 
-         /// <summary>
 
-         /// Gets or sets the movie count.
 
-         /// </summary>
 
-         /// <value>The movie count.</value>
 
-         public int? MovieCount { get; set; }
 
-         /// <summary>
 
-         /// Gets or sets the series count.
 
-         /// </summary>
 
-         /// <value>The series count.</value>
 
-         public int? SeriesCount { get; set; }
 
-         /// <summary>
 
-         /// Gets or sets the episode count.
 
-         /// </summary>
 
-         /// <value>The episode count.</value>
 
-         public int? EpisodeCount { get; set; }
 
-         /// <summary>
 
-         /// Gets or sets the game count.
 
-         /// </summary>
 
-         /// <value>The game count.</value>
 
-         public int? GameCount { get; set; }
 
-         /// <summary>
 
-         /// Gets or sets the song count.
 
-         /// </summary>
 
-         /// <value>The song count.</value>
 
-         public int? SongCount { get; set; }
 
-         /// <summary>
 
-         /// Gets or sets the album count.
 
-         /// </summary>
 
-         /// <value>The album count.</value>
 
-         public int? AlbumCount { get; set; }
 
-         /// <summary>
 
-         /// Gets or sets the music video count.
 
-         /// </summary>
 
-         /// <value>The music video count.</value>
 
-         public int? MusicVideoCount { get; set; }
 
-         /// <summary>
 
-         /// Gets or sets a value indicating whether [enable internet providers].
 
-         /// </summary>
 
-         /// <value><c>true</c> if [enable internet providers]; otherwise, <c>false</c>.</value>
 
-         public bool? LockData { get; set; }
 
-         public int? Width { get; set; }
 
-         public int? Height { get; set; }
 
-         public string CameraMake { get; set; }
 
-         public string CameraModel { get; set; }
 
-         public string Software { get; set; }
 
-         public double? ExposureTime { get; set; }
 
-         public double? FocalLength { get; set; }
 
-         public ImageOrientation? ImageOrientation { get; set; }
 
-         public double? Aperture { get; set; }
 
-         public double? ShutterSpeed { get; set; }
 
-         public double? Latitude { get; set; }
 
-         public double? Longitude { get; set; }
 
-         public double? Altitude { get; set; }
 
-         public int? IsoSpeedRating { get; set; }
 
-         /// <summary>
 
-         /// Used by RecordingGroup
 
-         /// </summary>
 
-         public int? RecordingCount { get; set; }
 
-         /// <summary>
 
-         /// Gets or sets the series timer identifier.
 
-         /// </summary>
 
-         /// <value>The series timer identifier.</value>
 
-         public string SeriesTimerId { get; set; }
 
-         /// <summary>
 
-         /// Gets a value indicating whether this instance can resume.
 
-         /// </summary>
 
-         /// <value><c>true</c> if this instance can resume; otherwise, <c>false</c>.</value>
 
-         [IgnoreDataMember]
 
-         public bool CanResume
 
-         {
 
-             get { return UserData != null && UserData.PlaybackPositionTicks > 0; }
 
-         }
 
-         /// <summary>
 
-         /// Gets the resume position ticks.
 
-         /// </summary>
 
-         /// <value>The resume position ticks.</value>
 
-         [IgnoreDataMember]
 
-         public long ResumePositionTicks
 
-         {
 
-             get { return UserData == null ? 0 : UserData.PlaybackPositionTicks; }
 
-         }
 
-         /// <summary>
 
-         /// Gets the backdrop count.
 
-         /// </summary>
 
-         /// <value>The backdrop count.</value>
 
-         [IgnoreDataMember]
 
-         public int BackdropCount
 
-         {
 
-             get { return BackdropImageTags == null ? 0 : BackdropImageTags.Count; }
 
-         }
 
-         /// <summary>
 
-         /// Gets the screenshot count.
 
-         /// </summary>
 
-         /// <value>The screenshot count.</value>
 
-         [IgnoreDataMember]
 
-         public int ScreenshotCount
 
-         {
 
-             get { return ScreenshotImageTags == null ? 0 : ScreenshotImageTags.Count; }
 
-         }
 
-         /// <summary>
 
-         /// Gets a value indicating whether this instance has banner.
 
-         /// </summary>
 
-         /// <value><c>true</c> if this instance has banner; otherwise, <c>false</c>.</value>
 
-         [IgnoreDataMember]
 
-         public bool HasBanner
 
-         {
 
-             get { return ImageTags != null && ImageTags.ContainsKey(ImageType.Banner); }
 
-         }
 
-         /// <summary>
 
-         /// Gets a value indicating whether this instance has art.
 
-         /// </summary>
 
-         /// <value><c>true</c> if this instance has art; otherwise, <c>false</c>.</value>
 
-         [IgnoreDataMember]
 
-         public bool HasArtImage
 
-         {
 
-             get { return ImageTags != null && ImageTags.ContainsKey(ImageType.Art); }
 
-         }
 
-         /// <summary>
 
-         /// Gets a value indicating whether this instance has logo.
 
-         /// </summary>
 
-         /// <value><c>true</c> if this instance has logo; otherwise, <c>false</c>.</value>
 
-         [IgnoreDataMember]
 
-         public bool HasLogo
 
-         {
 
-             get { return ImageTags != null && ImageTags.ContainsKey(ImageType.Logo); }
 
-         }
 
-         /// <summary>
 
-         /// Gets a value indicating whether this instance has thumb.
 
-         /// </summary>
 
-         /// <value><c>true</c> if this instance has thumb; otherwise, <c>false</c>.</value>
 
-         [IgnoreDataMember]
 
-         public bool HasThumb
 
-         {
 
-             get { return ImageTags != null && ImageTags.ContainsKey(ImageType.Thumb); }
 
-         }
 
-         /// <summary>
 
-         /// Gets a value indicating whether this instance has primary image.
 
-         /// </summary>
 
-         /// <value><c>true</c> if this instance has primary image; otherwise, <c>false</c>.</value>
 
-         [IgnoreDataMember]
 
-         public bool HasPrimaryImage
 
-         {
 
-             get { return ImageTags != null && ImageTags.ContainsKey(ImageType.Primary); }
 
-         }
 
-         /// <summary>
 
-         /// Gets a value indicating whether this instance has disc image.
 
-         /// </summary>
 
-         /// <value><c>true</c> if this instance has disc image; otherwise, <c>false</c>.</value>
 
-         [IgnoreDataMember]
 
-         public bool HasDiscImage
 
-         {
 
-             get { return ImageTags != null && ImageTags.ContainsKey(ImageType.Disc); }
 
-         }
 
-         /// <summary>
 
-         /// Gets a value indicating whether this instance has box image.
 
-         /// </summary>
 
-         /// <value><c>true</c> if this instance has box image; otherwise, <c>false</c>.</value>
 
-         [IgnoreDataMember]
 
-         public bool HasBoxImage
 
-         {
 
-             get { return ImageTags != null && ImageTags.ContainsKey(ImageType.Box); }
 
-         }
 
-         /// <summary>
 
-         /// Gets a value indicating whether this instance has box image.
 
-         /// </summary>
 
-         /// <value><c>true</c> if this instance has box image; otherwise, <c>false</c>.</value>
 
-         [IgnoreDataMember]
 
-         public bool HasBoxRearImage
 
-         {
 
-             get { return ImageTags != null && ImageTags.ContainsKey(ImageType.BoxRear); }
 
-         }
 
-         /// <summary>
 
-         /// Gets a value indicating whether this instance has menu image.
 
-         /// </summary>
 
-         /// <value><c>true</c> if this instance has menu image; otherwise, <c>false</c>.</value>
 
-         [IgnoreDataMember]
 
-         public bool HasMenuImage
 
-         {
 
-             get { return ImageTags != null && ImageTags.ContainsKey(ImageType.Menu); }
 
-         }
 
-         /// <summary>
 
-         /// Gets a value indicating whether this instance is video.
 
-         /// </summary>
 
-         /// <value><c>true</c> if this instance is video; otherwise, <c>false</c>.</value>
 
-         [IgnoreDataMember]
 
-         public bool IsVideo
 
-         {
 
-             get { return StringHelper.EqualsIgnoreCase(MediaType, Entities.MediaType.Video); }
 
-         }
 
-         /// <summary>
 
-         /// Gets a value indicating whether this instance is audio.
 
-         /// </summary>
 
-         /// <value><c>true</c> if this instance is audio; otherwise, <c>false</c>.</value>
 
-         [IgnoreDataMember]
 
-         public bool IsAudio
 
-         {
 
-             get { return StringHelper.EqualsIgnoreCase(MediaType, Entities.MediaType.Audio); }
 
-         }
 
-         /// <summary>
 
-         /// Gets a value indicating whether this instance is game.
 
-         /// </summary>
 
-         /// <value><c>true</c> if this instance is game; otherwise, <c>false</c>.</value>
 
-         [IgnoreDataMember]
 
-         public bool IsGame
 
-         {
 
-             get { return StringHelper.EqualsIgnoreCase(MediaType, Entities.MediaType.Game); }
 
-         }
 
-         /// <summary>
 
-         /// Gets a value indicating whether this instance is person.
 
-         /// </summary>
 
-         /// <value><c>true</c> if this instance is person; otherwise, <c>false</c>.</value>
 
-         [IgnoreDataMember]
 
-         public bool IsPerson
 
-         {
 
-             get { return StringHelper.EqualsIgnoreCase(Type, "Person"); }
 
-         }
 
-         /// <summary>
 
-         /// Gets a value indicating whether this instance is root.
 
-         /// </summary>
 
-         /// <value><c>true</c> if this instance is root; otherwise, <c>false</c>.</value>
 
-         [IgnoreDataMember]
 
-         public bool IsRoot
 
-         {
 
-             get { return StringHelper.EqualsIgnoreCase(Type, "AggregateFolder"); }
 
-         }
 
-         [IgnoreDataMember]
 
-         public bool IsMusicGenre
 
-         {
 
-             get { return StringHelper.EqualsIgnoreCase(Type, "MusicGenre"); }
 
-         }
 
-         [IgnoreDataMember]
 
-         public bool IsGameGenre
 
-         {
 
-             get { return StringHelper.EqualsIgnoreCase(Type, "GameGenre"); }
 
-         }
 
-         [IgnoreDataMember]
 
-         public bool IsGenre
 
-         {
 
-             get { return StringHelper.EqualsIgnoreCase(Type, "Genre"); }
 
-         }
 
-         [IgnoreDataMember]
 
-         public bool IsArtist
 
-         {
 
-             get { return StringHelper.EqualsIgnoreCase(Type, "MusicArtist"); }
 
-         }
 
-         [IgnoreDataMember]
 
-         public bool IsAlbum
 
-         {
 
-             get { return StringHelper.EqualsIgnoreCase(Type, "MusicAlbum"); }
 
-         }
 
-         [IgnoreDataMember]
 
-         public bool IsStudio
 
-         {
 
-             get { return StringHelper.EqualsIgnoreCase(Type, "Studio"); }
 
-         }
 
-         [IgnoreDataMember]
 
-         public bool SupportsSimilarItems
 
-         {
 
-             get
 
-             {
 
-                 return IsType("Movie") || IsType("Series") || IsType("MusicAlbum") || IsType("MusicArtist") || IsType("Program") || IsType("Recording") || IsType("ChannelVideoItem") || IsType("Game");
 
-             }
 
-         }
 
-         /// <summary>
 
-         /// Occurs when [property changed].
 
-         /// </summary>
 
-         public event PropertyChangedEventHandler PropertyChanged;
 
-         /// <summary>
 
-         /// Gets or sets the program identifier.
 
-         /// </summary>
 
-         /// <value>The program identifier.</value>
 
-         public string ProgramId { get; set; }
 
-         /// <summary>
 
-         /// Gets or sets the channel primary image tag.
 
-         /// </summary>
 
-         /// <value>The channel primary image tag.</value>
 
-         public string ChannelPrimaryImageTag { get; set; }
 
-         /// <summary>
 
-         /// The start date of the recording, in UTC.
 
-         /// </summary>
 
-         public DateTime? StartDate { get; set; }
 
-         /// <summary>
 
-         /// Gets or sets the completion percentage.
 
-         /// </summary>
 
-         /// <value>The completion percentage.</value>
 
-         public double? CompletionPercentage { get; set; }
 
-         /// <summary>
 
-         /// Gets or sets a value indicating whether this instance is repeat.
 
-         /// </summary>
 
-         /// <value><c>true</c> if this instance is repeat; otherwise, <c>false</c>.</value>
 
-         public bool? IsRepeat { get; set; }
 
-         /// <summary>
 
-         /// Gets or sets the episode title.
 
-         /// </summary>
 
-         /// <value>The episode title.</value>
 
-         public string EpisodeTitle { get; set; }
 
-         /// <summary>
 
-         /// Gets or sets the type of the channel.
 
-         /// </summary>
 
-         /// <value>The type of the channel.</value>
 
-         public ChannelType? ChannelType { get; set; }
 
-         /// <summary>
 
-         /// Gets or sets the audio.
 
-         /// </summary>
 
-         /// <value>The audio.</value>
 
-         public ProgramAudio? Audio { get; set; }
 
-         /// <summary>
 
-         /// Gets or sets a value indicating whether this instance is movie.
 
-         /// </summary>
 
-         /// <value><c>true</c> if this instance is movie; otherwise, <c>false</c>.</value>
 
-         public bool? IsMovie { get; set; }
 
-         /// <summary>
 
-         /// Gets or sets a value indicating whether this instance is sports.
 
-         /// </summary>
 
-         /// <value><c>true</c> if this instance is sports; otherwise, <c>false</c>.</value>
 
-         public bool? IsSports { get; set; }
 
-         /// <summary>
 
-         /// Gets or sets a value indicating whether this instance is series.
 
-         /// </summary>
 
-         /// <value><c>true</c> if this instance is series; otherwise, <c>false</c>.</value>
 
-         public bool? IsSeries { get; set; }
 
-         /// <summary>
 
-         /// Gets or sets a value indicating whether this instance is live.
 
-         /// </summary>
 
-         /// <value><c>true</c> if this instance is live; otherwise, <c>false</c>.</value>
 
-         public bool? IsLive { get; set; }
 
-         /// <summary>
 
-         /// Gets or sets a value indicating whether this instance is news.
 
-         /// </summary>
 
-         /// <value><c>true</c> if this instance is news; otherwise, <c>false</c>.</value>
 
-         public bool? IsNews { get; set; }
 
-         /// <summary>
 
-         /// Gets or sets a value indicating whether this instance is kids.
 
-         /// </summary>
 
-         /// <value><c>true</c> if this instance is kids; otherwise, <c>false</c>.</value>
 
-         public bool? IsKids { get; set; }
 
-         /// <summary>
 
-         /// Gets or sets a value indicating whether this instance is premiere.
 
-         /// </summary>
 
-         /// <value><c>true</c> if this instance is premiere; otherwise, <c>false</c>.</value>
 
-         public bool? IsPremiere { get; set; }
 
-         /// <summary>
 
-         /// Gets or sets the timer identifier.
 
-         /// </summary>
 
-         /// <value>The timer identifier.</value>
 
-         public string TimerId { get; set; }
 
-         /// <summary>
 
-         /// Gets or sets the current program.
 
-         /// </summary>
 
-         /// <value>The current program.</value>
 
-         public BaseItemDto CurrentProgram { get; set; }
 
-     }
 
- }
 
 
  |