2021-08-05 06:22:19 +00:00
|
|
|
using System.Collections.Generic;
|
|
|
|
using System.ComponentModel.DataAnnotations;
|
|
|
|
using Props.Models.Search;
|
|
|
|
using Props.Models.User;
|
|
|
|
|
|
|
|
namespace Props.Models.User
|
|
|
|
{
|
|
|
|
public class SearchOutlinePreferences
|
|
|
|
{
|
|
|
|
public int Id { get; set; }
|
|
|
|
|
|
|
|
[Required]
|
|
|
|
public string ApplicationUserId { get; set; }
|
|
|
|
|
|
|
|
[Required]
|
|
|
|
public virtual ApplicationUser ApplicationUser { get; set; }
|
|
|
|
|
|
|
|
[Required]
|
2021-08-17 07:59:01 +00:00
|
|
|
public virtual IList<SearchOutline> SearchOutlines { get; set; }
|
2021-08-05 06:22:19 +00:00
|
|
|
|
2021-08-17 07:59:01 +00:00
|
|
|
public string NameOfLastUsed { get; set; }
|
2021-08-05 06:22:19 +00:00
|
|
|
|
|
|
|
public SearchOutlinePreferences()
|
|
|
|
{
|
2021-08-17 07:59:01 +00:00
|
|
|
SearchOutlines = new List<SearchOutline>();
|
2021-08-05 06:22:19 +00:00
|
|
|
}
|
|
|
|
|
2021-08-17 07:59:01 +00:00
|
|
|
public SearchOutlinePreferences(List<SearchOutline> searchOutlines, string nameOfLastUsed)
|
2021-08-05 06:22:19 +00:00
|
|
|
{
|
|
|
|
this.SearchOutlines = searchOutlines;
|
2021-08-17 07:59:01 +00:00
|
|
|
this.NameOfLastUsed = nameOfLastUsed;
|
2021-08-05 06:22:19 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|