Example #1
0
        /// <summary>
        /// Sets a boolean indicating whether a Property is a sensitive value on the Members profile.
        /// </summary>
        /// <param name="propertyTypeAlias">PropertyType Alias of the Property to set</param>
        /// <param name="value">Boolean value, true or false</param>
        public void SetIsSensitiveProperty(string propertyTypeAlias, bool value)
        {
            MemberTypePropertyProfileAccess propertyProfile;

            if (MemberTypePropertyTypes.TryGetValue(propertyTypeAlias, out propertyProfile))
            {
                propertyProfile.IsSensitive = value;
            }
            else
            {
                var tuple = new MemberTypePropertyProfileAccess(false, false, true);
                MemberTypePropertyTypes.Add(propertyTypeAlias, tuple);
            }
        }
Example #2
0
        /// <summary>
        /// Sets a boolean indicating whether a Property is visible on the Members profile.
        /// </summary>
        /// <param name="propertyTypeAlias">PropertyType Alias of the Property to set</param>
        /// <param name="value">Boolean value, true or false</param>
        public void SetMemberCanViewProperty(string propertyTypeAlias, bool value)
        {
            MemberTypePropertyProfileAccess propertyProfile;

            if (MemberTypePropertyTypes.TryGetValue(propertyTypeAlias, out propertyProfile))
            {
                propertyProfile.IsVisible = value;
            }
            else
            {
                var tuple = new MemberTypePropertyProfileAccess(value, false, false);
                MemberTypePropertyTypes.Add(propertyTypeAlias, tuple);
            }
        }