예제 #1
0
        public static KioskoModel GetKioskoConfiguration(bool downloadFromServer = false)
        {
            var file = Properties.Settings.Default.CONFIGURATION_PATH;

            if (!System.IO.File.Exists(file) || downloadFromServer)
            {
                CubiQManagerService.RequestKioskoGeneralInformation();
            }

            var response = ReadFile <KioskoModel>(file);

            //if file exists but has no content
            if (response == null)
            {
                CubiQManagerService.RequestKioskoGeneralInformation();
                response = ReadFile <KioskoModel>(file);
            }
            return(response);
        }
예제 #2
0
        public static KioskoModel GetKioskoConfiguration(bool downloadFromServer = false)
        {
            var file = Properties.Settings.Default.CONFIGURATION_PATH;

            if (!System.IO.File.Exists(file))
            {
                if (downloadFromServer)
                {
                    if (CubiQManagerService.RequestKioskoGeneralInformation())
                    {
                        return(ReadFile <KioskoModel>(file));
                    }
                }
            }
            else
            {
                return(ReadFile <KioskoModel>(file));
            }

            return(new KioskoModel());
        }
예제 #3
0
 public static void GetPaymentConfiguration(bool downloadFromServer = false)
 {
     //TODO: Read from file like GetKioskoConfiguration
     ////
     CubiQManagerService.RequestKioskoPaymentConfiguration();
 }
예제 #4
0
 public void RequestKioskoPaymentConfigurationTest()
 {
     CubiQManagerService.RequestKioskoPaymentConfiguration();
 }