Exemplo n.º 1
0
        public IEnumerator Ready()
        {
            this.network = new ConfirmGDPR_Network();
            APIRequestTask requestInfo = this.network.GetRequestInfo();

            RestrictionInput.StartLoad(RestrictionInput.LoadType.LARGE_IMAGE_MASK_ON);
            ConfirmGDPR_Network confirmGDPR_Network = this.network;
            APIRequestTask      request             = requestInfo;

            if (ConfirmGDPR.< > f__mg$cache0 == null)
            {
                ConfirmGDPR.< > f__mg$cache0 = new Action(RestrictionInput.EndLoad);
            }
            return(confirmGDPR_Network.Send(request, ConfirmGDPR.< > f__mg$cache0));
        }
Exemplo n.º 2
0
        public static CMD_ConfirmGDPR Create(ConfirmGDPR_Network network)
        {
            CMD_ConfirmGDPR cmd_ConfirmGDPR = null;

            GameWebAPI.ResponseGdprInfo.Details[] details = network.Details;
            List <ConfirmGDPR_Rule> list = new List <ConfirmGDPR_Rule>();

            for (int i = 0; i < details.Length; i++)
            {
                ConfirmGDPR_Network.GDPRWebPageType webPageType = network.GetWebPageType(details[i]);
                if (network.IsConfirmWebPage(webPageType))
                {
                    list.Add(new ConfirmGDPR_Rule(webPageType, details[i].url));
                }
            }
            if (0 < list.Count)
            {
                cmd_ConfirmGDPR         = (GUIMain.ShowCommonDialog(null, "CMD_ConfirmGDPR", null) as CMD_ConfirmGDPR);
                cmd_ConfirmGDPR.network = network;
                cmd_ConfirmGDPR.rules   = list;
            }
            return(cmd_ConfirmGDPR);
        }