Ejemplo n.º 1
0
        public PowerShellResults <PimSubscription> NewObject(NewSubscription properties)
        {
            PowerShellResults <PimSubscription> powerShellResults = base.NewObject <PimSubscription, NewSubscription>("New-Subscription", properties);

            if (powerShellResults.Succeeded)
            {
                string text = OwaOptionStrings.NewSubscriptionSucceed(powerShellResults.Output[0].VerificationFeedbackString);
                powerShellResults.Informations = new string[]
                {
                    text
                };
                Util.NotifyOWAUserSettingsChanged(UserSettings.Mail);
            }
            return(powerShellResults);
        }
Ejemplo n.º 2
0
        public PowerShellResults <ImapSubscription> SetObject(Identity identity, SetImapSubscription properties)
        {
            PowerShellResults <ImapSubscription> powerShellResults = base.SetObject <ImapSubscription, SetImapSubscription>("Set-ImapSubscription", identity, properties);

            if (powerShellResults.Succeeded)
            {
                PowerShellResults <ImapSubscription> @object = this.GetObject(identity);
                if (@object.Succeeded)
                {
                    string verificationFeedbackString = @object.Output[0].VerificationFeedbackString;
                    if (verificationFeedbackString != null)
                    {
                        string text = OwaOptionStrings.NewSubscriptionSucceed(verificationFeedbackString);
                        powerShellResults.Informations = new string[]
                        {
                            text
                        };
                    }
                }
                Util.NotifyOWAUserSettingsChanged(UserSettings.Mail);
            }
            return(powerShellResults);
        }