vgquotes/Src/VideoGameQuotes.Web/Models/BrowseModel.cs
tmont 140b1d6bcc * added logo
* updated footer styles
* paged the browse data
2011-02-27 01:14:56 +00:00

39 lines
972 B
C#

using System.Collections.Generic;
using System.Linq;
using VideoGameQuotes.Api;
namespace VideoGameQuotes.Web.Models {
public class BrowseModel {
public BrowseModel() {
GameIds = Enumerable.Empty<int>();
SystemIds = Enumerable.Empty<int>();
CategoryIds = Enumerable.Empty<int>();
PublisherIds = Enumerable.Empty<int>();
}
public User CurrentUser { get; set; }
public IEnumerable<int> GameIds { get; set; }
public IEnumerable<int> SystemIds { get; set; }
public IEnumerable<int> CategoryIds { get; set; }
public IEnumerable<int> 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
}
}