1
0
mirror of https://github.com/bitwarden/mobile synced 2025-12-14 23:33:34 +00:00

domains and view stubs

This commit is contained in:
Kyle Spearrin
2019-04-12 16:39:20 -04:00
parent 7c6c36b744
commit 8ade49c958
9 changed files with 292 additions and 30 deletions

View File

@@ -0,0 +1,32 @@
using Bit.Core.Enums;
using Bit.Core.Models.Data;
using Bit.Core.Models.View;
using System.Threading.Tasks;
namespace Bit.Core.Models.Domain
{
public class SecureNote : Domain
{
public SecureNote() { }
public SecureNote(SecureNoteData obj, bool alreadyEncrypted = false)
{
Type = obj.Type;
}
public SecureNoteType Type { get; set; }
public Task<SecureNoteView> DecryptAsync(string orgId)
{
return Task.FromResult(new SecureNoteView(this));
}
public SecureNoteData ToLoginUriData()
{
return new SecureNoteData
{
Type = Type
};
}
}
}