mirror of
https://github.com/bitwarden/mobile
synced 2026-02-14 07:13:18 +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>
27 lines
640 B
C#
27 lines
640 B
C#
using System.Collections.Generic;
|
|
using Bit.Core.Models.View;
|
|
using Newtonsoft.Json;
|
|
|
|
namespace Bit.Core.Models.Export
|
|
{
|
|
public class CipherWithId : Cipher
|
|
{
|
|
public CipherWithId(CipherView obj) : base(obj)
|
|
{
|
|
Id = obj.Id;
|
|
CollectionIds = null;
|
|
}
|
|
|
|
public CipherWithId(Domain.Cipher obj) : base(obj)
|
|
{
|
|
Id = obj.Id;
|
|
CollectionIds = null;
|
|
}
|
|
|
|
[JsonProperty(Order = int.MinValue)]
|
|
public string Id { get; set; }
|
|
[JsonProperty(Order = int.MaxValue)]
|
|
public HashSet<string> CollectionIds { get; set; }
|
|
}
|
|
}
|