﻿namespace Yodo1.FanCraft
{
    using System.Collections.Generic;

    public class PrivacySettings
    {
        public bool CoppaAgeRestrictedUser { get; set; }
        public bool GdprConsent { get; set; }
        public bool CcpaDoNotSell { get; set; }

        public PrivacySettings()
        {
            CoppaAgeRestrictedUser = true;
            GdprConsent = false;
            CcpaDoNotSell = true;
        }

        public bool SetCOPPA
        {
            set { CoppaAgeRestrictedUser = value; }
        }

        public bool SetGDPR
        {
            set { GdprConsent = value; }
        }

        public bool SetCCPA
        {
            set { CcpaDoNotSell = value; }
        }

        public Dictionary<string, object> ToDictionary()
        {
            Dictionary<string, object> dict = new Dictionary<string, object>();
            dict.Add("coppa_age_restricted_user", CoppaAgeRestrictedUser);
            dict.Add("gdpr_consent", GdprConsent);
            dict.Add("ccpa_donot_sell", CcpaDoNotSell);
            return dict;
        }
    }
}

