2021-07-14 06:13:19 +00:00
|
|
|
|
using System;
|
2021-07-10 02:47:40 +00:00
|
|
|
|
using System.Collections.Generic;
|
2021-07-12 08:07:16 +00:00
|
|
|
|
using System.ComponentModel.DataAnnotations;
|
2021-07-10 02:47:40 +00:00
|
|
|
|
using System.Linq;
|
|
|
|
|
using System.Threading.Tasks;
|
2021-07-14 06:13:19 +00:00
|
|
|
|
using Microsoft.AspNetCore.Identity;
|
2021-07-22 21:12:27 +00:00
|
|
|
|
using Props.Models.Search;
|
2021-07-21 06:58:49 +00:00
|
|
|
|
using Props.Shared.Models.User;
|
2021-07-10 02:47:40 +00:00
|
|
|
|
|
2021-07-21 06:58:49 +00:00
|
|
|
|
namespace Props.Models.User
|
2021-07-10 02:47:40 +00:00
|
|
|
|
{
|
|
|
|
|
public class ApplicationUser : IdentityUser
|
|
|
|
|
{
|
2021-07-22 21:12:27 +00:00
|
|
|
|
public virtual ISet<SearchOutline> SearchOutlines { get; set; }
|
|
|
|
|
|
2021-07-12 08:07:16 +00:00
|
|
|
|
[Required]
|
2021-07-14 06:13:19 +00:00
|
|
|
|
public virtual ResultsPreferences ResultsPreferences { get; private set; }
|
2021-07-12 08:07:16 +00:00
|
|
|
|
|
|
|
|
|
[Required]
|
2021-07-14 06:13:19 +00:00
|
|
|
|
public virtual ApplicationPreferences ApplicationPreferences { get; private set; }
|
|
|
|
|
|
2021-07-22 21:12:27 +00:00
|
|
|
|
// TODO: Write project system.
|
2021-07-14 06:13:19 +00:00
|
|
|
|
public ApplicationUser()
|
|
|
|
|
{
|
|
|
|
|
ResultsPreferences = new ResultsPreferences();
|
|
|
|
|
ApplicationPreferences = new ApplicationPreferences();
|
|
|
|
|
}
|
|
|
|
|
|
2021-07-22 21:12:27 +00:00
|
|
|
|
public ApplicationUser(ResultsPreferences resultsPreferences, ApplicationPreferences applicationPreferences)
|
2021-07-14 06:13:19 +00:00
|
|
|
|
{
|
|
|
|
|
this.ResultsPreferences = resultsPreferences;
|
|
|
|
|
this.ApplicationPreferences = applicationPreferences;
|
|
|
|
|
}
|
2021-07-10 02:47:40 +00:00
|
|
|
|
}
|
|
|
|
|
}
|