2017-09-13 16:54:23 -04:00
|
|
|
|
using System.ComponentModel.DataAnnotations;
|
|
|
|
|
|
using Bit.Core.Enums;
|
2018-02-28 21:23:46 -05:00
|
|
|
|
using Bit.Core.Models.Data;
|
2017-09-13 16:54:23 -04:00
|
|
|
|
|
|
|
|
|
|
namespace Bit.Core.Models.Api
|
|
|
|
|
|
{
|
2018-02-28 21:23:46 -05:00
|
|
|
|
public class CipherFieldModel
|
2017-09-13 16:54:23 -04:00
|
|
|
|
{
|
2018-02-28 21:23:46 -05:00
|
|
|
|
public CipherFieldModel(CipherFieldData data)
|
|
|
|
|
|
{
|
|
|
|
|
|
Type = data.Type;
|
|
|
|
|
|
Name = data.Name;
|
|
|
|
|
|
Value = data.Value;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
2017-09-13 16:54:23 -04:00
|
|
|
|
public FieldType Type { get; set; }
|
|
|
|
|
|
[StringLength(1000)]
|
|
|
|
|
|
public string Name { get; set; }
|
|
|
|
|
|
[StringLength(1000)]
|
|
|
|
|
|
public string Value { get; set; }
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|