mirror of
https://github.com/wismna/ModernKeePass.git
synced 2025-10-03 15:40:18 -04:00
WIP Clean Architecture
Windows 8.1 App Uses keepasslib v2.44 (temporarily)
This commit is contained in:
14
ModernKeePass.Domain/Entities/BaseEntity.cs
Normal file
14
ModernKeePass.Domain/Entities/BaseEntity.cs
Normal file
@@ -0,0 +1,14 @@
|
||||
using System;
|
||||
using System.Drawing;
|
||||
|
||||
namespace ModernKeePass.Domain.Entities
|
||||
{
|
||||
public class BaseEntity
|
||||
{
|
||||
public string Id { get; set; }
|
||||
public string Name { get; set; }
|
||||
public Color ForegroundColor { get; set; }
|
||||
public Color BackgroundColor { get; set; }
|
||||
public DateTimeOffset LastModificationDate { get; set; }
|
||||
}
|
||||
}
|
9
ModernKeePass.Domain/Entities/DatabaseEntity.cs
Normal file
9
ModernKeePass.Domain/Entities/DatabaseEntity.cs
Normal file
@@ -0,0 +1,9 @@
|
||||
namespace ModernKeePass.Domain.Entities
|
||||
{
|
||||
public class DatabaseEntity
|
||||
{
|
||||
public string Name { get; set; }
|
||||
|
||||
public GroupEntity RootGroupEntity { get; set; }
|
||||
}
|
||||
}
|
19
ModernKeePass.Domain/Entities/EntryEntity.cs
Normal file
19
ModernKeePass.Domain/Entities/EntryEntity.cs
Normal file
@@ -0,0 +1,19 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using ModernKeePass.Domain.Enums;
|
||||
|
||||
namespace ModernKeePass.Domain.Entities
|
||||
{
|
||||
public class EntryEntity: BaseEntity
|
||||
{
|
||||
public string UserName { get; set; }
|
||||
public string Password { get; set; }
|
||||
public Uri Url { get; set; }
|
||||
public string Notes { get; set; }
|
||||
public DateTimeOffset ExpirationDate { get; set; }
|
||||
public Dictionary<string, string> AdditionalFields { get; set; } = new Dictionary<string, string>();
|
||||
public IEnumerable<EntryEntity> History { get; set; }
|
||||
public Icon Icon { get; set; }
|
||||
public bool HasExpirationDate { get; set; }
|
||||
}
|
||||
}
|
12
ModernKeePass.Domain/Entities/GroupEntity.cs
Normal file
12
ModernKeePass.Domain/Entities/GroupEntity.cs
Normal file
@@ -0,0 +1,12 @@
|
||||
using System.Collections.Generic;
|
||||
using ModernKeePass.Domain.Enums;
|
||||
|
||||
namespace ModernKeePass.Domain.Entities
|
||||
{
|
||||
public class GroupEntity : BaseEntity
|
||||
{
|
||||
public List<GroupEntity> SubGroups { get; set; } = new List<GroupEntity>();
|
||||
public List<EntryEntity> Entries { get; set; } = new List<EntryEntity>();
|
||||
public Icon Icon { get; set; }
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user