@@ -6,6 +6,7 @@ namespace ConsentManagementProviderLib.Enum
6
6
internal static class CSharp2JavaStringEnumMapper
7
7
{
8
8
static Dictionary < PRIVACY_MANAGER_TAB , string > privacyManagerTabToJavaEnumKey ;
9
+ static Dictionary < PRIVACY_MANAGER_TAB , string > privacyManagerTabToJavaEnum ;
9
10
static Dictionary < CAMPAIGN_ENV , string > campaignEnvToJavaEnumKey ;
10
11
static Dictionary < MESSAGE_LANGUAGE , string > messageLanguageToJavaKey ;
11
12
static Dictionary < MESSAGE_LANGUAGE , string > messageFullLanguageToJavaKey ;
@@ -35,12 +36,18 @@ public static string GetPrivacyManagerTabKey(PRIVACY_MANAGER_TAB tab)
35
36
{
36
37
return privacyManagerTabToJavaEnumKey [ tab ] ;
37
38
}
39
+
40
+ public static string GetPrivacyManagerTab ( PRIVACY_MANAGER_TAB tab )
41
+ {
42
+ return privacyManagerTabToJavaEnum [ tab ] ;
43
+ }
38
44
#endregion
39
45
40
46
#region Initializers
41
47
private static void InitializeMapping ( )
42
48
{
43
49
InitializePrivacyManagerTabMapping ( ) ;
50
+ InitializePrivacyManagerTabMappingKey ( ) ;
44
51
InitializeCampaignEnvMapping ( ) ;
45
52
InitializeMessageLanguageMapping ( ) ;
46
53
InitializeMessageFullLanguageMapping ( ) ;
@@ -127,14 +134,23 @@ private static void InitializeCampaignEnvMapping()
127
134
campaignEnvToJavaEnumKey . Add ( CAMPAIGN_ENV . STAGE , CAMPAIGN_ENV_STRING_KEY . STAGE ) ;
128
135
}
129
136
130
- private static void InitializePrivacyManagerTabMapping ( )
137
+ private static void InitializePrivacyManagerTabMappingKey ( )
131
138
{
132
139
privacyManagerTabToJavaEnumKey = new Dictionary < PRIVACY_MANAGER_TAB , string > ( ) ;
133
140
privacyManagerTabToJavaEnumKey . Add ( PRIVACY_MANAGER_TAB . DEFAULT , PRIVACY_MANAGER_TAB_STRING_KEY . DEFAULT ) ;
134
141
privacyManagerTabToJavaEnumKey . Add ( PRIVACY_MANAGER_TAB . PURPOSES , PRIVACY_MANAGER_TAB_STRING_KEY . PURPOSES ) ;
135
142
privacyManagerTabToJavaEnumKey . Add ( PRIVACY_MANAGER_TAB . VENDORS , PRIVACY_MANAGER_TAB_STRING_KEY . VENDORS ) ;
136
143
privacyManagerTabToJavaEnumKey . Add ( PRIVACY_MANAGER_TAB . FEATURES , PRIVACY_MANAGER_TAB_STRING_KEY . FEATURES ) ;
137
144
}
145
+
146
+ private static void InitializePrivacyManagerTabMapping ( )
147
+ {
148
+ privacyManagerTabToJavaEnum = new Dictionary < PRIVACY_MANAGER_TAB , string > ( ) ;
149
+ privacyManagerTabToJavaEnum . Add ( PRIVACY_MANAGER_TAB . DEFAULT , PRIVACY_MANAGER_TAB_STRING . DEFAULT ) ;
150
+ privacyManagerTabToJavaEnum . Add ( PRIVACY_MANAGER_TAB . PURPOSES , PRIVACY_MANAGER_TAB_STRING . PURPOSES ) ;
151
+ privacyManagerTabToJavaEnum . Add ( PRIVACY_MANAGER_TAB . VENDORS , PRIVACY_MANAGER_TAB_STRING . VENDORS ) ;
152
+ privacyManagerTabToJavaEnum . Add ( PRIVACY_MANAGER_TAB . FEATURES , PRIVACY_MANAGER_TAB_STRING . FEATURES ) ;
153
+ }
138
154
#endregion
139
155
}
140
156
}
0 commit comments