32 lines
769 B
C#
32 lines
769 B
C#
|
using System.Collections.Generic;
|
|||
|
using System.Linq;
|
|||
|
|
|||
|
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 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 enum SortMethod {
|
|||
|
None,
|
|||
|
Alphabetical,
|
|||
|
Rating,
|
|||
|
Date
|
|||
|
}
|
|||
|
|
|||
|
public enum SortOrder {
|
|||
|
Ascending,
|
|||
|
Descending
|
|||
|
}
|
|||
|
}
|