You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
550 B
25 lines
550 B
#pragma warning disable CS1591
|
|
|
|
using System;
|
|
using Jellyfin.Data.Enums;
|
|
|
|
namespace MediaBrowser.Model.Dlna
|
|
{
|
|
public class SortCriteria
|
|
{
|
|
public SortCriteria(string sortOrder)
|
|
{
|
|
if (!string.IsNullOrEmpty(sortOrder) && Enum.TryParse<SortOrder>(sortOrder, true, out var sortOrderValue))
|
|
{
|
|
SortOrder = sortOrderValue;
|
|
}
|
|
else
|
|
{
|
|
SortOrder = SortOrder.Ascending;
|
|
}
|
|
}
|
|
|
|
public SortOrder SortOrder { get; }
|
|
}
|
|
}
|