33
44namespace CoreHelpers . Branding . Runtime . Services
55{
6- public class BrandingBuilderColorModel : ICompanyBrandingColors
6+ internal class BrandingBuilderColorModel : ICompanyBrandingColors
77 {
88 public string Font { get ; set ; } = string . Empty ;
99
@@ -18,7 +18,7 @@ public class BrandingBuilderColorModel : ICompanyBrandingColors
1818 public string PrimaryFont { get ; set ; } = string . Empty ;
1919 }
2020
21- public class BrandingBuilderModel : ICompanyBranding
21+ internal class BrandingBuilderModel : ICompanyBranding
2222 {
2323 public string Name { get ; set ; } = string . Empty ;
2424
@@ -27,9 +27,11 @@ public class BrandingBuilderModel : ICompanyBranding
2727 public Dictionary < nLegalItems , string > Legals { get ; } = new Dictionary < nLegalItems , string > ( ) ;
2828
2929 public ICompanyBrandingColors Colors { get ; set ; } = new BrandingBuilderColorModel ( ) ;
30+
31+ public Dictionary < string , string > Attributes { get ; set ; } = new Dictionary < string , string > ( ) ;
3032 }
31-
32- public class BrandingBuilder : IBrandingBuilder
33+
34+ internal class BrandingBuilder : IBrandingBuilder
3335 {
3436 private BrandingBuilderModel model = new BrandingBuilderModel ( ) ;
3537 private BrandingBuilderColorModel colorModel = new BrandingBuilderColorModel ( ) ;
@@ -93,6 +95,16 @@ public IBrandingBuilder SetColor(nColorType colorType, string colorValue)
9395 return this ;
9496 }
9597
98+ public IBrandingBuilder AddAttribute ( string key , string value )
99+ {
100+ if ( model . Attributes . ContainsKey ( key ) )
101+ model . Attributes [ key ] = value ;
102+ else
103+ model . Attributes . Add ( key , value ) ;
104+
105+ return this ;
106+ }
107+
96108 public ICompanyBranding Build ( )
97109 {
98110 return model ;
0 commit comments