// Copyright (c) 2012, Outercurve Foundation. // All rights reserved. // // Redistribution and use in source and binary forms, with or without modification, // are permitted provided that the following conditions are met: // // - Redistributions of source code must retain the above copyright notice, this // list of conditions and the following disclaimer. // // - Redistributions in binary form must reproduce the above copyright notice, // this list of conditions and the following disclaimer in the documentation // and/or other materials provided with the distribution. // // - Neither the name of the Outercurve Foundation nor the names of its // contributors may be used to endorse or promote products derived from this // software without specific prior written permission. // // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED // WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE // DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR // ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES // (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; // LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON // ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS // SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. //------------------------------------------------------------------------------ // // This code was generated by a tool. // Runtime Version:2.0.50727.1433 // // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. // //------------------------------------------------------------------------------ // // This source code was auto-generated by wsdl, Version=2.0.50727.42. // using WebsitePanel.Providers.Common; using WebsitePanel.Providers.ResultObjects; namespace WebsitePanel.Providers.HostedSolution { using System.Diagnostics; using System.Web.Services; using System.ComponentModel; using System.Web.Services.Protocols; using System; using System.Xml.Serialization; /// [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] [System.Web.Services.WebServiceBindingAttribute(Name="BlackBerrySoap", Namespace="http://smbsaas/websitepanel/server/")] public partial class BlackBerry : Microsoft.Web.Services3.WebServicesClientProtocol { public ServiceProviderSettingsSoapHeader ServiceProviderSettingsSoapHeaderValue; private System.Threading.SendOrPostCallback CreateBlackBerryUserOperationCompleted; private System.Threading.SendOrPostCallback DeleteBlackBerryUserOperationCompleted; private System.Threading.SendOrPostCallback GetBlackBerryUserStatsOperationCompleted; private System.Threading.SendOrPostCallback SetActivationPasswordWithExpirationTimeOperationCompleted; private System.Threading.SendOrPostCallback SetEmailActivationPasswordOperationCompleted; private System.Threading.SendOrPostCallback DeleteDataFromBlackBerryDeviceOperationCompleted; /// public BlackBerry() { this.Url = "http://exchange-dev:9003/BlackBerry.asmx"; } /// public event CreateBlackBerryUserCompletedEventHandler CreateBlackBerryUserCompleted; /// public event DeleteBlackBerryUserCompletedEventHandler DeleteBlackBerryUserCompleted; /// public event GetBlackBerryUserStatsCompletedEventHandler GetBlackBerryUserStatsCompleted; /// public event SetActivationPasswordWithExpirationTimeCompletedEventHandler SetActivationPasswordWithExpirationTimeCompleted; /// public event SetEmailActivationPasswordCompletedEventHandler SetEmailActivationPasswordCompleted; /// public event DeleteDataFromBlackBerryDeviceCompletedEventHandler DeleteDataFromBlackBerryDeviceCompleted; /// [System.Web.Services.Protocols.SoapHeaderAttribute("ServiceProviderSettingsSoapHeaderValue")] [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/server/CreateBlackBerryUser", RequestNamespace="http://smbsaas/websitepanel/server/", ResponseNamespace="http://smbsaas/websitepanel/server/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)] public ResultObject CreateBlackBerryUser(string primaryEmailAddress) { object[] results = this.Invoke("CreateBlackBerryUser", new object[] { primaryEmailAddress}); return ((ResultObject)(results[0])); } /// public System.IAsyncResult BeginCreateBlackBerryUser(string primaryEmailAddress, System.AsyncCallback callback, object asyncState) { return this.BeginInvoke("CreateBlackBerryUser", new object[] { primaryEmailAddress}, callback, asyncState); } /// public ResultObject EndCreateBlackBerryUser(System.IAsyncResult asyncResult) { object[] results = this.EndInvoke(asyncResult); return ((ResultObject)(results[0])); } /// public void CreateBlackBerryUserAsync(string primaryEmailAddress) { this.CreateBlackBerryUserAsync(primaryEmailAddress, null); } /// public void CreateBlackBerryUserAsync(string primaryEmailAddress, object userState) { if ((this.CreateBlackBerryUserOperationCompleted == null)) { this.CreateBlackBerryUserOperationCompleted = new System.Threading.SendOrPostCallback(this.OnCreateBlackBerryUserOperationCompleted); } this.InvokeAsync("CreateBlackBerryUser", new object[] { primaryEmailAddress}, this.CreateBlackBerryUserOperationCompleted, userState); } private void OnCreateBlackBerryUserOperationCompleted(object arg) { if ((this.CreateBlackBerryUserCompleted != null)) { System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); this.CreateBlackBerryUserCompleted(this, new CreateBlackBerryUserCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); } } /// [System.Web.Services.Protocols.SoapHeaderAttribute("ServiceProviderSettingsSoapHeaderValue")] [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/server/DeleteBlackBerryUser", RequestNamespace="http://smbsaas/websitepanel/server/", ResponseNamespace="http://smbsaas/websitepanel/server/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)] public ResultObject DeleteBlackBerryUser(string primaryEmailAddress) { object[] results = this.Invoke("DeleteBlackBerryUser", new object[] { primaryEmailAddress}); return ((ResultObject)(results[0])); } /// public System.IAsyncResult BeginDeleteBlackBerryUser(string primaryEmailAddress, System.AsyncCallback callback, object asyncState) { return this.BeginInvoke("DeleteBlackBerryUser", new object[] { primaryEmailAddress}, callback, asyncState); } /// public ResultObject EndDeleteBlackBerryUser(System.IAsyncResult asyncResult) { object[] results = this.EndInvoke(asyncResult); return ((ResultObject)(results[0])); } /// public void DeleteBlackBerryUserAsync(string primaryEmailAddress) { this.DeleteBlackBerryUserAsync(primaryEmailAddress, null); } /// public void DeleteBlackBerryUserAsync(string primaryEmailAddress, object userState) { if ((this.DeleteBlackBerryUserOperationCompleted == null)) { this.DeleteBlackBerryUserOperationCompleted = new System.Threading.SendOrPostCallback(this.OnDeleteBlackBerryUserOperationCompleted); } this.InvokeAsync("DeleteBlackBerryUser", new object[] { primaryEmailAddress}, this.DeleteBlackBerryUserOperationCompleted, userState); } private void OnDeleteBlackBerryUserOperationCompleted(object arg) { if ((this.DeleteBlackBerryUserCompleted != null)) { System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); this.DeleteBlackBerryUserCompleted(this, new DeleteBlackBerryUserCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); } } /// [System.Web.Services.Protocols.SoapHeaderAttribute("ServiceProviderSettingsSoapHeaderValue")] [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/server/GetBlackBerryUserStats", RequestNamespace="http://smbsaas/websitepanel/server/", ResponseNamespace="http://smbsaas/websitepanel/server/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)] public BlackBerryUserStatsResult GetBlackBerryUserStats(string primaryEmailAddress) { object[] results = this.Invoke("GetBlackBerryUserStats", new object[] { primaryEmailAddress}); return ((BlackBerryUserStatsResult)(results[0])); } /// public System.IAsyncResult BeginGetBlackBerryUserStats(string primaryEmailAddress, System.AsyncCallback callback, object asyncState) { return this.BeginInvoke("GetBlackBerryUserStats", new object[] { primaryEmailAddress}, callback, asyncState); } /// public BlackBerryUserStatsResult EndGetBlackBerryUserStats(System.IAsyncResult asyncResult) { object[] results = this.EndInvoke(asyncResult); return ((BlackBerryUserStatsResult)(results[0])); } /// public void GetBlackBerryUserStatsAsync(string primaryEmailAddress) { this.GetBlackBerryUserStatsAsync(primaryEmailAddress, null); } /// public void GetBlackBerryUserStatsAsync(string primaryEmailAddress, object userState) { if ((this.GetBlackBerryUserStatsOperationCompleted == null)) { this.GetBlackBerryUserStatsOperationCompleted = new System.Threading.SendOrPostCallback(this.OnGetBlackBerryUserStatsOperationCompleted); } this.InvokeAsync("GetBlackBerryUserStats", new object[] { primaryEmailAddress}, this.GetBlackBerryUserStatsOperationCompleted, userState); } private void OnGetBlackBerryUserStatsOperationCompleted(object arg) { if ((this.GetBlackBerryUserStatsCompleted != null)) { System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); this.GetBlackBerryUserStatsCompleted(this, new GetBlackBerryUserStatsCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); } } /// [System.Web.Services.Protocols.SoapHeaderAttribute("ServiceProviderSettingsSoapHeaderValue")] [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/server/SetActivationPasswordWithExpirationTime", RequestNamespace="http://smbsaas/websitepanel/server/", ResponseNamespace="http://smbsaas/websitepanel/server/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)] public ResultObject SetActivationPasswordWithExpirationTime(string primaryEmailAddress, string password, int time) { object[] results = this.Invoke("SetActivationPasswordWithExpirationTime", new object[] { primaryEmailAddress, password, time}); return ((ResultObject)(results[0])); } /// public System.IAsyncResult BeginSetActivationPasswordWithExpirationTime(string primaryEmailAddress, string password, int time, System.AsyncCallback callback, object asyncState) { return this.BeginInvoke("SetActivationPasswordWithExpirationTime", new object[] { primaryEmailAddress, password, time}, callback, asyncState); } /// public ResultObject EndSetActivationPasswordWithExpirationTime(System.IAsyncResult asyncResult) { object[] results = this.EndInvoke(asyncResult); return ((ResultObject)(results[0])); } /// public void SetActivationPasswordWithExpirationTimeAsync(string primaryEmailAddress, string password, int time) { this.SetActivationPasswordWithExpirationTimeAsync(primaryEmailAddress, password, time, null); } /// public void SetActivationPasswordWithExpirationTimeAsync(string primaryEmailAddress, string password, int time, object userState) { if ((this.SetActivationPasswordWithExpirationTimeOperationCompleted == null)) { this.SetActivationPasswordWithExpirationTimeOperationCompleted = new System.Threading.SendOrPostCallback(this.OnSetActivationPasswordWithExpirationTimeOperationCompleted); } this.InvokeAsync("SetActivationPasswordWithExpirationTime", new object[] { primaryEmailAddress, password, time}, this.SetActivationPasswordWithExpirationTimeOperationCompleted, userState); } private void OnSetActivationPasswordWithExpirationTimeOperationCompleted(object arg) { if ((this.SetActivationPasswordWithExpirationTimeCompleted != null)) { System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); this.SetActivationPasswordWithExpirationTimeCompleted(this, new SetActivationPasswordWithExpirationTimeCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); } } /// [System.Web.Services.Protocols.SoapHeaderAttribute("ServiceProviderSettingsSoapHeaderValue")] [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/server/SetEmailActivationPassword", RequestNamespace="http://smbsaas/websitepanel/server/", ResponseNamespace="http://smbsaas/websitepanel/server/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)] public ResultObject SetEmailActivationPassword(string primaryEmailAddress) { object[] results = this.Invoke("SetEmailActivationPassword", new object[] { primaryEmailAddress}); return ((ResultObject)(results[0])); } /// public System.IAsyncResult BeginSetEmailActivationPassword(string primaryEmailAddress, System.AsyncCallback callback, object asyncState) { return this.BeginInvoke("SetEmailActivationPassword", new object[] { primaryEmailAddress}, callback, asyncState); } /// public ResultObject EndSetEmailActivationPassword(System.IAsyncResult asyncResult) { object[] results = this.EndInvoke(asyncResult); return ((ResultObject)(results[0])); } /// public void SetEmailActivationPasswordAsync(string primaryEmailAddress) { this.SetEmailActivationPasswordAsync(primaryEmailAddress, null); } /// public void SetEmailActivationPasswordAsync(string primaryEmailAddress, object userState) { if ((this.SetEmailActivationPasswordOperationCompleted == null)) { this.SetEmailActivationPasswordOperationCompleted = new System.Threading.SendOrPostCallback(this.OnSetEmailActivationPasswordOperationCompleted); } this.InvokeAsync("SetEmailActivationPassword", new object[] { primaryEmailAddress}, this.SetEmailActivationPasswordOperationCompleted, userState); } private void OnSetEmailActivationPasswordOperationCompleted(object arg) { if ((this.SetEmailActivationPasswordCompleted != null)) { System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); this.SetEmailActivationPasswordCompleted(this, new SetEmailActivationPasswordCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); } } /// [System.Web.Services.Protocols.SoapHeaderAttribute("ServiceProviderSettingsSoapHeaderValue")] [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/server/DeleteDataFromBlackBerryDevice", RequestNamespace="http://smbsaas/websitepanel/server/", ResponseNamespace="http://smbsaas/websitepanel/server/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)] public ResultObject DeleteDataFromBlackBerryDevice(string primaryEmailAddress) { object[] results = this.Invoke("DeleteDataFromBlackBerryDevice", new object[] { primaryEmailAddress}); return ((ResultObject)(results[0])); } /// public System.IAsyncResult BeginDeleteDataFromBlackBerryDevice(string primaryEmailAddress, System.AsyncCallback callback, object asyncState) { return this.BeginInvoke("DeleteDataFromBlackBerryDevice", new object[] { primaryEmailAddress}, callback, asyncState); } /// public ResultObject EndDeleteDataFromBlackBerryDevice(System.IAsyncResult asyncResult) { object[] results = this.EndInvoke(asyncResult); return ((ResultObject)(results[0])); } /// public void DeleteDataFromBlackBerryDeviceAsync(string primaryEmailAddress) { this.DeleteDataFromBlackBerryDeviceAsync(primaryEmailAddress, null); } /// public void DeleteDataFromBlackBerryDeviceAsync(string primaryEmailAddress, object userState) { if ((this.DeleteDataFromBlackBerryDeviceOperationCompleted == null)) { this.DeleteDataFromBlackBerryDeviceOperationCompleted = new System.Threading.SendOrPostCallback(this.OnDeleteDataFromBlackBerryDeviceOperationCompleted); } this.InvokeAsync("DeleteDataFromBlackBerryDevice", new object[] { primaryEmailAddress}, this.DeleteDataFromBlackBerryDeviceOperationCompleted, userState); } private void OnDeleteDataFromBlackBerryDeviceOperationCompleted(object arg) { if ((this.DeleteDataFromBlackBerryDeviceCompleted != null)) { System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); this.DeleteDataFromBlackBerryDeviceCompleted(this, new DeleteDataFromBlackBerryDeviceCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); } } /// public new void CancelAsync(object userState) { base.CancelAsync(userState); } } /// [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] public delegate void CreateBlackBerryUserCompletedEventHandler(object sender, CreateBlackBerryUserCompletedEventArgs e); /// [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] public partial class CreateBlackBerryUserCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs { private object[] results; internal CreateBlackBerryUserCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : base(exception, cancelled, userState) { this.results = results; } /// public ResultObject Result { get { this.RaiseExceptionIfNecessary(); return ((ResultObject)(this.results[0])); } } } /// [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] public delegate void DeleteBlackBerryUserCompletedEventHandler(object sender, DeleteBlackBerryUserCompletedEventArgs e); /// [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] public partial class DeleteBlackBerryUserCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs { private object[] results; internal DeleteBlackBerryUserCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : base(exception, cancelled, userState) { this.results = results; } /// public ResultObject Result { get { this.RaiseExceptionIfNecessary(); return ((ResultObject)(this.results[0])); } } } /// [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] public delegate void GetBlackBerryUserStatsCompletedEventHandler(object sender, GetBlackBerryUserStatsCompletedEventArgs e); /// [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] public partial class GetBlackBerryUserStatsCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs { private object[] results; internal GetBlackBerryUserStatsCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : base(exception, cancelled, userState) { this.results = results; } /// public BlackBerryUserStatsResult Result { get { this.RaiseExceptionIfNecessary(); return ((BlackBerryUserStatsResult)(this.results[0])); } } } /// [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] public delegate void SetActivationPasswordWithExpirationTimeCompletedEventHandler(object sender, SetActivationPasswordWithExpirationTimeCompletedEventArgs e); /// [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] public partial class SetActivationPasswordWithExpirationTimeCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs { private object[] results; internal SetActivationPasswordWithExpirationTimeCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : base(exception, cancelled, userState) { this.results = results; } /// public ResultObject Result { get { this.RaiseExceptionIfNecessary(); return ((ResultObject)(this.results[0])); } } } /// [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] public delegate void SetEmailActivationPasswordCompletedEventHandler(object sender, SetEmailActivationPasswordCompletedEventArgs e); /// [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] public partial class SetEmailActivationPasswordCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs { private object[] results; internal SetEmailActivationPasswordCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : base(exception, cancelled, userState) { this.results = results; } /// public ResultObject Result { get { this.RaiseExceptionIfNecessary(); return ((ResultObject)(this.results[0])); } } } /// [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] public delegate void DeleteDataFromBlackBerryDeviceCompletedEventHandler(object sender, DeleteDataFromBlackBerryDeviceCompletedEventArgs e); /// [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] public partial class DeleteDataFromBlackBerryDeviceCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs { private object[] results; internal DeleteDataFromBlackBerryDeviceCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : base(exception, cancelled, userState) { this.results = results; } /// public ResultObject Result { get { this.RaiseExceptionIfNecessary(); return ((ResultObject)(this.results[0])); } } } }