mirror of
https://github.com/bitwarden/mobile
synced 2026-02-05 02:53:14 +00:00
* Enable Encrypted json export of vaults * Match jslib export of non-org ciphers * Clean up export * Update src/App/Pages/Settings/ExportVaultPage.xaml.cs Co-authored-by: Kyle Spearrin <kspearrin@users.noreply.github.com> Co-authored-by: Matt Gibson <mdgibson@Matts-MBP.lan> Co-authored-by: Kyle Spearrin <kspearrin@users.noreply.github.com>
38 lines
809 B
C#
38 lines
809 B
C#
using Bit.Core.Enums;
|
|
using Bit.Core.Models.View;
|
|
|
|
namespace Bit.Core.Models.Export
|
|
{
|
|
public class LoginUri
|
|
{
|
|
public LoginUri() { }
|
|
|
|
public LoginUri(LoginUriView obj)
|
|
{
|
|
Match = obj.Match;
|
|
Uri = obj.Uri;
|
|
}
|
|
|
|
public LoginUri(Domain.LoginUri obj)
|
|
{
|
|
Match = obj.Match;
|
|
Uri = obj.Uri?.EncryptedString;
|
|
}
|
|
|
|
public UriMatchType? Match { get; set; }
|
|
public string Uri { get; set; }
|
|
|
|
public static LoginUriView ToView(LoginUri req, LoginUriView view = null)
|
|
{
|
|
if (view == null)
|
|
{
|
|
view = new LoginUriView();
|
|
}
|
|
|
|
view.Match = req.Match;
|
|
view.Uri = req.Uri;
|
|
return view;
|
|
}
|
|
}
|
|
}
|