mirror of
https://github.com/bitwarden/mobile
synced 2025-12-19 09:43:27 +00:00
field and password history domains/views
This commit is contained in:
20
src/Core/Models/View/FieldView.cs
Normal file
20
src/Core/Models/View/FieldView.cs
Normal file
@@ -0,0 +1,20 @@
|
||||
using Bit.Core.Enums;
|
||||
using Bit.Core.Models.Domain;
|
||||
|
||||
namespace Bit.Core.Models.View
|
||||
{
|
||||
public class FieldView : View
|
||||
{
|
||||
public FieldView() { }
|
||||
|
||||
public FieldView(Field f)
|
||||
{
|
||||
Type = f.Type;
|
||||
}
|
||||
|
||||
public string Name { get; set; }
|
||||
public string Value { get; set; }
|
||||
public FieldType Type { get; set; }
|
||||
public string MaskedValue => Value != null ? "••••••••" : null;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user