1
0
mirror of https://github.com/bitwarden/mobile synced 2025-12-17 16:53:26 +00:00

attachment models

This commit is contained in:
Kyle Spearrin
2019-04-12 15:50:30 -04:00
parent 87798612a6
commit 7c6c36b744
2 changed files with 83 additions and 0 deletions

View File

@@ -0,0 +1,24 @@
using Bit.Core.Models.Domain;
namespace Bit.Core.Models.View
{
public class AttachmentView : View
{
public AttachmentView() { }
public AttachmentView(Attachment a)
{
Id = a.Id;
Url = a.Url;
Size = a.Size;
SizeName = a.SizeName;
}
public string Id { get; set; }
public string Url { get; set; }
public string Size { get; set; }
public string SizeName { get; set; }
public string FileName { get; set; }
public SymmetricCryptoKey Key { get; set; }
}
}