1
0
mirror of https://github.com/bitwarden/server.git synced 2025-07-16 15:17:33 -05:00
Files
bitwarden/src/Core/Models/Api/CipherFieldModel.cs
2018-03-01 09:29:49 -05:00

25 lines
570 B
C#

using System.ComponentModel.DataAnnotations;
using Bit.Core.Enums;
using Bit.Core.Models.Data;
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; }
[StringLength(1000)]
public string Name { get; set; }
[StringLength(1000)]
public string Value { get; set; }
}
}