/// <summary> /// Save the feed options using the given feed option keys /// </summary> /// <param name="settingKeys">Feed Option Setting Keys</param> public void Save(IFeedOptionKeys settingKeys) { if (IsDirty) { StoreSettingCollection settings = Token.Instance.Store.Settings; settings.SetValueByKey(settingKeys.CompressedFeedFileName, CompressedFeedFileName); settings.SetValueByKey(settingKeys.FeedFileName, FeedFileName); settings.SetValueByKey(settingKeys.FtpHost, FtpHost); settings.SetValueByKey(settingKeys.FtpPassword, FtpPassword); settings.SetValueByKey(settingKeys.FtpUser, FtpUser); settings.SetValueByKey(settingKeys.IncludeAllProducts, IncludeAllProducts.ToString()); settings.SetValueByKey(settingKeys.OverwriteCompressedFile, OverwriteCompressedFile.ToString()); settings.SetValueByKey(settingKeys.OverwriteFeedFile, OverwriteFeedFile.ToString()); settings.SetValueByKey(settingKeys.RemoteFileName, RemoteFileName); settings.Save(); } }
public void Save(ISiteMapOptionKeys settingKeys) { if (IsDirty) { StoreSettingCollection settings = Token.Instance.Store.Settings; settings.SetValueByKey(settingKeys.CompressedSiteMapFileName, CompressedSiteMapFileName); settings.SetValueByKey(settingKeys.SiteMapDataPath, SiteMapDataPath); settings.SetValueByKey(settingKeys.SiteMapFileName, SiteMapFileName); settings.SetValueByKey(settingKeys.IncludeProducts, IncludeProducts.ToString()); settings.SetValueByKey(settingKeys.IncludeCategories, IncludeCategories.ToString()); settings.SetValueByKey(settingKeys.IncludeWebpages, IncludeWebpages.ToString()); settings.SetValueByKey(settingKeys.OverwriteCompressedFile, OverwriteCompressedFile.ToString()); settings.SetValueByKey(settingKeys.OverwriteSiteMapFile, OverwriteSiteMapFile.ToString()); settings.SetValueByKey(settingKeys.DefaultChangeFrequency, DefaultChangeFrequency.ToString()); settings.SetValueByKey(settingKeys.DefaultUrlPriority, DefaultUrlPriority.ToString()); settings.Save(); } }