mirror of
https://github.com/bitwarden/server.git
synced 2025-04-23 05:55:13 -05:00
22 lines
512 B
C#
22 lines
512 B
C#
using Bit.Core.Models.Data;
|
|
using Bit.Core.Utilities;
|
|
|
|
namespace Bit.Core.Models.Api
|
|
{
|
|
public class CipherAttachmentModel
|
|
{
|
|
public CipherAttachmentModel() { }
|
|
|
|
public CipherAttachmentModel(CipherAttachment.MetaData data)
|
|
{
|
|
FileName = data.FileName;
|
|
Key = data.Key;
|
|
}
|
|
|
|
[EncryptedStringLength(1000)]
|
|
public string FileName { get; set; }
|
|
[EncryptedStringLength(1000)]
|
|
public string Key { get; set; }
|
|
}
|
|
}
|