vgquotes/Src/VideoGameQuotes.Web/Models/QuoteModel.cs

18 lines
497 B
C#
Raw Normal View History

2011-02-15 00:18:29 +00:00
using JetBrains.Annotations;
using VideoGameQuotes.Api;
namespace VideoGameQuotes.Web.Models {
public class PagedUserModel {
public int Start { get; set; }
public int End { get; set; }
}
public class QuoteModel {
2011-02-14 19:14:13 +00:00
[NotNull]
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; } }
}
}