110 lines
2.4 KiB
C#
110 lines
2.4 KiB
C#
namespace Bitvault;
|
|
|
|
public record ItemConfiguration
|
|
{
|
|
public string Name { get; set; } = "";
|
|
|
|
public IList<ItemSectionConfiguration>? Sections { get; set; }
|
|
|
|
|
|
|
|
|
|
public static ItemConfiguration Identity => new()
|
|
{
|
|
Name = "Identity",
|
|
Sections = new List<ItemSectionConfiguration>
|
|
{
|
|
|
|
}
|
|
};
|
|
|
|
public static ItemConfiguration BankAccount => new()
|
|
{
|
|
Name = "Bank Account",
|
|
Sections = new List<ItemSectionConfiguration>
|
|
{
|
|
|
|
}
|
|
};
|
|
|
|
public static ItemConfiguration Note => new()
|
|
{
|
|
Name = "Note",
|
|
Sections = new List<ItemSectionConfiguration>
|
|
{
|
|
|
|
}
|
|
};
|
|
|
|
|
|
public static ItemConfiguration Document => new()
|
|
{
|
|
Name = "Document",
|
|
Sections = new List<ItemSectionConfiguration>
|
|
{
|
|
|
|
}
|
|
};
|
|
|
|
public static ItemConfiguration DrivingLicence => new()
|
|
{
|
|
Name = "Driving Licence",
|
|
Sections = new List<ItemSectionConfiguration>
|
|
{
|
|
|
|
}
|
|
};
|
|
|
|
|
|
public static ItemConfiguration Login => new()
|
|
{
|
|
Name = "Login",
|
|
Sections = new List<ItemSectionConfiguration>
|
|
{
|
|
|
|
}
|
|
};
|
|
|
|
public static ItemConfiguration Password => new()
|
|
{
|
|
Name = "Password",
|
|
Sections = new List<ItemSectionConfiguration>
|
|
{
|
|
|
|
}
|
|
};
|
|
|
|
public static ItemConfiguration CreditCard => new()
|
|
{
|
|
Name = "Credit Card",
|
|
Sections = new List<ItemSectionConfiguration>
|
|
{
|
|
new()
|
|
{
|
|
Entries = new List<ItemEntryConfiguration>
|
|
{
|
|
new TextEntryConfiguration
|
|
{
|
|
Label = "Cardholder name"
|
|
},
|
|
new DropdownEntryConfiguration
|
|
{
|
|
Label = "Type",
|
|
},
|
|
new MaskedTextEntryConfiguration
|
|
{
|
|
Label = "Card number"
|
|
},
|
|
new MaskedTextEntryConfiguration
|
|
{
|
|
Label = "Expiry date"
|
|
},
|
|
new MaskedTextEntryConfiguration
|
|
{
|
|
Label = "Card verification code"
|
|
},
|
|
}
|
|
}
|
|
}
|
|
};
|
|
} |