Exemple #1
0
        public override LicenseCustomerInfo getCustomerInfo()
        {
            LicenseCustomerInfo info = new LicenseCustomerInfo();

            info.customer      = "Licensed under GNU Affero General Public License v3.0";
            info.customer_addr = null;
            info.customer_www  = "http://www.gnu.org/licenses/agpl-3.0.html";
            info.customer_mail = null;
            info.customer_info = null;
            info.customer_logo = null;

            return(info);
        }
Exemple #2
0
        public override LicenseCustomerInfo getCustomerInfo()
        {
            if (null == license)
                    return null;

                DateTime now = DateTime.Now;

                bool found = license.isLicenseFound();
                bool correct = license.isLicenseCorrect();
                bool notStarted = (license.getStartDate() > now);
                bool expired = (license.getEndDate() < now) && (license.getEndDateThreshold() > now);
                bool fully_expired = notStarted || (license.getEndDateThreshold() < now);

                if (notStarted && found && correct)
                {
                    LicenseCustomerInfo infoUnreg = new LicenseCustomerInfo();
                    infoUnreg.customer = license.getCustomer();
                    infoUnreg.customer_addr = license.getCustomerAddr();
                    infoUnreg.customer_www = license.getCustomerWww();
                    infoUnreg.customer_mail = license.getCustomerMail();
                    infoUnreg.customer_logo = license.getCustomerLogo();
                    infoUnreg.customer_info = "License starts on " + license.getStartDate().ToUniversalTime().ToString("MM/dd/yyyy H:mm:ss zzz") + "(UTC)";
                }
                if (fully_expired || !found || !correct)
                {
                    LicenseCustomerInfo infoUnreg = new LicenseCustomerInfo();
                    infoUnreg.customer = "Unregistered";
                    return infoUnreg;
                }

                LicenseCustomerInfo info = new LicenseCustomerInfo();
                info.customer = license.getCustomer();
                info.customer_addr = license.getCustomerAddr();
                info.customer_www = license.getCustomerWww();
                info.customer_mail = license.getCustomerMail();
                info.customer_info = expired ? "License has expired" : license.getCustomerInfo();
                info.customer_logo = license.getCustomerLogo();

                return info;
        }
Exemple #3
0
        public override LicenseCustomerInfo getCustomerInfo()
        {
            LicenseCustomerInfo info = new LicenseCustomerInfo();
                info.customer = "Licensed under GNU Affero General Public License v3.0";
                info.customer_addr = null;
                info.customer_www = "http://www.gnu.org/licenses/agpl-3.0.html";
                info.customer_mail = null;
                info.customer_info = null;
                info.customer_logo = null;

                return info;
        }