using System.Collections.Generic; using System.Linq; using VideoGameQuotes.Api; namespace VideoGameQuotes.Web.Models { public class BrowseModel { public BrowseModel() { GameIds = Enumerable.Empty(); SystemIds = Enumerable.Empty(); CategoryIds = Enumerable.Empty(); PublisherIds = Enumerable.Empty(); } public User CurrentUser { get; set; } public IEnumerable GameIds { get; set; } public IEnumerable SystemIds { get; set; } public IEnumerable CategoryIds { get; set; } public IEnumerable PublisherIds { get; set; } public SortMethod SortMethod { get; set; } public SortOrder SortOrder { get; set; } public bool IsEmpty { get { return !GameIds.Any() && !SystemIds.Any() && !CategoryIds.Any() && !PublisherIds.Any(); } } } public enum SortMethod { None, Alphabetical, Rating, Date } public enum SortOrder { Ascending, Descending } }