2022-06-29 19:46:41 -04:00
|
|
|
|
namespace Bit.Core.Models.Mail
|
2017-05-30 17:19:46 -04:00
|
|
|
|
{
|
|
|
|
|
|
public class BaseMailModel
|
|
|
|
|
|
{
|
|
|
|
|
|
public string SiteName { get; set; }
|
2017-08-30 15:57:30 -04:00
|
|
|
|
public string WebVaultUrl { get; set; }
|
2017-11-29 13:40:56 -05:00
|
|
|
|
public string WebVaultUrlHostname
|
|
|
|
|
|
{
|
|
|
|
|
|
get
|
|
|
|
|
|
{
|
2020-03-27 14:36:37 -04:00
|
|
|
|
if (Uri.TryCreate(WebVaultUrl, UriKind.Absolute, out Uri uri))
|
2017-11-29 13:40:56 -05:00
|
|
|
|
{
|
|
|
|
|
|
return uri.Host;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
return WebVaultUrl;
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
2021-01-21 14:57:13 -06:00
|
|
|
|
public string CurrentYear
|
|
|
|
|
|
{
|
|
|
|
|
|
get
|
|
|
|
|
|
{
|
|
|
|
|
|
return DateTime.UtcNow.Year.ToString();
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
2017-05-30 17:19:46 -04:00
|
|
|
|
}
|
|
|
|
|
|
}
|