public override void Uninstall()
        {
            //locales
            this.DeletePluginLocaleResource("MobSocial.MessageButtonText");
            this.DeletePluginLocaleResource("MobSocial.AddFriendButtonText");
            this.DeletePluginLocaleResource("MobSocial.FriendsLabelText");
            this.DeletePluginLocaleResource("MobSocial.FriendRequestSentLabel");
            this.DeletePluginLocaleResource("MobSocial.ConfirmFriendButtonText");
            this.DeletePluginLocaleResource("SearchDropdown.PeopleSearchText");
            // do not remove core locales

            RemoveScheduledTask("Nop.Plugin.Widgets.MobSocial.Tasks.FriendRequestNotificationTask, Nop.Plugin.Widgets.MobSocial");
            RemoveScheduledTask("Nop.Plugin.Widgets.MobSocial.Tasks.VideoBattlesStatusUpdateTask, Nop.Plugin.Widgets.MobSocial");

            //delete message templates
            DeleteMessageTemplates();

            //settings
            _settingService.DeleteSetting <mobSocialSettings>();

            _context.Uninstall();

            base.Uninstall();
        }
Beispiel #2
0
        public override void Uninstall()
        {
            //locales
            this.DeletePluginLocaleResource("MobSocial.MessageButtonText");
            this.DeletePluginLocaleResource("MobSocial.AddFriendButtonText");
            this.DeletePluginLocaleResource("MobSocial.FriendsLabelText");
            this.DeletePluginLocaleResource("MobSocial.FriendRequestSentLabel");
            this.DeletePluginLocaleResource("MobSocial.ConfirmFriendButtonText");
            this.DeletePluginLocaleResource("SearchDropdown.PeopleSearchText");

            //config page locales
            this.DeletePluginLocaleResource("Nop.Plugin.WebApi.MobSocial.ProfilePictureSize");
            this.DeletePluginLocaleResource("Nop.Plugin.WebApi.MobSocial.ProfilePictureSize.Hint");
            this.DeletePluginLocaleResource("Nop.Plugin.WebApi.MobSocial.WidgetZone");
            this.DeletePluginLocaleResource("Nop.Plugin.WebApi.MobSocial.WidgetZone.Hint");
            this.DeletePluginLocaleResource("Nop.Plugin.WebApi.MobSocial.ShowProfileImagesInSearchAutoComplete");
            this.DeletePluginLocaleResource("Nop.Plugin.WebApi.MobSocial.ShowProfileImagesInSearchAutoComplete.Hint");
            this.DeletePluginLocaleResource("Nop.Plugin.WebApi.MobSocial.PeopleSearchTermMinimumLength");
            this.DeletePluginLocaleResource("Nop.Plugin.WebApi.MobSocial.PeopleSearchTermMinimumLength.Hint");
            this.DeletePluginLocaleResource("Nop.Plugin.WebApi.MobSocial.PeopleSearchAutoCompleteNumberOfResults");
            this.DeletePluginLocaleResource("Nop.Plugin.WebApi.MobSocial.PeopleSearchAutoCompleteNumberOfResults.Hint");
            this.DeletePluginLocaleResource("Nop.Plugin.WebApi.MobSocial.PeopleSearchAutoCompleteEnabled");
            this.DeletePluginLocaleResource("Nop.Plugin.WebApi.MobSocial.PeopleSearchAutoCompleteEnabled.Hint");
            this.DeletePluginLocaleResource("Nop.Plugin.WebApi.MobSocial.CustomerAlbumPictureThumbnailWidth");
            this.DeletePluginLocaleResource("Nop.Plugin.WebApi.MobSocial.CustomerAlbumPictureThumbnailWidth.Hint");
            this.DeletePluginLocaleResource("Nop.Plugin.WebApi.MobSocial.MaximumMainAlbumPictures");
            this.DeletePluginLocaleResource("Nop.Plugin.WebApi.MobSocial.MaximumMainAlbumPictures.Hint");
            this.DeletePluginLocaleResource("Nop.Plugin.WebApi.MobSocial.MaximumMainAlbumVideos");
            this.DeletePluginLocaleResource("Nop.Plugin.WebApi.MobSocial.MaximumMainAlbumVideos.Hint");
            this.DeletePluginLocaleResource("Nop.Plugin.WebApi.MobSocial.EventPageSearchTermMinimumLength");
            this.DeletePluginLocaleResource("Nop.Plugin.WebApi.MobSocial.EventPageSearchTermMinimumLength.Hint");
            this.DeletePluginLocaleResource("Nop.Plugin.WebApi.MobSocial.EventPageSearchAutoCompleteNumberOfResults");
            this.DeletePluginLocaleResource("Nop.Plugin.WebApi.MobSocial.EventPageSearchAutoCompleteNumberOfResults.Hint");
            this.DeletePluginLocaleResource("Nop.Plugin.WebApi.MobSocial.EventPageAttendanceThumbnailSize");
            this.DeletePluginLocaleResource("Nop.Plugin.WebApi.MobSocial.EventPageAttendanceThumbnailSize.Hint");
            this.DeletePluginLocaleResource("Nop.Plugin.WebApi.MobSocial.UninvitedFriendsNumberOfResults");
            this.DeletePluginLocaleResource("Nop.Plugin.WebApi.MobSocial.UninvitedFriendsNumberOfResults.Hint");
            this.DeletePluginLocaleResource("Nop.Plugin.WebApi.MobSocial.CustomerProfileUpdateViewCountAfterNumberOfSeconds");
            this.DeletePluginLocaleResource("Nop.Plugin.WebApi.MobSocial.CustomerProfileUpdateViewCountAfterNumberOfSeconds.Hint");
            this.DeletePluginLocaleResource("Nop.Plugin.WebApi.MobSocial.FacebookWebsiteAppId");
            this.DeletePluginLocaleResource("Nop.Plugin.WebApi.MobSocial.FacebookWebsiteAppId.Hint");
            this.DeletePluginLocaleResource("Nop.Plugin.WebApi.MobSocial.BusinessPageSearchUrl");
            this.DeletePluginLocaleResource("Nop.Plugin.WebApi.MobSocial.BusinessPageSearchUrl.Hint");
            this.DeletePluginLocaleResource("Nop.Plugin.WebApi.MobSocial.EchonestAPIKey");
            this.DeletePluginLocaleResource("Nop.Plugin.WebApi.MobSocial.EchonestAPIKey.Hint");
            this.DeletePluginLocaleResource("Nop.Plugin.WebApi.MobSocial.ArtistPageMainImageSize");
            this.DeletePluginLocaleResource("Nop.Plugin.WebApi.MobSocial.ArtistPageMainImageSize.Hint");
            this.DeletePluginLocaleResource("Nop.Plugin.WebApi.MobSocial.ArtistPageThumbnailSize");
            this.DeletePluginLocaleResource("Nop.Plugin.WebApi.MobSocial.ArtistPageThumbnailSize.Hint");
            this.DeletePluginLocaleResource("Nop.Plugin.WebApi.MobSocial.SevenDigitalPartnerId");
            this.DeletePluginLocaleResource("Nop.Plugin.WebApi.MobSocial.SevenDigitalPartnerId.Hint");
            this.DeletePluginLocaleResource("Nop.Plugin.WebApi.MobSocial.SongFileMaximumUploadSize");
            this.DeletePluginLocaleResource("Nop.Plugin.WebApi.MobSocial.SongFileMaximumUploadSize.Hint");
            this.DeletePluginLocaleResource("Nop.Plugin.WebApi.MobSocial.SongFileSampleMaximumUploadSize");
            this.DeletePluginLocaleResource("Nop.Plugin.WebApi.MobSocial.SongFileSampleMaximumUploadSize.Hint");
            this.DeletePluginLocaleResource("Nop.Plugin.WebApi.MobSocial.PurchasedSongFeePercentage");
            this.DeletePluginLocaleResource("Nop.Plugin.WebApi.MobSocial.PurchasedSongFeePercentage.Hint");
            this.DeletePluginLocaleResource("Nop.Plugin.WebApi.MobSocial.ShowVideoThumbnailsForBattles");
            this.DeletePluginLocaleResource("Nop.Plugin.WebApi.MobSocial.ShowVideoThumbnailsForBattles.Hint");
            this.DeletePluginLocaleResource("Nop.Plugin.WebApi.MobSocial.DefaultVotingChargeForPaidVoting");
            this.DeletePluginLocaleResource("Nop.Plugin.WebApi.MobSocial.DefaultVotingChargeForPaidVoting.Hint");
            this.DeletePluginLocaleResource("Nop.Plugin.WebApi.MobSocial.EnableAutomaticMigrations");
            this.DeletePluginLocaleResource("Nop.Plugin.WebApi.MobSocial.EnableAutomaticMigrations.Hint");
            this.DeletePluginLocaleResource("Nop.Plugin.WebApi.MobSocial.EnableFacebookInvite");
            this.DeletePluginLocaleResource("Nop.Plugin.WebApi.MobSocial.EnableFacebookInvite.Hint");
            this.DeletePluginLocaleResource("Nop.Plugin.WebApi.MobSocial.MicroMacroPaymentSwitchingAmount");
            this.DeletePluginLocaleResource("Nop.Plugin.WebApi.MobSocial.MicroMacroPaymentSwitchingAmount.Hint");
            this.DeletePluginLocaleResource("Nop.Plugin.WebApi.MobSocial.MicroPaymentsFixedPaymentProcessingFee");
            this.DeletePluginLocaleResource("Nop.Plugin.WebApi.MobSocial.MicroPaymentsFixedPaymentProcessingFee.Hint");
            this.DeletePluginLocaleResource("Nop.Plugin.WebApi.MobSocial.MicroPaymentsPaymentProcessingPercentage");
            this.DeletePluginLocaleResource("Nop.Plugin.WebApi.MobSocial.MicroPaymentsPaymentProcessingPercentage.Hint");
            this.DeletePluginLocaleResource("Nop.Plugin.WebApi.MobSocial.MacroPaymentsFixedPaymentProcessingFee");
            this.DeletePluginLocaleResource("Nop.Plugin.WebApi.MobSocial.MacroPaymentsFixedPaymentProcessingFee.Hint");
            this.DeletePluginLocaleResource("Nop.Plugin.WebApi.MobSocial.MacroPaymentsPaymentProcessingPercentage");
            this.DeletePluginLocaleResource("Nop.Plugin.WebApi.MobSocial.MacroPaymentsPaymentProcessingPercentage.Hint");
            this.DeletePluginLocaleResource("Nop.Plugin.WebApi.MobSocial.SiteOwnerSponsorshipPercentage");
            this.DeletePluginLocaleResource("Nop.Plugin.WebApi.MobSocial.SiteOwnerSponsorshipPercentage.Hint");
            this.DeletePluginLocaleResource("Nop.Plugin.WebApi.MobSocial.BattleHostSponsorshipPercentage");
            this.DeletePluginLocaleResource("Nop.Plugin.WebApi.MobSocial.BattleHostSponsorshipPercentage.Hint");
            this.DeletePluginLocaleResource("Nop.Plugin.WebApi.MobSocial.VideoUploadReminderEmailThresholdDays");
            this.DeletePluginLocaleResource("Nop.Plugin.WebApi.MobSocial.VideoUploadReminderEmailThresholdDays.Hint");
            this.DeletePluginLocaleResource("Nop.Plugin.WebApi.MobSocial.BattleVoteReminderEmailThresholdDays");
            this.DeletePluginLocaleResource("Nop.Plugin.WebApi.MobSocial.BattleVoteReminderEmailThresholdDays.Hint");
            this.DeletePluginLocaleResource("Nop.Plugin.WebApi.MobSocial.TimelineSmallImageWidth");
            this.DeletePluginLocaleResource("Nop.Plugin.WebApi.MobSocial.TimelineSmallImageWidth.Hint");

            // do not remove core locales

            RemoveScheduledTask("Nop.Plugin.WebApi.MobSocial.Tasks.FriendRequestNotificationTask");
            RemoveScheduledTask("Nop.Plugin.WebApi.MobSocial.Tasks.VideoBattlesStatusUpdateTask");

            //delete message templates
            DeleteMessageTemplates();

            //settings
            _settingService.DeleteSetting <mobSocialSettings>();

            _context.Uninstall();

            if (!MobSocialConstant.SuiteInstallation)
            {
                base.Uninstall();
            }
        }