1
0
mirror of https://github.com/bitwarden/mobile synced 2026-02-14 07:13:18 +00:00
Files
mobile/src/Core/Models/Export/CipherWithId.cs
Matt Gibson 3227daddaf Enable Encrypted json export of vaults (#1174)
* 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>
2020-12-14 11:56:13 -06:00

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; }
}
}