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.
jellyfin/MediaBrowser.Model/Dlna/SortCriteria.cs

25 lines
514 B

#pragma warning disable CS1591
using System;
using Jellyfin.Data.Enums;
6 years ago
namespace MediaBrowser.Model.Dlna
{
public class SortCriteria
{
public SortCriteria(string sortOrder)
6 years ago
{
if (Enum.TryParse<SortOrder>(sortOrder, true, out var sortOrderValue))
{
SortOrder = sortOrderValue;
}
else
{
SortOrder = SortOrder.Ascending;
}
6 years ago
}
public SortOrder SortOrder { get; }
6 years ago
}
}