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:
32
src/Core/Models/Domain/SecureNote.cs
Normal file
32
src/Core/Models/Domain/SecureNote.cs
Normal 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
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user