2011-02-15 00:18:29 +00:00
|
|
|
|
using JetBrains.Annotations;
|
2011-02-14 11:01:31 +00:00
|
|
|
|
using VideoGameQuotes.Api;
|
|
|
|
|
|
|
|
|
|
namespace VideoGameQuotes.Web.Models {
|
2011-02-21 23:59:06 +00:00
|
|
|
|
|
|
|
|
|
public class PagedUserModel {
|
|
|
|
|
public int Start { get; set; }
|
|
|
|
|
public int End { get; set; }
|
|
|
|
|
}
|
|
|
|
|
|
2011-02-14 11:01:31 +00:00
|
|
|
|
public class QuoteModel {
|
2011-02-14 19:14:13 +00:00
|
|
|
|
[NotNull]
|
2011-02-14 11:01:31 +00:00
|
|
|
|
public Quote Quote { get; set; }
|
|
|
|
|
public User User { get; set; }
|
2011-02-15 00:18:29 +00:00
|
|
|
|
public bool VotedUp { get { return Quote.VotedFor(User) == VoteDirection.Up; } }
|
|
|
|
|
public bool VotedDown { get { return Quote.VotedFor(User) == VoteDirection.Down; } }
|
2011-02-14 11:01:31 +00:00
|
|
|
|
}
|
|
|
|
|
}
|