using Umbraco.Cms.Core.Models; namespace Umbraco.Extensions; /// /// Provides extension methods for the interface. /// public static class ConsentExtensions { /// /// Determines whether the consent is granted. /// public static bool IsGranted(this IConsent consent) => (consent.State & ConsentState.Granted) > 0; /// /// Determines whether the consent is revoked. /// public static bool IsRevoked(this IConsent consent) => (consent.State & ConsentState.Revoked) > 0; }