Compatibility update

This commit is contained in:
Luke Pulverenti 2018-05-28 13:41:34 -04:00
parent b394c8831f
commit 90b3c49242
2 changed files with 7 additions and 7 deletions

View File

@ -533,18 +533,18 @@ namespace EmbyReports.Api
/// Gets the order by.
/// </summary>
/// <returns>IEnumerable{ItemSortBy}.</returns>
public Tuple<string, SortOrder>[] GetOrderBy()
public ValueTuple<string, SortOrder>[] GetOrderBy()
{
return GetOrderBy(SortBy, SortOrder);
}
public static Tuple<string, SortOrder>[] GetOrderBy(string sortBy, string requestedSortOrder)
public static ValueTuple<string, SortOrder>[] GetOrderBy(string sortBy, string requestedSortOrder)
{
var val = sortBy;
if (string.IsNullOrEmpty(val))
{
return new Tuple<string, MediaBrowser.Model.Entities.SortOrder>[] { };
return new ValueTuple<string, MediaBrowser.Model.Entities.SortOrder>[] { };
}
var vals = val.Split(',');
@ -555,7 +555,7 @@ namespace EmbyReports.Api
var sortOrders = requestedSortOrder.Split(',');
var result = new Tuple<string, MediaBrowser.Model.Entities.SortOrder>[vals.Length];
var result = new ValueTuple<string, MediaBrowser.Model.Entities.SortOrder>[vals.Length];
for (var i = 0; i < vals.Length; i++)
{
@ -564,7 +564,7 @@ namespace EmbyReports.Api
var sortOrderValue = sortOrders.Length > sortOrderIndex ? sortOrders[sortOrderIndex] : null;
var sortOrder = string.Equals(sortOrderValue, "Descending", StringComparison.OrdinalIgnoreCase) ? MediaBrowser.Model.Entities.SortOrder.Descending : MediaBrowser.Model.Entities.SortOrder.Ascending;
result[i] = new Tuple<string, MediaBrowser.Model.Entities.SortOrder>(vals[i], sortOrder);
result[i] = new ValueTuple<string, MediaBrowser.Model.Entities.SortOrder>(vals[i], sortOrder);
}
return result;

View File

@ -1,6 +1,6 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup> <TargetFrameworks>netstandard1.3;</TargetFrameworks> <AssemblyVersion>1.0.9.0</AssemblyVersion> <FileVersion>1.0.9.0</FileVersion> </PropertyGroup>
<PropertyGroup> <TargetFrameworks>netstandard2.0;</TargetFrameworks> <AssemblyVersion>1.0.10.0</AssemblyVersion> <FileVersion>1.0.10.0</FileVersion> </PropertyGroup>
<ItemGroup>
<None Remove="Web\reports.html" />
@ -12,6 +12,6 @@
<EmbeddedResource Include="Web\reports.js" />
</ItemGroup>
<ItemGroup> <PackageReference Include="mediabrowser.server.core" Version="3.3.40-beta" /> </ItemGroup>
<ItemGroup> <PackageReference Include="mediabrowser.server.core" Version="3.3.42-beta" /> </ItemGroup>
</Project>