1
0
mirror of https://github.com/bitwarden/mobile synced 2025-12-31 15:43:19 +00:00

Added site favorite option

This commit is contained in:
Kyle Spearrin
2016-06-14 22:36:37 -04:00
parent cd9d06b0b3
commit 3c14eaf3f8
6 changed files with 27 additions and 0 deletions

View File

@@ -21,6 +21,7 @@ namespace Bit.App.Models.Data
Username = site.Username?.EncryptedString;
Password = site.Password?.EncryptedString;
Notes = site.Notes?.EncryptedString;
Favorite = site.Favorite;
}
public SiteData(SiteResponse site, string userId)
@@ -33,6 +34,7 @@ namespace Bit.App.Models.Data
Username = site.Username;
Password = site.Password;
Notes = site.Notes;
Favorite = site.Favorite;
}
[PrimaryKey]
@@ -45,6 +47,7 @@ namespace Bit.App.Models.Data
public string Username { get; set; }
public string Password { get; set; }
public string Notes { get; set; }
public bool Favorite { get; set; }
public DateTime RevisionDateTime { get; set; } = DateTime.UtcNow;
public Site ToSite()