mirror of
https://github.com/bitwarden/server.git
synced 2025-04-23 05:55:13 -05:00
26 lines
614 B
C#
26 lines
614 B
C#
using System.ComponentModel.DataAnnotations;
|
|
using Bit.Core.Enums;
|
|
using Bit.Core.Models.Data;
|
|
using Bit.Core.Utilities;
|
|
|
|
namespace Bit.Core.Models.Api
|
|
{
|
|
public class CipherFieldModel
|
|
{
|
|
public CipherFieldModel() { }
|
|
|
|
public CipherFieldModel(CipherFieldData data)
|
|
{
|
|
Type = data.Type;
|
|
Name = data.Name;
|
|
Value = data.Value;
|
|
}
|
|
|
|
public FieldType Type { get; set; }
|
|
[EncryptedStringLength(1000)]
|
|
public string Name { get; set; }
|
|
[EncryptedStringLength(1000)]
|
|
public string Value { get; set; }
|
|
}
|
|
}
|