added cloud sync model objects

This commit is contained in:
Luke Pulverenti
2014-07-21 21:29:06 -04:00
parent ce20066bc0
commit c524f3919e
93 changed files with 1088 additions and 675 deletions

View File

@@ -1,6 +1,5 @@
using MediaBrowser.Model.Extensions;
using System.Diagnostics;
using System.Runtime.Serialization;
namespace MediaBrowser.Model.Entities
{
@@ -138,8 +137,11 @@ namespace MediaBrowser.Model.Entities
string codec = Codec ?? string.Empty;
// sub = external .sub file
return StringHelper.IndexOfIgnoreCase(codec, "pgs") == -1 &&
StringHelper.IndexOfIgnoreCase(codec, "dvd") == -1;
StringHelper.IndexOfIgnoreCase(codec, "dvd") == -1 &&
!StringHelper.EqualsIgnoreCase(codec, "sub");
}
}

View File

@@ -304,6 +304,7 @@
<Compile Include="Sync\SyncSchedule.cs" />
<Compile Include="Sync\SyncScheduleQuery.cs" />
<Compile Include="Sync\SyncScheduleRequest.cs" />
<Compile Include="Sync\SyncTarget.cs" />
<Compile Include="System\LogFile.cs" />
<Compile Include="Themes\AppTheme.cs" />
<Compile Include="Themes\AppThemeInfo.cs" />

View File

@@ -12,7 +12,7 @@ namespace MediaBrowser.Model.Sync
/// Gets or sets the device identifier.
/// </summary>
/// <value>The device identifier.</value>
public string DeviceId { get; set; }
public string TargetId { get; set; }
/// <summary>
/// Gets or sets the item identifier.
/// </summary>

View File

@@ -8,7 +8,7 @@ namespace MediaBrowser.Model.Sync
/// Gets or sets the device identifier.
/// </summary>
/// <value>The device identifier.</value>
public List<string> DeviceIds { get; set; }
public List<string> TargetIds { get; set; }
/// <summary>
/// Gets or sets the item identifier.
/// </summary>
@@ -22,7 +22,7 @@ namespace MediaBrowser.Model.Sync
public SyncJobRequest()
{
DeviceIds = new List<string>();
TargetIds = new List<string>();
}
}
}

View File

@@ -8,7 +8,7 @@ namespace MediaBrowser.Model.Sync
/// Gets or sets the device identifier.
/// </summary>
/// <value>The device identifier.</value>
public List<string> DeviceIds { get; set; }
public List<string> TargetIds { get; set; }
/// <summary>
/// Gets or sets the quality.
/// </summary>
@@ -17,7 +17,7 @@ namespace MediaBrowser.Model.Sync
public SyncScheduleRequest()
{
DeviceIds = new List<string>();
TargetIds = new List<string>();
}
}
}

View File

@@ -0,0 +1,17 @@

namespace MediaBrowser.Model.Sync
{
public class SyncTarget
{
/// <summary>
/// Gets or sets the name.
/// </summary>
/// <value>The name.</value>
public string Name { get; set; }
/// <summary>
/// Gets or sets the identifier.
/// </summary>
/// <value>The identifier.</value>
public string Id { get; set; }
}
}