mirror of
https://github.com/bitwarden/mobile
synced 2026-01-08 19:43:56 +00:00
Added site favorite option
This commit is contained in:
@@ -10,6 +10,7 @@
|
||||
Username = site.Username?.EncryptedString;
|
||||
Password = site.Password?.EncryptedString;
|
||||
Notes = site.Notes?.EncryptedString;
|
||||
Favorite = site.Favorite;
|
||||
}
|
||||
|
||||
public string FolderId { get; set; }
|
||||
@@ -18,5 +19,6 @@
|
||||
public string Username { get; set; }
|
||||
public string Password { get; set; }
|
||||
public string Notes { get; set; }
|
||||
public bool Favorite { get; set; }
|
||||
}
|
||||
}
|
||||
|
||||
@@ -11,6 +11,7 @@ namespace Bit.App.Models.Api
|
||||
public string Username { get; set; }
|
||||
public string Password { get; set; }
|
||||
public string Notes { get; set; }
|
||||
public bool Favorite { get; set; }
|
||||
public DateTime RevisionDate { get; set; }
|
||||
|
||||
// Expandables
|
||||
|
||||
@@ -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()
|
||||
|
||||
@@ -17,6 +17,7 @@ namespace Bit.App.Models
|
||||
Username = data.Username != null ? new CipherString(data.Username) : null;
|
||||
Password = data.Password != null ? new CipherString(data.Password) : null;
|
||||
Notes = data.Notes != null ? new CipherString(data.Notes) : null;
|
||||
Favorite = data.Favorite;
|
||||
}
|
||||
|
||||
public Site(SiteResponse response)
|
||||
@@ -28,6 +29,7 @@ namespace Bit.App.Models
|
||||
Username = response.Username != null ? new CipherString(response.Username) : null;
|
||||
Password = response.Password != null ? new CipherString(response.Password) : null;
|
||||
Notes = response.Notes != null ? new CipherString(response.Notes) : null;
|
||||
Favorite = response.Favorite;
|
||||
}
|
||||
|
||||
public string FolderId { get; set; }
|
||||
@@ -35,6 +37,7 @@ namespace Bit.App.Models
|
||||
public CipherString Username { get; set; }
|
||||
public CipherString Password { get; set; }
|
||||
public CipherString Notes { get; set; }
|
||||
public bool Favorite { get; set; }
|
||||
|
||||
public SiteRequest ToSiteRequest()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user