Exemplo n.º 1
0
        public ApiApplicationSettings()
        {
            //Pages
            List <MobileAppPage> allPages = MobileAppPagesHelper.GetList();

            pages = new List <ApiPage>();

            foreach (var page in allPages)
            {
                pages.Add(new ApiPage(page));
            }

            //Facebook Login
            facebookLoginEnabled  = AppSettings.Authentication.IsFacebookEnabled;
            facebookApplicationID = AppSettings.Facebook.ApplicationId;

            //Currency
            currencyCode          = AppSettings.Site.CurrencyCode;
            currencySign          = AppSettings.Site.CurrencySign;
            currencyDecimalPlaces = CoreSettings.GetMaxDecimalPlaces();
        }
Exemplo n.º 2
0
 public ApiPage(MobileAppPage appPage)
 {
     pageId   = (int)appPage;
     pageName = appPage.ToString();
     enabled  = MobileAppPagesHelper.IsEnabled(appPage);
 }