From a1ba2bf60ba1f710e0605ad9799ac0c08d7016ee Mon Sep 17 00:00:00 2001 From: Kyle Spearrin Date: Thu, 11 Apr 2019 23:57:41 -0400 Subject: [PATCH] setup domain and view --- src/Core/Models/Domain/Cipher.cs | 13 +++++++++++++ src/Core/Models/Domain/Domain.cs | 11 +++++++++++ src/Core/Models/View/CipherView.cs | 3 ++- src/Core/Models/View/View.cs | 11 +++++++++++ 4 files changed, 37 insertions(+), 1 deletion(-) create mode 100644 src/Core/Models/Domain/Cipher.cs create mode 100644 src/Core/Models/Domain/Domain.cs create mode 100644 src/Core/Models/View/View.cs diff --git a/src/Core/Models/Domain/Cipher.cs b/src/Core/Models/Domain/Cipher.cs new file mode 100644 index 000000000..3bf083b8d --- /dev/null +++ b/src/Core/Models/Domain/Cipher.cs @@ -0,0 +1,13 @@ +using System; +using System.Collections.Generic; +using System.Text; + +namespace Bit.Core.Models.Domain +{ + public class Cipher : Domain + { + public string Id { get; set; } + public string OrganizationId { get; set; } + public CipherString Name { get; set; } + } +} diff --git a/src/Core/Models/Domain/Domain.cs b/src/Core/Models/Domain/Domain.cs new file mode 100644 index 000000000..983f627e1 --- /dev/null +++ b/src/Core/Models/Domain/Domain.cs @@ -0,0 +1,11 @@ +using System; +using System.Collections.Generic; +using System.Text; + +namespace Bit.Core.Models.Domain +{ + public abstract class Domain + { + // TODO + } +} diff --git a/src/Core/Models/View/CipherView.cs b/src/Core/Models/View/CipherView.cs index a60ebad2d..9a86df6ea 100644 --- a/src/Core/Models/View/CipherView.cs +++ b/src/Core/Models/View/CipherView.cs @@ -4,8 +4,9 @@ using System.Text; namespace Bit.Core.Models.View { - public class CipherView + public class CipherView : View { + public string Id { get; set; } public string Name { get; set; } public string Subtitle { get; set; } } diff --git a/src/Core/Models/View/View.cs b/src/Core/Models/View/View.cs new file mode 100644 index 000000000..eaaed0f91 --- /dev/null +++ b/src/Core/Models/View/View.cs @@ -0,0 +1,11 @@ +using System; +using System.Collections.Generic; +using System.Text; + +namespace Bit.Core.Models.View +{ + public abstract class View + { + // TODO + } +}