2017-09-23 00:32:20 +03:00
|
|
|
|
using Bit.App.Enums;
|
2018-03-06 01:18:18 +03:00
|
|
|
|
using Bit.App.Models.Data;
|
2017-09-23 00:32:20 +03:00
|
|
|
|
|
|
|
|
|
namespace Bit.App.Models
|
|
|
|
|
{
|
|
|
|
|
public class Field
|
|
|
|
|
{
|
2017-09-26 00:13:20 +03:00
|
|
|
|
public Field() { }
|
|
|
|
|
|
2017-09-23 00:32:20 +03:00
|
|
|
|
public Field(FieldDataModel model)
|
|
|
|
|
{
|
|
|
|
|
Type = model.Type;
|
2017-11-28 21:39:31 +03:00
|
|
|
|
Name = model.Name != null ? new CipherString(model.Name) : null;
|
|
|
|
|
Value = model.Value != null ? new CipherString(model.Value) : null;
|
2017-09-23 00:32:20 +03:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public FieldType Type { get; set; }
|
|
|
|
|
public CipherString Name { get; set; }
|
|
|
|
|
public CipherString Value { get; set; }
|
|
|
|
|
}
|
|
|
|
|
}
|