From aab81745003d641eaebc968994ecca5e9bfb91b0 Mon Sep 17 00:00:00 2001 From: TekH Date: Mon, 15 Dec 2025 15:05:10 +0100 Subject: [PATCH] Add ProfileType enum and extension for URI scheme Introduced the ProfileType enum with Http and Https values in the ReC.Domain.Constants namespace. Added ProfileTypeExtensions with a ToUriBuilderScheme method to convert enum values to their lowercase string representations for URI building. --- src/ReC.Domain/Constants/ProfileType.cs | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 src/ReC.Domain/Constants/ProfileType.cs diff --git a/src/ReC.Domain/Constants/ProfileType.cs b/src/ReC.Domain/Constants/ProfileType.cs new file mode 100644 index 0000000..e2ea063 --- /dev/null +++ b/src/ReC.Domain/Constants/ProfileType.cs @@ -0,0 +1,12 @@ +namespace ReC.Domain.Constants; + +public enum ProfileType : byte +{ + Http = 1, + Https = 2 +} + +public static class ProfileTypeExtensions +{ + public static string ToUriBuilderScheme(this ProfileType profileType) => profileType.ToString().ToLower(); +} \ No newline at end of file