From bba0a377b5ee1b29792c5c8109461c3821ce7dae Mon Sep 17 00:00:00 2001 From: Andre Beging Date: Tue, 31 May 2022 11:36:58 +0200 Subject: [PATCH] Enums zusammengelegt --- .../Entity/AuditType.cs | 23 --- FoodsharingSiegen.Contracts/Entity/Enums.cs | 161 ++++++++++++++++++ .../Entity/InteractionType.cs | 37 ---- .../Entity/UserGroup.cs | 43 ----- .../Entity/UserType.cs | 39 ----- 5 files changed, 161 insertions(+), 142 deletions(-) delete mode 100644 FoodsharingSiegen.Contracts/Entity/AuditType.cs create mode 100644 FoodsharingSiegen.Contracts/Entity/Enums.cs delete mode 100644 FoodsharingSiegen.Contracts/Entity/InteractionType.cs delete mode 100644 FoodsharingSiegen.Contracts/Entity/UserGroup.cs delete mode 100644 FoodsharingSiegen.Contracts/Entity/UserType.cs diff --git a/FoodsharingSiegen.Contracts/Entity/AuditType.cs b/FoodsharingSiegen.Contracts/Entity/AuditType.cs deleted file mode 100644 index 7284c2c..0000000 --- a/FoodsharingSiegen.Contracts/Entity/AuditType.cs +++ /dev/null @@ -1,23 +0,0 @@ -namespace FoodsharingSiegen.Contracts.Entity -{ - public enum AuditType : int - { - None = 0, - - // Profile - SaveProfile = 10, - SetOwnPassword = 20, - - // Usermanagement - CreateUser = 30, - UpdateUser = 40, - RemoveUser = 50, - SetUserPassword = 60, - - // Prospect - CreateProspect = 70, - EditProspect = 80, - AddInteraction = 90, - RemoveInteraction = 100 - } -} \ No newline at end of file diff --git a/FoodsharingSiegen.Contracts/Entity/Enums.cs b/FoodsharingSiegen.Contracts/Entity/Enums.cs new file mode 100644 index 0000000..e283e20 --- /dev/null +++ b/FoodsharingSiegen.Contracts/Entity/Enums.cs @@ -0,0 +1,161 @@ +namespace FoodsharingSiegen.Contracts.Entity +{ + /// + /// The audit type enum + /// + public enum AuditType + { + /// + /// The none audit type + /// + None = 0, + + // Profile + /// + /// The save profile audit type + /// + SaveProfile = 10, + + /// + /// The set own password audit type + /// + SetOwnPassword = 20, + + #region Usermanagement + + /// + /// The create user audit type + /// + CreateUser = 30, + + /// + /// The update user audit type + /// + UpdateUser = 40, + + /// + /// The remove user audit type + /// + RemoveUser = 50, + + /// + /// The set user password audit type + /// + SetUserPassword = 60, + + #endregion Usermanagement + + #region Prospects + + // Prospect + /// + /// The create prospect audit type + /// + CreateProspect = 70, + + /// + /// The edit prospect audit type + /// + EditProspect = 80, + + /// + /// The add interaction audit type + /// + AddInteraction = 90, + + /// + /// The remove interaction audit type + /// + RemoveInteraction = 100 + + #endregion Prospects + } + + /// + /// The user type enum + /// + public enum UserType + { + /// + /// The unverified user type + /// + Unverified = 100, + + /// + /// The user user type + /// + User = 200, + + /// + /// The admin user type + /// + Admin = 300 + } + + /// + /// The user group enum + /// + public enum UserGroup + { + /// + /// The read only user group + /// + ReadOnly = 100, + + /// + /// The welcome team user group + /// + WelcomeTeam = 200, + + /// + /// The store manager user group + /// + StoreManager = 300, + + /// + /// The ambassador user group + /// + Ambassador = 400 + } + + /// + /// The interaction type enum + /// + public enum InteractionType + { + /// + /// The ein ab interaction type + /// + EinAb = 10, + + /// + /// The welcome interaction type + /// + Welcome = 20, + + /// + /// The id check interaction type + /// + IdCheck = 30, + + /// + /// The print pass interaction type + /// + PrintPass = 40, + + /// + /// The pdf pass interaction type + /// + PdfPass = 50, + + /// + /// The verify interaction type + /// + Verify = 60, + + /// + /// The complete interaction type + /// + Complete = 70 + } +} \ No newline at end of file diff --git a/FoodsharingSiegen.Contracts/Entity/InteractionType.cs b/FoodsharingSiegen.Contracts/Entity/InteractionType.cs deleted file mode 100644 index 60bc430..0000000 --- a/FoodsharingSiegen.Contracts/Entity/InteractionType.cs +++ /dev/null @@ -1,37 +0,0 @@ -namespace FoodsharingSiegen.Contracts.Entity -{ - /// - /// The interaction type enum - /// - public enum InteractionType : int - { - /// - /// The ein ab interaction type - /// - EinAb = 10, - /// - /// The welcome interaction type - /// - Welcome = 20, - /// - /// The id check interaction type - /// - IdCheck = 30, - /// - /// The print pass interaction type - /// - PrintPass = 40, - /// - /// The pdf pass interaction type - /// - PdfPass = 50, - /// - /// The verify interaction type - /// - Verify = 60, - /// - /// The complete interaction type - /// - Complete = 70 - } -} diff --git a/FoodsharingSiegen.Contracts/Entity/UserGroup.cs b/FoodsharingSiegen.Contracts/Entity/UserGroup.cs deleted file mode 100644 index 6a1f87f..0000000 --- a/FoodsharingSiegen.Contracts/Entity/UserGroup.cs +++ /dev/null @@ -1,43 +0,0 @@ -//------------------------------------------------------------------------------ -// This is auto-generated code. -//------------------------------------------------------------------------------ -// This code was generated by Entity Developer tool using EF Core template. -// Code is generated on: 11.04.2022 17:16:51 -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -//------------------------------------------------------------------------------ - -using System; -using System.Collections.Generic; -using System.ComponentModel; -using System.Data; -using System.Data.Common; -using System.Linq; -using System.Linq.Expressions; - -namespace FoodsharingSiegen.Contracts.Entity -{ - /// - /// The user group enum - /// - public enum UserGroup : int - { - /// - /// The read only user group - /// - ReadOnly = 100, - /// - /// The welcome team user group - /// - WelcomeTeam = 200, - /// - /// The store manager user group - /// - StoreManager = 300, - /// - /// The ambassador user group - /// - Ambassador = 400 - } -} diff --git a/FoodsharingSiegen.Contracts/Entity/UserType.cs b/FoodsharingSiegen.Contracts/Entity/UserType.cs deleted file mode 100644 index e223af3..0000000 --- a/FoodsharingSiegen.Contracts/Entity/UserType.cs +++ /dev/null @@ -1,39 +0,0 @@ -//------------------------------------------------------------------------------ -// This is auto-generated code. -//------------------------------------------------------------------------------ -// This code was generated by Entity Developer tool using EF Core template. -// Code is generated on: 11.04.2022 17:16:51 -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -//------------------------------------------------------------------------------ - -using System; -using System.Collections.Generic; -using System.ComponentModel; -using System.Data; -using System.Data.Common; -using System.Linq; -using System.Linq.Expressions; - -namespace FoodsharingSiegen.Contracts.Entity -{ - /// - /// The user type enum - /// - public enum UserType : int - { - /// - /// The unverified user type - /// - Unverified = 100, - /// - /// The user user type - /// - User = 200, - /// - /// The admin user type - /// - Admin = 300, - } -}