/// <summary> /// Helper method to confirm if the persisted category is consented to. /// </summary> /// <returns><c>true</c>, if the category is consented to, <c>false</c> otherwise.</returns> /// <param name="name">Name.</param> private bool IsConsentedToCategory(ConsentManager.ConsentCategory name) { ConsentManager.ConsentCategory[] consents = TealiumConsts.DefaultInstance.ConsentManager.UserConsentCategories; for (int i = 0; i < consents.Length; i++) { if (consents[i] == name) { return(true); } } return(false); }
public CategoryModel(ConsentManager.ConsentCategory name, bool optedIn) { this.name = name; this.optedIn = optedIn; }