1
0
mirror of https://github.com/bitwarden/mobile synced 2025-12-16 00:03:22 +00:00

domains and view stubs

This commit is contained in:
Kyle Spearrin
2019-04-12 16:39:20 -04:00
parent 7c6c36b744
commit 8ade49c958
9 changed files with 292 additions and 30 deletions

View File

@@ -0,0 +1,20 @@
using Bit.Core.Models.Domain;
namespace Bit.Core.Models.View
{
public class CardView : View
{
public CardView() { }
public CardView(Card c) { }
public string Id { get; set; }
public string Url { get; set; }
public string Size { get; set; }
public string SizeName { get; set; }
public string FileName { get; set; }
public SymmetricCryptoKey Key { get; set; }
// TODO
}
}

View File

@@ -0,0 +1,32 @@
using Bit.Core.Models.Domain;
namespace Bit.Core.Models.View
{
public class IdentityView : View
{
public IdentityView() { }
public IdentityView(Identity i) { }
public string Title { get; set; }
public string FirstName { get; set; }
public string MiddleName { get; set; }
public string LastName { get; set; }
public string Address1 { get; set; }
public string Address2 { get; set; }
public string Address3 { get; set; }
public string City { get; set; }
public string State { get; set; }
public string PostalCode { get; set; }
public string Country { get; set; }
public string Company { get; set; }
public string Email { get; set; }
public string Phone { get; set; }
public string SSN { get; set; }
public string Username { get; set; }
public string PassportNumber { get; set; }
public string LicenseNumber { get; set; }
// TODO
}
}

View File

@@ -0,0 +1,18 @@
using Bit.Core.Enums;
using Bit.Core.Models.Domain;
namespace Bit.Core.Models.View
{
public class SecureNoteView : View
{
public SecureNoteView() { }
public SecureNoteView(SecureNote n)
{
Type = n.Type;
}
public SecureNoteType Type { get; set; }
public string SubTitle => null;
}
}