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(); }
public ApiPage(MobileAppPage appPage) { pageId = (int)appPage; pageName = appPage.ToString(); enabled = MobileAppPagesHelper.IsEnabled(appPage); }