From e74a740abd958805b7c08db91184637fbadd39b7 Mon Sep 17 00:00:00 2001 From: Developer 02 Date: Tue, 30 Sep 2025 16:57:54 +0200 Subject: [PATCH] refactor(CookieConsentSettings): update to be executed only on NET --- .../DTO/CookieConsentSettings.cs | 119 +++++++++--------- 1 file changed, 60 insertions(+), 59 deletions(-) diff --git a/DigitalData.Core.Abstraction.Application/DTO/CookieConsentSettings.cs b/DigitalData.Core.Abstraction.Application/DTO/CookieConsentSettings.cs index 2ffa41d..b4855d9 100644 --- a/DigitalData.Core.Abstraction.Application/DTO/CookieConsentSettings.cs +++ b/DigitalData.Core.Abstraction.Application/DTO/CookieConsentSettings.cs @@ -1,74 +1,75 @@ -namespace DigitalData.Core.Abstraction.Application.DTO +#if NET +namespace DigitalData.Core.Abstraction.Application.DTO; + +/// +/// Represents settings related to user cookie consent dialogs. Designed to be serialized into JSON format for use with JavaScript frontend libraries, +/// such as the bootstrap-cookie-consent-settings at the GitHub repository: https://github.com/shaack/bootstrap-cookie-consent-settings +/// +public class CookieConsentSettings { /// - /// Represents settings related to user cookie consent dialogs. Designed to be serialized into JSON format for use with JavaScript frontend libraries, - /// such as the bootstrap-cookie-consent-settings at the GitHub repository: https://github.com/shaack/bootstrap-cookie-consent-settings + /// URL to the privacy policy page. /// - public class CookieConsentSettings - { - /// - /// URL to the privacy policy page. - /// - public string? PrivacyPolicyUrl { get; set; } + public string? PrivacyPolicyUrl { get; set; } - /// - /// URL to the legal notice page. - /// - public string? LegalNoticeUrl { get; set; } + /// + /// URL to the legal notice page. + /// + public string? LegalNoticeUrl { get; set; } - /// - /// URL to the content of the dialog box. - /// - public string? ContentURL { get; set; } + /// + /// URL to the content of the dialog box. + /// + public string? ContentURL { get; set; } - /// - /// CSS class for the 'Agree' button. - /// - public string? ButtonAgreeClass { get; set; } + /// + /// CSS class for the 'Agree' button. + /// + public string? ButtonAgreeClass { get; set; } - /// - /// CSS class for the 'Don't Agree' button. - /// - public string? ButtonDontAgreeClass { get; set; } + /// + /// CSS class for the 'Don't Agree' button. + /// + public string? ButtonDontAgreeClass { get; set; } - /// - /// CSS class for the 'Save' button. - /// - public string? ButtonSaveClass { get; set; } + /// + /// CSS class for the 'Save' button. + /// + public string? ButtonSaveClass { get; set; } - /// - /// Language in which the modal is displayed. - /// - public string? Lang { get; set; } + /// + /// Language in which the modal is displayed. + /// + public string? Lang { get; set; } - /// - /// Default language for the modal if the user's browser language is not supported. - /// - public string? DefaultLang { get; set; } + /// + /// Default language for the modal if the user's browser language is not supported. + /// + public string? DefaultLang { get; set; } - /// - /// Name of the cookie used to store the consent status. - /// - public string? CookieName { get; set; } + /// + /// Name of the cookie used to store the consent status. + /// + public string? CookieName { get; set; } - /// - /// Number of days the cookie will be stored. - /// - public int CookieStorageDays { get; set; } + /// + /// Number of days the cookie will be stored. + /// + public int CookieStorageDays { get; set; } - /// - /// Identifier for the modal dialog element. - /// - public string? ModalId { get; set; } + /// + /// Identifier for the modal dialog element. + /// + public string? ModalId { get; set; } - /// - /// Indicates whether to also store the settings in the browser's localStorage. - /// - public bool AlsoUseLocalStorage { get; set; } + /// + /// Indicates whether to also store the settings in the browser's localStorage. + /// + public bool AlsoUseLocalStorage { get; set; } - /// - /// List of categories for cookie consent. - /// - public List? Categories { get; set; } - } -} \ No newline at end of file + /// + /// List of categories for cookie consent. + /// + public List? Categories { get; set; } +} +#endif \ No newline at end of file