1
0
mirror of https://github.com/bitwarden/server.git synced 2025-07-01 08:02:49 -05:00

New mail services and implementations

This commit is contained in:
Kyle Spearrin
2017-05-30 17:19:46 -04:00
parent 72ac5c9f80
commit 07c5f45ae0
19 changed files with 549 additions and 160 deletions

View File

@ -0,0 +1,14 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Bit.Core.Models.Mail
{
public class BaseMailModel
{
public string SiteName { get; set; }
public string WebVaultUrl { get; set; }
}
}

View File

@ -0,0 +1,13 @@
using System.Collections.Generic;
namespace Bit.Core.Models.Mail
{
public class MailMessage
{
public string Subject { get; set; }
public IEnumerable<string> ToEmails { get; set; }
public string HtmlContent { get; set; }
public string TextContent { get; set; }
public IDictionary<string, object> MetaData { get; set; }
}
}

View File

@ -0,0 +1,7 @@
namespace Bit.Core.Models.Mail
{
public class MasterPasswordHintViewModel : BaseMailModel
{
public string Hint { get; set; }
}
}