User.cs 744 B

1234567891011121314151617181920212223242526272829303132
  1. using System;
  2. namespace MediaBrowser.Model.Entities
  3. {
  4. public class User : BaseEntity
  5. {
  6. public string Password { get; set; }
  7. public string MaxParentalRating { get; set; }
  8. public int RecentItemDays { get; set; }
  9. public User()
  10. {
  11. RecentItemDays = 14;
  12. }
  13. public DateTime? LastLoginDate { get; set; }
  14. public DateTime? LastActivityDate { get; set; }
  15. /// <summary>
  16. /// This allows the user to configure how they want to rate items
  17. /// </summary>
  18. public ItemRatingMode ItemRatingMode { get; set; }
  19. }
  20. public enum ItemRatingMode
  21. {
  22. LikeOrDislike,
  23. Numeric
  24. }
  25. }