mirror of
https://github.com/bitwarden/mobile
synced 2026-02-19 10:53:35 +00:00
In-app vault export support (#729)
* First pass at vault export UI * Password validation via cryptoService * Export service framework * support for constructing json export data * Support for constructing csv export data * Cleanup and simplification * Completion of vault export feature * Formatting and simplification * Use dialog instead of toast for invalid master password entry
This commit is contained in:
20
src/Core/Models/Export/CipherWithId.cs
Normal file
20
src/Core/Models/Export/CipherWithId.cs
Normal file
@@ -0,0 +1,20 @@
|
||||
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 = obj.CollectionIds;
|
||||
}
|
||||
|
||||
[JsonProperty(Order = int.MinValue)]
|
||||
public string Id { get; set; }
|
||||
[JsonProperty(Order = int.MaxValue)]
|
||||
public HashSet<string> CollectionIds { get; set; }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user