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-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-12 08:07:16 +00:00
|
|
|
|
[Required]
|
2021-07-14 06:13:19 +00:00
|
|
|
|
public virtual SearchOutline SearchOutline { get; private 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; }
|
|
|
|
|
|
|
|
|
|
public ApplicationUser()
|
|
|
|
|
{
|
|
|
|
|
SearchOutline = new SearchOutline();
|
|
|
|
|
ResultsPreferences = new ResultsPreferences();
|
|
|
|
|
ApplicationPreferences = new ApplicationPreferences();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public ApplicationUser(SearchOutline searchOutline, ResultsPreferences resultsPreferences, ApplicationPreferences applicationPreferences)
|
|
|
|
|
{
|
|
|
|
|
this.SearchOutline = searchOutline;
|
|
|
|
|
this.ResultsPreferences = resultsPreferences;
|
|
|
|
|
this.ApplicationPreferences = applicationPreferences;
|
|
|
|
|
}
|
2021-07-10 02:47:40 +00:00
|
|
|
|
}
|
|
|
|
|
}
|