예제 #1
0
        public void SetConsentData(Dictionary <string, string> consentMap, bool restricted)
        {
            IntPtr mutableDictionary = Externs.GADUMVerizonMediaCreateMutableDictionary();

            if (mutableDictionary != IntPtr.Zero)
            {
                foreach (KeyValuePair <string, string> entry in consentMap)
                {
                    Externs.GADUMVerizonMediaDictionaryAddObject(mutableDictionary, entry.Key, entry.Value);
                }

                Externs.GADUMVerizonMediaSetConsentData(mutableDictionary, restricted);
            }
        }
        public void SetPrivacyData(Dictionary <string, string> privacyData)
        {
            IntPtr mutableDictionary = Externs.GADUMVerizonMediaCreateMutableDictionary();

            if (mutableDictionary != IntPtr.Zero)
            {
                foreach (KeyValuePair <string, string> entry in privacyData)
                {
                    Externs.GADUMVerizonMediaDictionaryAddObject(mutableDictionary, entry.Key, entry.Value);
                }

                Externs.GADUMVerizonMediaSetPrivacyData(mutableDictionary);
            }
        }