parent
bebba65d61
commit
d091fe0e6e
@ -1,5 +1,5 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<packages>
|
||||
<package id="Fody" version="1.19.1.0" targetFramework="portable-win+net45+sl40+wp71" developmentDependency="true" />
|
||||
<package id="PropertyChanged.Fody" version="1.41.0.0" targetFramework="portable-net45+sl40+wp71+win" />
|
||||
<package id="PropertyChanged.Fody" version="1.41.0.0" targetFramework="portable-net45+sl40+wp71+win" requireReinstallation="True" />
|
||||
</packages>
|
@ -0,0 +1,8 @@
|
||||
namespace MediaBrowser.Model.ApiClient
|
||||
{
|
||||
public enum ConnectionMode
|
||||
{
|
||||
Local = 1,
|
||||
Remote = 2
|
||||
}
|
||||
}
|
@ -0,0 +1,9 @@
|
||||
namespace MediaBrowser.Model.ApiClient
|
||||
{
|
||||
public enum ConnectionState
|
||||
{
|
||||
Unavailable = 1,
|
||||
ServerSignIn = 2,
|
||||
SignedIn = 3
|
||||
}
|
||||
}
|
@ -0,0 +1,13 @@
|
||||
namespace MediaBrowser.Model.ApiClient
|
||||
{
|
||||
public class WakeOnLanInfo
|
||||
{
|
||||
public string MacAddress { get; set; }
|
||||
public int Port { get; set; }
|
||||
|
||||
public WakeOnLanInfo()
|
||||
{
|
||||
Port = 9;
|
||||
}
|
||||
}
|
||||
}
|
@ -0,0 +1,61 @@
|
||||
using System.Collections.Generic;
|
||||
using MediaBrowser.Model.Entities;
|
||||
using MediaBrowser.Model.Querying;
|
||||
|
||||
namespace MediaBrowser.Model.Channels
|
||||
{
|
||||
public class AllChannelMediaQuery
|
||||
{
|
||||
/// <summary>
|
||||
/// Gets or sets the channel ids.
|
||||
/// </summary>
|
||||
/// <value>The channel ids.</value>
|
||||
public string[] ChannelIds { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the user identifier.
|
||||
/// </summary>
|
||||
/// <value>The user identifier.</value>
|
||||
public string UserId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Skips over a given number of items within the results. Use for paging.
|
||||
/// </summary>
|
||||
/// <value>The start index.</value>
|
||||
public int? StartIndex { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// The maximum number of items to return
|
||||
/// </summary>
|
||||
/// <value>The limit.</value>
|
||||
public int? Limit { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the content types.
|
||||
/// </summary>
|
||||
/// <value>The content types.</value>
|
||||
public ChannelMediaContentType[] ContentTypes { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the extra types.
|
||||
/// </summary>
|
||||
/// <value>The extra types.</value>
|
||||
public ExtraType[] ExtraTypes { get; set; }
|
||||
public TrailerType[] TrailerTypes { get; set; }
|
||||
|
||||
public AllChannelMediaQuery()
|
||||
{
|
||||
ChannelIds = new string[] { };
|
||||
|
||||
ContentTypes = new ChannelMediaContentType[] { };
|
||||
ExtraTypes = new ExtraType[] { };
|
||||
TrailerTypes = new TrailerType[] { };
|
||||
|
||||
Filters = new ItemFilter[] { };
|
||||
Fields = new List<ItemFields>();
|
||||
}
|
||||
|
||||
public ItemFilter[] Filters { get; set; }
|
||||
public List<ItemFields> Fields { get; set; }
|
||||
}
|
||||
}
|
@ -0,0 +1,11 @@
|
||||
namespace MediaBrowser.Model.Channels
|
||||
{
|
||||
public enum ChannelFolderType
|
||||
{
|
||||
Container = 0,
|
||||
|
||||
MusicAlbum = 1,
|
||||
|
||||
PhotoAlbum = 2
|
||||
}
|
||||
}
|
@ -0,0 +1,13 @@
|
||||
namespace MediaBrowser.Model.Channels
|
||||
{
|
||||
public enum ChannelItemSortField
|
||||
{
|
||||
Name = 0,
|
||||
CommunityRating = 1,
|
||||
PremiereDate = 2,
|
||||
DateCreated = 3,
|
||||
Runtime = 4,
|
||||
PlayCount = 5,
|
||||
CommunityPlayCount = 6
|
||||
}
|
||||
}
|
@ -0,0 +1,8 @@
|
||||
namespace MediaBrowser.Model.Chapters
|
||||
{
|
||||
public class ChapterProviderInfo
|
||||
{
|
||||
public string Name { get; set; }
|
||||
public string Id { get; set; }
|
||||
}
|
||||
}
|
@ -0,0 +1,19 @@
|
||||
namespace MediaBrowser.Model.Configuration
|
||||
{
|
||||
public class PeopleMetadataOptions
|
||||
{
|
||||
public bool DownloadActorMetadata { get; set; }
|
||||
public bool DownloadDirectorMetadata { get; set; }
|
||||
public bool DownloadProducerMetadata { get; set; }
|
||||
public bool DownloadWriterMetadata { get; set; }
|
||||
public bool DownloadComposerMetadata { get; set; }
|
||||
public bool DownloadOtherPeopleMetadata { get; set; }
|
||||
public bool DownloadGuestStarMetadata { get; set; }
|
||||
|
||||
public PeopleMetadataOptions()
|
||||
{
|
||||
DownloadActorMetadata = true;
|
||||
DownloadDirectorMetadata = true;
|
||||
}
|
||||
}
|
||||
}
|
@ -0,0 +1,8 @@
|
||||
namespace MediaBrowser.Model.Dlna
|
||||
{
|
||||
public enum EncodingContext
|
||||
{
|
||||
Streaming = 0,
|
||||
Static = 1
|
||||
}
|
||||
}
|
@ -0,0 +1,14 @@
|
||||
namespace MediaBrowser.Model.Dlna
|
||||
{
|
||||
public class ResolutionConfiguration
|
||||
{
|
||||
public int MaxWidth { get; set; }
|
||||
public int MaxBitrate { get; set; }
|
||||
|
||||
public ResolutionConfiguration(int maxWidth, int maxBitrate)
|
||||
{
|
||||
MaxWidth = maxWidth;
|
||||
MaxBitrate = maxBitrate;
|
||||
}
|
||||
}
|
||||
}
|
@ -0,0 +1,8 @@
|
||||
namespace MediaBrowser.Model.Dlna
|
||||
{
|
||||
public class ResolutionOptions
|
||||
{
|
||||
public int? MaxWidth { get; set; }
|
||||
public int? MaxHeight { get; set; }
|
||||
}
|
||||
}
|
@ -0,0 +1,22 @@
|
||||
namespace MediaBrowser.Model.Dlna
|
||||
{
|
||||
public enum SubtitleDeliveryMethod
|
||||
{
|
||||
/// <summary>
|
||||
/// The encode
|
||||
/// </summary>
|
||||
Encode = 0,
|
||||
/// <summary>
|
||||
/// The embed
|
||||
/// </summary>
|
||||
Embed = 1,
|
||||
/// <summary>
|
||||
/// The external
|
||||
/// </summary>
|
||||
External = 2,
|
||||
/// <summary>
|
||||
/// The HLS
|
||||
/// </summary>
|
||||
Hls = 3
|
||||
}
|
||||
}
|
@ -0,0 +1,11 @@
|
||||
namespace MediaBrowser.Model.Dlna
|
||||
{
|
||||
public class SubtitleStreamInfo
|
||||
{
|
||||
public string Url { get; set; }
|
||||
public string Language { get; set; }
|
||||
public string Name { get; set; }
|
||||
public bool IsForced { get; set; }
|
||||
public string Format { get; set; }
|
||||
}
|
||||
}
|
@ -0,0 +1,9 @@
|
||||
namespace MediaBrowser.Model.Dto
|
||||
{
|
||||
public enum MediaSourceType
|
||||
{
|
||||
Default = 0,
|
||||
Grouping = 1,
|
||||
Cache = 2
|
||||
}
|
||||
}
|
@ -0,0 +1,102 @@
|
||||
using System;
|
||||
|
||||
namespace MediaBrowser.Model.Dto
|
||||
{
|
||||
/// <summary>
|
||||
/// Class VideoStreamOptions
|
||||
/// </summary>
|
||||
[Obsolete]
|
||||
public class VideoStreamOptions : StreamOptions
|
||||
{
|
||||
/// <summary>
|
||||
/// Gets or sets the video codec.
|
||||
/// Omit to copy
|
||||
/// </summary>
|
||||
/// <value>The video codec.</value>
|
||||
public string VideoCodec { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the video bit rate.
|
||||
/// </summary>
|
||||
/// <value>The video bit rate.</value>
|
||||
public int? VideoBitRate { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the width.
|
||||
/// </summary>
|
||||
/// <value>The width.</value>
|
||||
public int? Width { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the height.
|
||||
/// </summary>
|
||||
/// <value>The height.</value>
|
||||
public int? Height { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the width of the max.
|
||||
/// </summary>
|
||||
/// <value>The width of the max.</value>
|
||||
public int? MaxWidth { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the height of the max.
|
||||
/// </summary>
|
||||
/// <value>The height of the max.</value>
|
||||
public int? MaxHeight { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the frame rate.
|
||||
/// </summary>
|
||||
/// <value>The frame rate.</value>
|
||||
public double? FrameRate { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the index of the audio stream.
|
||||
/// </summary>
|
||||
/// <value>The index of the audio stream.</value>
|
||||
public int? AudioStreamIndex { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the index of the video stream.
|
||||
/// </summary>
|
||||
/// <value>The index of the video stream.</value>
|
||||
public int? VideoStreamIndex { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the index of the subtitle stream.
|
||||
/// </summary>
|
||||
/// <value>The index of the subtitle stream.</value>
|
||||
public int? SubtitleStreamIndex { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the profile.
|
||||
/// </summary>
|
||||
/// <value>The profile.</value>
|
||||
public string Profile { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the level.
|
||||
/// </summary>
|
||||
/// <value>The level.</value>
|
||||
public string Level { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the baseline stream audio bit rate.
|
||||
/// </summary>
|
||||
/// <value>The baseline stream audio bit rate.</value>
|
||||
public int? BaselineStreamAudioBitRate { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets a value indicating whether [append baseline stream].
|
||||
/// </summary>
|
||||
/// <value><c>true</c> if [append baseline stream]; otherwise, <c>false</c>.</value>
|
||||
public bool AppendBaselineStream { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the time stamp offset ms. Only used with HLS.
|
||||
/// </summary>
|
||||
/// <value>The time stamp offset ms.</value>
|
||||
public int? TimeStampOffsetMs { get; set; }
|
||||
}
|
||||
}
|
@ -0,0 +1,15 @@
|
||||
using System;
|
||||
|
||||
namespace MediaBrowser.Model.Entities
|
||||
{
|
||||
public class SupporterInfo
|
||||
{
|
||||
public string Email { get; set; }
|
||||
public string SupporterKey { get; set; }
|
||||
public DateTime? ExpirationDate { get; set; }
|
||||
public DateTime RegistrationDate { get; set; }
|
||||
public string PlanType { get; set; }
|
||||
public bool IsActiveSupporter { get; set; }
|
||||
public bool IsExpiredSupporter { get; set; }
|
||||
}
|
||||
}
|
@ -0,0 +1,10 @@
|
||||
namespace MediaBrowser.Model.Entities
|
||||
{
|
||||
public enum TrailerType
|
||||
{
|
||||
ComingSoonToTheaters = 1,
|
||||
ComingSoonToDvd = 2,
|
||||
ComingSoonToStreaming = 3,
|
||||
Archive = 4
|
||||
}
|
||||
}
|
@ -0,0 +1,16 @@
|
||||
namespace MediaBrowser.Model.Extensions
|
||||
{
|
||||
public static class BoolHelper
|
||||
{
|
||||
/// <summary>
|
||||
/// Tries the parse culture invariant.
|
||||
/// </summary>
|
||||
/// <param name="s">The s.</param>
|
||||
/// <param name="result">The result.</param>
|
||||
/// <returns><c>true</c> if XXXX, <c>false</c> otherwise.</returns>
|
||||
public static bool TryParseCultureInvariant(string s, out bool result)
|
||||
{
|
||||
return bool.TryParse(s, out result);
|
||||
}
|
||||
}
|
||||
}
|
@ -0,0 +1,18 @@
|
||||
using System.Globalization;
|
||||
|
||||
namespace MediaBrowser.Model.Extensions
|
||||
{
|
||||
public static class FloatHelper
|
||||
{
|
||||
/// <summary>
|
||||
/// Tries the parse culture invariant.
|
||||
/// </summary>
|
||||
/// <param name="s">The s.</param>
|
||||
/// <param name="result">The result.</param>
|
||||
/// <returns><c>true</c> if XXXX, <c>false</c> otherwise.</returns>
|
||||
public static bool TryParseCultureInvariant(string s, out float result)
|
||||
{
|
||||
return float.TryParse(s, NumberStyles.Any, CultureInfo.InvariantCulture, out result);
|
||||
}
|
||||
}
|
||||
}
|
@ -0,0 +1,9 @@
|
||||
namespace MediaBrowser.Model.MediaInfo
|
||||
{
|
||||
public enum MediaProtocol
|
||||
{
|
||||
File = 0,
|
||||
Http = 1,
|
||||
Rtmp = 2
|
||||
}
|
||||
}
|
@ -0,0 +1,8 @@
|
||||
namespace MediaBrowser.Model.Providers
|
||||
{
|
||||
public class SubtitleProviderInfo
|
||||
{
|
||||
public string Name { get; set; }
|
||||
public string Id { get; set; }
|
||||
}
|
||||
}
|
@ -0,0 +1,17 @@
|
||||
namespace MediaBrowser.Model.Session
|
||||
{
|
||||
public class TranscodingInfo
|
||||
{
|
||||
public string AudioCodec { get; set; }
|
||||
public string VideoCodec { get; set; }
|
||||
public string Container { get; set; }
|
||||
public int? Bitrate { get; set; }
|
||||
|
||||
public float? Framerate { get; set; }
|
||||
public double? CompletionPercentage { get; set; }
|
||||
|
||||
public int? Width { get; set; }
|
||||
public int? Height { get; set; }
|
||||
public int? AudioChannels { get; set; }
|
||||
}
|
||||
}
|
@ -0,0 +1,7 @@
|
||||
namespace MediaBrowser.Model.Sync
|
||||
{
|
||||
public enum SyncLimitType
|
||||
{
|
||||
ItemCount = 0
|
||||
}
|
||||
}
|
@ -0,0 +1,35 @@
|
||||
namespace MediaBrowser.Model.System
|
||||
{
|
||||
public class PublicSystemInfo
|
||||
{
|
||||
/// <summary>
|
||||
/// Gets or sets the local address.
|
||||
/// </summary>
|
||||
/// <value>The local address.</value>
|
||||
public string LocalAddress { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the wan address.
|
||||
/// </summary>
|
||||
/// <value>The wan address.</value>
|
||||
public string WanAddress { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the name of the server.
|
||||
/// </summary>
|
||||
/// <value>The name of the server.</value>
|
||||
public string ServerName { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the version.
|
||||
/// </summary>
|
||||
/// <value>The version.</value>
|
||||
public string Version { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the id.
|
||||
/// </summary>
|
||||
/// <value>The id.</value>
|
||||
public string Id { get; set; }
|
||||
}
|
||||
}
|
Loading…
Reference in new issue