//------------------------------------------------------------------------------
// <auto-generated>
//     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.
// </auto-generated>
//------------------------------------------------------------------------------

// 
// This source code was auto-generated by Microsoft.VSDesigner, Version 2.0.50727.1433.
// 
#pragma warning disable 1591

namespace EQTrack.BlackhawkDeviceSetService {
    using System.Diagnostics;
    using System.Web.Services;
    using System.ComponentModel;
    using System.Web.Services.Protocols;
    using System;
    using System.Xml.Serialization;
    using System.Data;
    
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "2.0.50727.1433")]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Web.Services.WebServiceBindingAttribute(Name="DeviceSetServiceSoap", Namespace="http://www.theblackhawk.co.nz/")]
    public partial class DeviceSetService : System.Web.Services.Protocols.SoapHttpClientProtocol {
        
        private System.Threading.SendOrPostCallback GetLastErrorOperationCompleted;
        
        private System.Threading.SendOrPostCallback CreateDeviceSetOperationCompleted;
        
        private System.Threading.SendOrPostCallback SetBiilingSchemeForDeviceSetOperationCompleted;
        
        private System.Threading.SendOrPostCallback SetEventsCodeForDeviceSetOperationCompleted;
        
        private System.Threading.SendOrPostCallback GetEventsCodeForDeviceSetOperationCompleted;
        
        private System.Threading.SendOrPostCallback GetEventsCodeSetForDeviceSetOperationCompleted;
        
        private System.Threading.SendOrPostCallback GetDevicesForDeviceSetOperationCompleted;
        
        private System.Threading.SendOrPostCallback DSGetDevicesForDeviceSetOperationCompleted;
        
        private System.Threading.SendOrPostCallback GetDeviceSetIDOperationCompleted;
        
        private System.Threading.SendOrPostCallback AddDeviceToDeviceSetOperationCompleted;
        
        private System.Threading.SendOrPostCallback RegisterKeyOperationCompleted;
        
        private System.Threading.SendOrPostCallback AddDevicesToDeviceSetOperationCompleted;
        
        private System.Threading.SendOrPostCallback SetPrivateACLOperationCompleted;
        
        private System.Threading.SendOrPostCallback SetGlobalACLOperationCompleted;
        
        private System.Threading.SendOrPostCallback AddSMSNotificationOperationCompleted;
        
        private System.Threading.SendOrPostCallback AddEmailNotificationOperationCompleted;
        
        private System.Threading.SendOrPostCallback AddNotificationOperationCompleted;
        
        private System.Threading.SendOrPostCallback RemoveNotificationOperationCompleted;
        
        private System.Threading.SendOrPostCallback GetNotificationsOperationCompleted;
        
        private bool useDefaultCredentialsSetExplicitly;
        
        /// <remarks/>
        public DeviceSetService() {
            this.Url = global::EQTrack.Properties.Settings.Default.BH_TOOLBOX_BlackhawkDeviceSetService_DeviceSetService;
            if ((this.IsLocalFileSystemWebService(this.Url) == true)) {
                this.UseDefaultCredentials = true;
                this.useDefaultCredentialsSetExplicitly = false;
            }
            else {
                this.useDefaultCredentialsSetExplicitly = true;
            }
        }
        
        public new string Url {
            get {
                return base.Url;
            }
            set {
                if ((((this.IsLocalFileSystemWebService(base.Url) == true) 
                            && (this.useDefaultCredentialsSetExplicitly == false)) 
                            && (this.IsLocalFileSystemWebService(value) == false))) {
                    base.UseDefaultCredentials = false;
                }
                base.Url = value;
            }
        }
        
        public new bool UseDefaultCredentials {
            get {
                return base.UseDefaultCredentials;
            }
            set {
                base.UseDefaultCredentials = value;
                this.useDefaultCredentialsSetExplicitly = true;
            }
        }
        
        /// <remarks/>
        public event GetLastErrorCompletedEventHandler GetLastErrorCompleted;
        
        /// <remarks/>
        public event CreateDeviceSetCompletedEventHandler CreateDeviceSetCompleted;
        
        /// <remarks/>
        public event SetBiilingSchemeForDeviceSetCompletedEventHandler SetBiilingSchemeForDeviceSetCompleted;
        
        /// <remarks/>
        public event SetEventsCodeForDeviceSetCompletedEventHandler SetEventsCodeForDeviceSetCompleted;
        
        /// <remarks/>
        public event GetEventsCodeForDeviceSetCompletedEventHandler GetEventsCodeForDeviceSetCompleted;
        
        /// <remarks/>
        public event GetEventsCodeSetForDeviceSetCompletedEventHandler GetEventsCodeSetForDeviceSetCompleted;
        
        /// <remarks/>
        public event GetDevicesForDeviceSetCompletedEventHandler GetDevicesForDeviceSetCompleted;
        
        /// <remarks/>
        public event DSGetDevicesForDeviceSetCompletedEventHandler DSGetDevicesForDeviceSetCompleted;
        
        /// <remarks/>
        public event GetDeviceSetIDCompletedEventHandler GetDeviceSetIDCompleted;
        
        /// <remarks/>
        public event AddDeviceToDeviceSetCompletedEventHandler AddDeviceToDeviceSetCompleted;
        
        /// <remarks/>
        public event RegisterKeyCompletedEventHandler RegisterKeyCompleted;
        
        /// <remarks/>
        public event AddDevicesToDeviceSetCompletedEventHandler AddDevicesToDeviceSetCompleted;
        
        /// <remarks/>
        public event SetPrivateACLCompletedEventHandler SetPrivateACLCompleted;
        
        /// <remarks/>
        public event SetGlobalACLCompletedEventHandler SetGlobalACLCompleted;
        
        /// <remarks/>
        public event AddSMSNotificationCompletedEventHandler AddSMSNotificationCompleted;
        
        /// <remarks/>
        public event AddEmailNotificationCompletedEventHandler AddEmailNotificationCompleted;
        
        /// <remarks/>
        public event AddNotificationCompletedEventHandler AddNotificationCompleted;
        
        /// <remarks/>
        public event RemoveNotificationCompletedEventHandler RemoveNotificationCompleted;
        
        /// <remarks/>
        public event GetNotificationsCompletedEventHandler GetNotificationsCompleted;
        
        /// <remarks/>
        [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://www.theblackhawk.co.nz/GetLastError", RequestNamespace="http://www.theblackhawk.co.nz/", ResponseNamespace="http://www.theblackhawk.co.nz/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
        public string GetLastError() {
            object[] results = this.Invoke("GetLastError", new object[0]);
            return ((string)(results[0]));
        }
        
        /// <remarks/>
        public void GetLastErrorAsync() {
            this.GetLastErrorAsync(null);
        }
        
        /// <remarks/>
        public void GetLastErrorAsync(object userState) {
            if ((this.GetLastErrorOperationCompleted == null)) {
                this.GetLastErrorOperationCompleted = new System.Threading.SendOrPostCallback(this.OnGetLastErrorOperationCompleted);
            }
            this.InvokeAsync("GetLastError", new object[0], this.GetLastErrorOperationCompleted, userState);
        }
        
        private void OnGetLastErrorOperationCompleted(object arg) {
            if ((this.GetLastErrorCompleted != null)) {
                System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
                this.GetLastErrorCompleted(this, new GetLastErrorCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
            }
        }
        
        /// <remarks/>
        [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://www.theblackhawk.co.nz/CreateDeviceSet", RequestNamespace="http://www.theblackhawk.co.nz/", ResponseNamespace="http://www.theblackhawk.co.nz/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
        public int CreateDeviceSet(string name, int port, int Company) {
            object[] results = this.Invoke("CreateDeviceSet", new object[] {
                        name,
                        port,
                        Company});
            return ((int)(results[0]));
        }
        
        /// <remarks/>
        public void CreateDeviceSetAsync(string name, int port, int Company) {
            this.CreateDeviceSetAsync(name, port, Company, null);
        }
        
        /// <remarks/>
        public void CreateDeviceSetAsync(string name, int port, int Company, object userState) {
            if ((this.CreateDeviceSetOperationCompleted == null)) {
                this.CreateDeviceSetOperationCompleted = new System.Threading.SendOrPostCallback(this.OnCreateDeviceSetOperationCompleted);
            }
            this.InvokeAsync("CreateDeviceSet", new object[] {
                        name,
                        port,
                        Company}, this.CreateDeviceSetOperationCompleted, userState);
        }
        
        private void OnCreateDeviceSetOperationCompleted(object arg) {
            if ((this.CreateDeviceSetCompleted != null)) {
                System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
                this.CreateDeviceSetCompleted(this, new CreateDeviceSetCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
            }
        }
        
        /// <remarks/>
        [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://www.theblackhawk.co.nz/SetBiilingSchemeForDeviceSet", RequestNamespace="http://www.theblackhawk.co.nz/", ResponseNamespace="http://www.theblackhawk.co.nz/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
        public bool SetBiilingSchemeForDeviceSet(string YearlyFee, string MonthlyFee, string ActivationFee, string RentalFee, string SMSFee, string DataFee, string DataUnit, string PaymentPeriod, string InvoicePeriod, int InvoiceDay, int DeviceSet) {
            object[] results = this.Invoke("SetBiilingSchemeForDeviceSet", new object[] {
                        YearlyFee,
                        MonthlyFee,
                        ActivationFee,
                        RentalFee,
                        SMSFee,
                        DataFee,
                        DataUnit,
                        PaymentPeriod,
                        InvoicePeriod,
                        InvoiceDay,
                        DeviceSet});
            return ((bool)(results[0]));
        }
        
        /// <remarks/>
        public void SetBiilingSchemeForDeviceSetAsync(string YearlyFee, string MonthlyFee, string ActivationFee, string RentalFee, string SMSFee, string DataFee, string DataUnit, string PaymentPeriod, string InvoicePeriod, int InvoiceDay, int DeviceSet) {
            this.SetBiilingSchemeForDeviceSetAsync(YearlyFee, MonthlyFee, ActivationFee, RentalFee, SMSFee, DataFee, DataUnit, PaymentPeriod, InvoicePeriod, InvoiceDay, DeviceSet, null);
        }
        
        /// <remarks/>
        public void SetBiilingSchemeForDeviceSetAsync(string YearlyFee, string MonthlyFee, string ActivationFee, string RentalFee, string SMSFee, string DataFee, string DataUnit, string PaymentPeriod, string InvoicePeriod, int InvoiceDay, int DeviceSet, object userState) {
            if ((this.SetBiilingSchemeForDeviceSetOperationCompleted == null)) {
                this.SetBiilingSchemeForDeviceSetOperationCompleted = new System.Threading.SendOrPostCallback(this.OnSetBiilingSchemeForDeviceSetOperationCompleted);
            }
            this.InvokeAsync("SetBiilingSchemeForDeviceSet", new object[] {
                        YearlyFee,
                        MonthlyFee,
                        ActivationFee,
                        RentalFee,
                        SMSFee,
                        DataFee,
                        DataUnit,
                        PaymentPeriod,
                        InvoicePeriod,
                        InvoiceDay,
                        DeviceSet}, this.SetBiilingSchemeForDeviceSetOperationCompleted, userState);
        }
        
        private void OnSetBiilingSchemeForDeviceSetOperationCompleted(object arg) {
            if ((this.SetBiilingSchemeForDeviceSetCompleted != null)) {
                System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
                this.SetBiilingSchemeForDeviceSetCompleted(this, new SetBiilingSchemeForDeviceSetCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
            }
        }
        
        /// <remarks/>
        [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://www.theblackhawk.co.nz/SetEventsCodeForDeviceSet", RequestNamespace="http://www.theblackhawk.co.nz/", ResponseNamespace="http://www.theblackhawk.co.nz/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
        public bool SetEventsCodeForDeviceSet(int Code, string Name, string Cost, string Action, string TDGResponse, int DeviceSet) {
            object[] results = this.Invoke("SetEventsCodeForDeviceSet", new object[] {
                        Code,
                        Name,
                        Cost,
                        Action,
                        TDGResponse,
                        DeviceSet});
            return ((bool)(results[0]));
        }
        
        /// <remarks/>
        public void SetEventsCodeForDeviceSetAsync(int Code, string Name, string Cost, string Action, string TDGResponse, int DeviceSet) {
            this.SetEventsCodeForDeviceSetAsync(Code, Name, Cost, Action, TDGResponse, DeviceSet, null);
        }
        
        /// <remarks/>
        public void SetEventsCodeForDeviceSetAsync(int Code, string Name, string Cost, string Action, string TDGResponse, int DeviceSet, object userState) {
            if ((this.SetEventsCodeForDeviceSetOperationCompleted == null)) {
                this.SetEventsCodeForDeviceSetOperationCompleted = new System.Threading.SendOrPostCallback(this.OnSetEventsCodeForDeviceSetOperationCompleted);
            }
            this.InvokeAsync("SetEventsCodeForDeviceSet", new object[] {
                        Code,
                        Name,
                        Cost,
                        Action,
                        TDGResponse,
                        DeviceSet}, this.SetEventsCodeForDeviceSetOperationCompleted, userState);
        }
        
        private void OnSetEventsCodeForDeviceSetOperationCompleted(object arg) {
            if ((this.SetEventsCodeForDeviceSetCompleted != null)) {
                System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
                this.SetEventsCodeForDeviceSetCompleted(this, new SetEventsCodeForDeviceSetCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
            }
        }
        
        /// <remarks/>
        [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://www.theblackhawk.co.nz/GetEventsCodeForDeviceSet", RequestNamespace="http://www.theblackhawk.co.nz/", ResponseNamespace="http://www.theblackhawk.co.nz/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
        public System.Data.DataTable GetEventsCodeForDeviceSet(int DeviceSet) {
            object[] results = this.Invoke("GetEventsCodeForDeviceSet", new object[] {
                        DeviceSet});
            return ((System.Data.DataTable)(results[0]));
        }
        
        /// <remarks/>
        public void GetEventsCodeForDeviceSetAsync(int DeviceSet) {
            this.GetEventsCodeForDeviceSetAsync(DeviceSet, null);
        }
        
        /// <remarks/>
        public void GetEventsCodeForDeviceSetAsync(int DeviceSet, object userState) {
            if ((this.GetEventsCodeForDeviceSetOperationCompleted == null)) {
                this.GetEventsCodeForDeviceSetOperationCompleted = new System.Threading.SendOrPostCallback(this.OnGetEventsCodeForDeviceSetOperationCompleted);
            }
            this.InvokeAsync("GetEventsCodeForDeviceSet", new object[] {
                        DeviceSet}, this.GetEventsCodeForDeviceSetOperationCompleted, userState);
        }
        
        private void OnGetEventsCodeForDeviceSetOperationCompleted(object arg) {
            if ((this.GetEventsCodeForDeviceSetCompleted != null)) {
                System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
                this.GetEventsCodeForDeviceSetCompleted(this, new GetEventsCodeForDeviceSetCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
            }
        }
        
        /// <remarks/>
        [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://www.theblackhawk.co.nz/GetEventsCodeSetForDeviceSet", RequestNamespace="http://www.theblackhawk.co.nz/", ResponseNamespace="http://www.theblackhawk.co.nz/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
        public System.Data.DataSet GetEventsCodeSetForDeviceSet(int DeviceSet) {
            object[] results = this.Invoke("GetEventsCodeSetForDeviceSet", new object[] {
                        DeviceSet});
            return ((System.Data.DataSet)(results[0]));
        }
        
        /// <remarks/>
        public void GetEventsCodeSetForDeviceSetAsync(int DeviceSet) {
            this.GetEventsCodeSetForDeviceSetAsync(DeviceSet, null);
        }
        
        /// <remarks/>
        public void GetEventsCodeSetForDeviceSetAsync(int DeviceSet, object userState) {
            if ((this.GetEventsCodeSetForDeviceSetOperationCompleted == null)) {
                this.GetEventsCodeSetForDeviceSetOperationCompleted = new System.Threading.SendOrPostCallback(this.OnGetEventsCodeSetForDeviceSetOperationCompleted);
            }
            this.InvokeAsync("GetEventsCodeSetForDeviceSet", new object[] {
                        DeviceSet}, this.GetEventsCodeSetForDeviceSetOperationCompleted, userState);
        }
        
        private void OnGetEventsCodeSetForDeviceSetOperationCompleted(object arg) {
            if ((this.GetEventsCodeSetForDeviceSetCompleted != null)) {
                System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
                this.GetEventsCodeSetForDeviceSetCompleted(this, new GetEventsCodeSetForDeviceSetCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
            }
        }
        
        /// <remarks/>
        [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://www.theblackhawk.co.nz/GetDevicesForDeviceSet", RequestNamespace="http://www.theblackhawk.co.nz/", ResponseNamespace="http://www.theblackhawk.co.nz/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
        public System.Data.DataTable GetDevicesForDeviceSet(int DeviceSet) {
            object[] results = this.Invoke("GetDevicesForDeviceSet", new object[] {
                        DeviceSet});
            return ((System.Data.DataTable)(results[0]));
        }
        
        /// <remarks/>
        public void GetDevicesForDeviceSetAsync(int DeviceSet) {
            this.GetDevicesForDeviceSetAsync(DeviceSet, null);
        }
        
        /// <remarks/>
        public void GetDevicesForDeviceSetAsync(int DeviceSet, object userState) {
            if ((this.GetDevicesForDeviceSetOperationCompleted == null)) {
                this.GetDevicesForDeviceSetOperationCompleted = new System.Threading.SendOrPostCallback(this.OnGetDevicesForDeviceSetOperationCompleted);
            }
            this.InvokeAsync("GetDevicesForDeviceSet", new object[] {
                        DeviceSet}, this.GetDevicesForDeviceSetOperationCompleted, userState);
        }
        
        private void OnGetDevicesForDeviceSetOperationCompleted(object arg) {
            if ((this.GetDevicesForDeviceSetCompleted != null)) {
                System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
                this.GetDevicesForDeviceSetCompleted(this, new GetDevicesForDeviceSetCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
            }
        }
        
        /// <remarks/>
        [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://www.theblackhawk.co.nz/DSGetDevicesForDeviceSet", RequestNamespace="http://www.theblackhawk.co.nz/", ResponseNamespace="http://www.theblackhawk.co.nz/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
        public System.Data.DataSet DSGetDevicesForDeviceSet(int DeviceSet) {
            object[] results = this.Invoke("DSGetDevicesForDeviceSet", new object[] {
                        DeviceSet});
            return ((System.Data.DataSet)(results[0]));
        }
        
        /// <remarks/>
        public void DSGetDevicesForDeviceSetAsync(int DeviceSet) {
            this.DSGetDevicesForDeviceSetAsync(DeviceSet, null);
        }
        
        /// <remarks/>
        public void DSGetDevicesForDeviceSetAsync(int DeviceSet, object userState) {
            if ((this.DSGetDevicesForDeviceSetOperationCompleted == null)) {
                this.DSGetDevicesForDeviceSetOperationCompleted = new System.Threading.SendOrPostCallback(this.OnDSGetDevicesForDeviceSetOperationCompleted);
            }
            this.InvokeAsync("DSGetDevicesForDeviceSet", new object[] {
                        DeviceSet}, this.DSGetDevicesForDeviceSetOperationCompleted, userState);
        }
        
        private void OnDSGetDevicesForDeviceSetOperationCompleted(object arg) {
            if ((this.DSGetDevicesForDeviceSetCompleted != null)) {
                System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
                this.DSGetDevicesForDeviceSetCompleted(this, new DSGetDevicesForDeviceSetCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
            }
        }
        
        /// <remarks/>
        [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://www.theblackhawk.co.nz/GetDeviceSetID", RequestNamespace="http://www.theblackhawk.co.nz/", ResponseNamespace="http://www.theblackhawk.co.nz/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
        public int GetDeviceSetID(string devicesetname) {
            object[] results = this.Invoke("GetDeviceSetID", new object[] {
                        devicesetname});
            return ((int)(results[0]));
        }
        
        /// <remarks/>
        public void GetDeviceSetIDAsync(string devicesetname) {
            this.GetDeviceSetIDAsync(devicesetname, null);
        }
        
        /// <remarks/>
        public void GetDeviceSetIDAsync(string devicesetname, object userState) {
            if ((this.GetDeviceSetIDOperationCompleted == null)) {
                this.GetDeviceSetIDOperationCompleted = new System.Threading.SendOrPostCallback(this.OnGetDeviceSetIDOperationCompleted);
            }
            this.InvokeAsync("GetDeviceSetID", new object[] {
                        devicesetname}, this.GetDeviceSetIDOperationCompleted, userState);
        }
        
        private void OnGetDeviceSetIDOperationCompleted(object arg) {
            if ((this.GetDeviceSetIDCompleted != null)) {
                System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
                this.GetDeviceSetIDCompleted(this, new GetDeviceSetIDCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
            }
        }
        
        /// <remarks/>
        [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://www.theblackhawk.co.nz/AddDeviceToDeviceSet", RequestNamespace="http://www.theblackhawk.co.nz/", ResponseNamespace="http://www.theblackhawk.co.nz/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
        public bool AddDeviceToDeviceSet(string Serial, int DeviceSet) {
            object[] results = this.Invoke("AddDeviceToDeviceSet", new object[] {
                        Serial,
                        DeviceSet});
            return ((bool)(results[0]));
        }
        
        /// <remarks/>
        public void AddDeviceToDeviceSetAsync(string Serial, int DeviceSet) {
            this.AddDeviceToDeviceSetAsync(Serial, DeviceSet, null);
        }
        
        /// <remarks/>
        public void AddDeviceToDeviceSetAsync(string Serial, int DeviceSet, object userState) {
            if ((this.AddDeviceToDeviceSetOperationCompleted == null)) {
                this.AddDeviceToDeviceSetOperationCompleted = new System.Threading.SendOrPostCallback(this.OnAddDeviceToDeviceSetOperationCompleted);
            }
            this.InvokeAsync("AddDeviceToDeviceSet", new object[] {
                        Serial,
                        DeviceSet}, this.AddDeviceToDeviceSetOperationCompleted, userState);
        }
        
        private void OnAddDeviceToDeviceSetOperationCompleted(object arg) {
            if ((this.AddDeviceToDeviceSetCompleted != null)) {
                System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
                this.AddDeviceToDeviceSetCompleted(this, new AddDeviceToDeviceSetCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
            }
        }
        
        /// <remarks/>
        [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://www.theblackhawk.co.nz/RegisterKey", RequestNamespace="http://www.theblackhawk.co.nz/", ResponseNamespace="http://www.theblackhawk.co.nz/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
        public string RegisterKey(string key, int DeviceSet) {
            object[] results = this.Invoke("RegisterKey", new object[] {
                        key,
                        DeviceSet});
            return ((string)(results[0]));
        }
        
        /// <remarks/>
        public void RegisterKeyAsync(string key, int DeviceSet) {
            this.RegisterKeyAsync(key, DeviceSet, null);
        }
        
        /// <remarks/>
        public void RegisterKeyAsync(string key, int DeviceSet, object userState) {
            if ((this.RegisterKeyOperationCompleted == null)) {
                this.RegisterKeyOperationCompleted = new System.Threading.SendOrPostCallback(this.OnRegisterKeyOperationCompleted);
            }
            this.InvokeAsync("RegisterKey", new object[] {
                        key,
                        DeviceSet}, this.RegisterKeyOperationCompleted, userState);
        }
        
        private void OnRegisterKeyOperationCompleted(object arg) {
            if ((this.RegisterKeyCompleted != null)) {
                System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
                this.RegisterKeyCompleted(this, new RegisterKeyCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
            }
        }
        
        /// <remarks/>
        [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://www.theblackhawk.co.nz/AddDevicesToDeviceSet", RequestNamespace="http://www.theblackhawk.co.nz/", ResponseNamespace="http://www.theblackhawk.co.nz/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
        public int AddDevicesToDeviceSet(string[] SerialList, int DeviceSet) {
            object[] results = this.Invoke("AddDevicesToDeviceSet", new object[] {
                        SerialList,
                        DeviceSet});
            return ((int)(results[0]));
        }
        
        /// <remarks/>
        public void AddDevicesToDeviceSetAsync(string[] SerialList, int DeviceSet) {
            this.AddDevicesToDeviceSetAsync(SerialList, DeviceSet, null);
        }
        
        /// <remarks/>
        public void AddDevicesToDeviceSetAsync(string[] SerialList, int DeviceSet, object userState) {
            if ((this.AddDevicesToDeviceSetOperationCompleted == null)) {
                this.AddDevicesToDeviceSetOperationCompleted = new System.Threading.SendOrPostCallback(this.OnAddDevicesToDeviceSetOperationCompleted);
            }
            this.InvokeAsync("AddDevicesToDeviceSet", new object[] {
                        SerialList,
                        DeviceSet}, this.AddDevicesToDeviceSetOperationCompleted, userState);
        }
        
        private void OnAddDevicesToDeviceSetOperationCompleted(object arg) {
            if ((this.AddDevicesToDeviceSetCompleted != null)) {
                System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
                this.AddDevicesToDeviceSetCompleted(this, new AddDevicesToDeviceSetCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
            }
        }
        
        /// <remarks/>
        [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://www.theblackhawk.co.nz/SetPrivateACL", RequestNamespace="http://www.theblackhawk.co.nz/", ResponseNamespace="http://www.theblackhawk.co.nz/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
        public bool SetPrivateACL(int DeviceSet, int index, string acl) {
            object[] results = this.Invoke("SetPrivateACL", new object[] {
                        DeviceSet,
                        index,
                        acl});
            return ((bool)(results[0]));
        }
        
        /// <remarks/>
        public void SetPrivateACLAsync(int DeviceSet, int index, string acl) {
            this.SetPrivateACLAsync(DeviceSet, index, acl, null);
        }
        
        /// <remarks/>
        public void SetPrivateACLAsync(int DeviceSet, int index, string acl, object userState) {
            if ((this.SetPrivateACLOperationCompleted == null)) {
                this.SetPrivateACLOperationCompleted = new System.Threading.SendOrPostCallback(this.OnSetPrivateACLOperationCompleted);
            }
            this.InvokeAsync("SetPrivateACL", new object[] {
                        DeviceSet,
                        index,
                        acl}, this.SetPrivateACLOperationCompleted, userState);
        }
        
        private void OnSetPrivateACLOperationCompleted(object arg) {
            if ((this.SetPrivateACLCompleted != null)) {
                System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
                this.SetPrivateACLCompleted(this, new SetPrivateACLCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
            }
        }
        
        /// <remarks/>
        [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://www.theblackhawk.co.nz/SetGlobalACL", RequestNamespace="http://www.theblackhawk.co.nz/", ResponseNamespace="http://www.theblackhawk.co.nz/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
        public bool SetGlobalACL(int DeviceSet, int enable) {
            object[] results = this.Invoke("SetGlobalACL", new object[] {
                        DeviceSet,
                        enable});
            return ((bool)(results[0]));
        }
        
        /// <remarks/>
        public void SetGlobalACLAsync(int DeviceSet, int enable) {
            this.SetGlobalACLAsync(DeviceSet, enable, null);
        }
        
        /// <remarks/>
        public void SetGlobalACLAsync(int DeviceSet, int enable, object userState) {
            if ((this.SetGlobalACLOperationCompleted == null)) {
                this.SetGlobalACLOperationCompleted = new System.Threading.SendOrPostCallback(this.OnSetGlobalACLOperationCompleted);
            }
            this.InvokeAsync("SetGlobalACL", new object[] {
                        DeviceSet,
                        enable}, this.SetGlobalACLOperationCompleted, userState);
        }
        
        private void OnSetGlobalACLOperationCompleted(object arg) {
            if ((this.SetGlobalACLCompleted != null)) {
                System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
                this.SetGlobalACLCompleted(this, new SetGlobalACLCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
            }
        }
        
        /// <remarks/>
        [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://www.theblackhawk.co.nz/AddSMSNotification", RequestNamespace="http://www.theblackhawk.co.nz/", ResponseNamespace="http://www.theblackhawk.co.nz/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
        public int AddSMSNotification(int DeviceSet, int EventCode, string Number, string Message, int Schedule, bool Billable) {
            object[] results = this.Invoke("AddSMSNotification", new object[] {
                        DeviceSet,
                        EventCode,
                        Number,
                        Message,
                        Schedule,
                        Billable});
            return ((int)(results[0]));
        }
        
        /// <remarks/>
        public void AddSMSNotificationAsync(int DeviceSet, int EventCode, string Number, string Message, int Schedule, bool Billable) {
            this.AddSMSNotificationAsync(DeviceSet, EventCode, Number, Message, Schedule, Billable, null);
        }
        
        /// <remarks/>
        public void AddSMSNotificationAsync(int DeviceSet, int EventCode, string Number, string Message, int Schedule, bool Billable, object userState) {
            if ((this.AddSMSNotificationOperationCompleted == null)) {
                this.AddSMSNotificationOperationCompleted = new System.Threading.SendOrPostCallback(this.OnAddSMSNotificationOperationCompleted);
            }
            this.InvokeAsync("AddSMSNotification", new object[] {
                        DeviceSet,
                        EventCode,
                        Number,
                        Message,
                        Schedule,
                        Billable}, this.AddSMSNotificationOperationCompleted, userState);
        }
        
        private void OnAddSMSNotificationOperationCompleted(object arg) {
            if ((this.AddSMSNotificationCompleted != null)) {
                System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
                this.AddSMSNotificationCompleted(this, new AddSMSNotificationCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
            }
        }
        
        /// <remarks/>
        [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://www.theblackhawk.co.nz/AddEmailNotification", RequestNamespace="http://www.theblackhawk.co.nz/", ResponseNamespace="http://www.theblackhawk.co.nz/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
        public int AddEmailNotification(int DeviceSet, int EventCode, string To, string From, string Subject, string message, int schedule, bool Billable) {
            object[] results = this.Invoke("AddEmailNotification", new object[] {
                        DeviceSet,
                        EventCode,
                        To,
                        From,
                        Subject,
                        message,
                        schedule,
                        Billable});
            return ((int)(results[0]));
        }
        
        /// <remarks/>
        public void AddEmailNotificationAsync(int DeviceSet, int EventCode, string To, string From, string Subject, string message, int schedule, bool Billable) {
            this.AddEmailNotificationAsync(DeviceSet, EventCode, To, From, Subject, message, schedule, Billable, null);
        }
        
        /// <remarks/>
        public void AddEmailNotificationAsync(int DeviceSet, int EventCode, string To, string From, string Subject, string message, int schedule, bool Billable, object userState) {
            if ((this.AddEmailNotificationOperationCompleted == null)) {
                this.AddEmailNotificationOperationCompleted = new System.Threading.SendOrPostCallback(this.OnAddEmailNotificationOperationCompleted);
            }
            this.InvokeAsync("AddEmailNotification", new object[] {
                        DeviceSet,
                        EventCode,
                        To,
                        From,
                        Subject,
                        message,
                        schedule,
                        Billable}, this.AddEmailNotificationOperationCompleted, userState);
        }
        
        private void OnAddEmailNotificationOperationCompleted(object arg) {
            if ((this.AddEmailNotificationCompleted != null)) {
                System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
                this.AddEmailNotificationCompleted(this, new AddEmailNotificationCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
            }
        }
        
        /// <remarks/>
        [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://www.theblackhawk.co.nz/AddNotification", RequestNamespace="http://www.theblackhawk.co.nz/", ResponseNamespace="http://www.theblackhawk.co.nz/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
        public int AddNotification(int DeviceSet, int EventCode, string Type, string Number, string Text, string To, string From, string Subject, string Message, int Schedule, bool Billable) {
            object[] results = this.Invoke("AddNotification", new object[] {
                        DeviceSet,
                        EventCode,
                        Type,
                        Number,
                        Text,
                        To,
                        From,
                        Subject,
                        Message,
                        Schedule,
                        Billable});
            return ((int)(results[0]));
        }
        
        /// <remarks/>
        public void AddNotificationAsync(int DeviceSet, int EventCode, string Type, string Number, string Text, string To, string From, string Subject, string Message, int Schedule, bool Billable) {
            this.AddNotificationAsync(DeviceSet, EventCode, Type, Number, Text, To, From, Subject, Message, Schedule, Billable, null);
        }
        
        /// <remarks/>
        public void AddNotificationAsync(int DeviceSet, int EventCode, string Type, string Number, string Text, string To, string From, string Subject, string Message, int Schedule, bool Billable, object userState) {
            if ((this.AddNotificationOperationCompleted == null)) {
                this.AddNotificationOperationCompleted = new System.Threading.SendOrPostCallback(this.OnAddNotificationOperationCompleted);
            }
            this.InvokeAsync("AddNotification", new object[] {
                        DeviceSet,
                        EventCode,
                        Type,
                        Number,
                        Text,
                        To,
                        From,
                        Subject,
                        Message,
                        Schedule,
                        Billable}, this.AddNotificationOperationCompleted, userState);
        }
        
        private void OnAddNotificationOperationCompleted(object arg) {
            if ((this.AddNotificationCompleted != null)) {
                System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
                this.AddNotificationCompleted(this, new AddNotificationCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
            }
        }
        
        /// <remarks/>
        [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://www.theblackhawk.co.nz/RemoveNotification", RequestNamespace="http://www.theblackhawk.co.nz/", ResponseNamespace="http://www.theblackhawk.co.nz/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
        public bool RemoveNotification(int DeviceSet, int Id) {
            object[] results = this.Invoke("RemoveNotification", new object[] {
                        DeviceSet,
                        Id});
            return ((bool)(results[0]));
        }
        
        /// <remarks/>
        public void RemoveNotificationAsync(int DeviceSet, int Id) {
            this.RemoveNotificationAsync(DeviceSet, Id, null);
        }
        
        /// <remarks/>
        public void RemoveNotificationAsync(int DeviceSet, int Id, object userState) {
            if ((this.RemoveNotificationOperationCompleted == null)) {
                this.RemoveNotificationOperationCompleted = new System.Threading.SendOrPostCallback(this.OnRemoveNotificationOperationCompleted);
            }
            this.InvokeAsync("RemoveNotification", new object[] {
                        DeviceSet,
                        Id}, this.RemoveNotificationOperationCompleted, userState);
        }
        
        private void OnRemoveNotificationOperationCompleted(object arg) {
            if ((this.RemoveNotificationCompleted != null)) {
                System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
                this.RemoveNotificationCompleted(this, new RemoveNotificationCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
            }
        }
        
        /// <remarks/>
        [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://www.theblackhawk.co.nz/GetNotifications", RequestNamespace="http://www.theblackhawk.co.nz/", ResponseNamespace="http://www.theblackhawk.co.nz/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
        public System.Data.DataTable GetNotifications(int DeviceSet) {
            object[] results = this.Invoke("GetNotifications", new object[] {
                        DeviceSet});
            return ((System.Data.DataTable)(results[0]));
        }
        
        /// <remarks/>
        public void GetNotificationsAsync(int DeviceSet) {
            this.GetNotificationsAsync(DeviceSet, null);
        }
        
        /// <remarks/>
        public void GetNotificationsAsync(int DeviceSet, object userState) {
            if ((this.GetNotificationsOperationCompleted == null)) {
                this.GetNotificationsOperationCompleted = new System.Threading.SendOrPostCallback(this.OnGetNotificationsOperationCompleted);
            }
            this.InvokeAsync("GetNotifications", new object[] {
                        DeviceSet}, this.GetNotificationsOperationCompleted, userState);
        }
        
        private void OnGetNotificationsOperationCompleted(object arg) {
            if ((this.GetNotificationsCompleted != null)) {
                System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
                this.GetNotificationsCompleted(this, new GetNotificationsCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
            }
        }
        
        /// <remarks/>
        public new void CancelAsync(object userState) {
            base.CancelAsync(userState);
        }
        
        private bool IsLocalFileSystemWebService(string url) {
            if (((url == null) 
                        || (url == string.Empty))) {
                return false;
            }
            System.Uri wsUri = new System.Uri(url);
            if (((wsUri.Port >= 1024) 
                        && (string.Compare(wsUri.Host, "localHost", System.StringComparison.OrdinalIgnoreCase) == 0))) {
                return true;
            }
            return false;
        }
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "2.0.50727.1433")]
    public delegate void GetLastErrorCompletedEventHandler(object sender, GetLastErrorCompletedEventArgs e);
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "2.0.50727.1433")]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    public partial class GetLastErrorCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs {
        
        private object[] results;
        
        internal GetLastErrorCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : 
                base(exception, cancelled, userState) {
            this.results = results;
        }
        
        /// <remarks/>
        public string Result {
            get {
                this.RaiseExceptionIfNecessary();
                return ((string)(this.results[0]));
            }
        }
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "2.0.50727.1433")]
    public delegate void CreateDeviceSetCompletedEventHandler(object sender, CreateDeviceSetCompletedEventArgs e);
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "2.0.50727.1433")]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    public partial class CreateDeviceSetCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs {
        
        private object[] results;
        
        internal CreateDeviceSetCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : 
                base(exception, cancelled, userState) {
            this.results = results;
        }
        
        /// <remarks/>
        public int Result {
            get {
                this.RaiseExceptionIfNecessary();
                return ((int)(this.results[0]));
            }
        }
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "2.0.50727.1433")]
    public delegate void SetBiilingSchemeForDeviceSetCompletedEventHandler(object sender, SetBiilingSchemeForDeviceSetCompletedEventArgs e);
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "2.0.50727.1433")]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    public partial class SetBiilingSchemeForDeviceSetCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs {
        
        private object[] results;
        
        internal SetBiilingSchemeForDeviceSetCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : 
                base(exception, cancelled, userState) {
            this.results = results;
        }
        
        /// <remarks/>
        public bool Result {
            get {
                this.RaiseExceptionIfNecessary();
                return ((bool)(this.results[0]));
            }
        }
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "2.0.50727.1433")]
    public delegate void SetEventsCodeForDeviceSetCompletedEventHandler(object sender, SetEventsCodeForDeviceSetCompletedEventArgs e);
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "2.0.50727.1433")]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    public partial class SetEventsCodeForDeviceSetCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs {
        
        private object[] results;
        
        internal SetEventsCodeForDeviceSetCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : 
                base(exception, cancelled, userState) {
            this.results = results;
        }
        
        /// <remarks/>
        public bool Result {
            get {
                this.RaiseExceptionIfNecessary();
                return ((bool)(this.results[0]));
            }
        }
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "2.0.50727.1433")]
    public delegate void GetEventsCodeForDeviceSetCompletedEventHandler(object sender, GetEventsCodeForDeviceSetCompletedEventArgs e);
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "2.0.50727.1433")]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    public partial class GetEventsCodeForDeviceSetCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs {
        
        private object[] results;
        
        internal GetEventsCodeForDeviceSetCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : 
                base(exception, cancelled, userState) {
            this.results = results;
        }
        
        /// <remarks/>
        public System.Data.DataTable Result {
            get {
                this.RaiseExceptionIfNecessary();
                return ((System.Data.DataTable)(this.results[0]));
            }
        }
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "2.0.50727.1433")]
    public delegate void GetEventsCodeSetForDeviceSetCompletedEventHandler(object sender, GetEventsCodeSetForDeviceSetCompletedEventArgs e);
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "2.0.50727.1433")]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    public partial class GetEventsCodeSetForDeviceSetCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs {
        
        private object[] results;
        
        internal GetEventsCodeSetForDeviceSetCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : 
                base(exception, cancelled, userState) {
            this.results = results;
        }
        
        /// <remarks/>
        public System.Data.DataSet Result {
            get {
                this.RaiseExceptionIfNecessary();
                return ((System.Data.DataSet)(this.results[0]));
            }
        }
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "2.0.50727.1433")]
    public delegate void GetDevicesForDeviceSetCompletedEventHandler(object sender, GetDevicesForDeviceSetCompletedEventArgs e);
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "2.0.50727.1433")]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    public partial class GetDevicesForDeviceSetCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs {
        
        private object[] results;
        
        internal GetDevicesForDeviceSetCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : 
                base(exception, cancelled, userState) {
            this.results = results;
        }
        
        /// <remarks/>
        public System.Data.DataTable Result {
            get {
                this.RaiseExceptionIfNecessary();
                return ((System.Data.DataTable)(this.results[0]));
            }
        }
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "2.0.50727.1433")]
    public delegate void DSGetDevicesForDeviceSetCompletedEventHandler(object sender, DSGetDevicesForDeviceSetCompletedEventArgs e);
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "2.0.50727.1433")]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    public partial class DSGetDevicesForDeviceSetCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs {
        
        private object[] results;
        
        internal DSGetDevicesForDeviceSetCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : 
                base(exception, cancelled, userState) {
            this.results = results;
        }
        
        /// <remarks/>
        public System.Data.DataSet Result {
            get {
                this.RaiseExceptionIfNecessary();
                return ((System.Data.DataSet)(this.results[0]));
            }
        }
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "2.0.50727.1433")]
    public delegate void GetDeviceSetIDCompletedEventHandler(object sender, GetDeviceSetIDCompletedEventArgs e);
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "2.0.50727.1433")]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    public partial class GetDeviceSetIDCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs {
        
        private object[] results;
        
        internal GetDeviceSetIDCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : 
                base(exception, cancelled, userState) {
            this.results = results;
        }
        
        /// <remarks/>
        public int Result {
            get {
                this.RaiseExceptionIfNecessary();
                return ((int)(this.results[0]));
            }
        }
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "2.0.50727.1433")]
    public delegate void AddDeviceToDeviceSetCompletedEventHandler(object sender, AddDeviceToDeviceSetCompletedEventArgs e);
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "2.0.50727.1433")]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    public partial class AddDeviceToDeviceSetCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs {
        
        private object[] results;
        
        internal AddDeviceToDeviceSetCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : 
                base(exception, cancelled, userState) {
            this.results = results;
        }
        
        /// <remarks/>
        public bool Result {
            get {
                this.RaiseExceptionIfNecessary();
                return ((bool)(this.results[0]));
            }
        }
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "2.0.50727.1433")]
    public delegate void RegisterKeyCompletedEventHandler(object sender, RegisterKeyCompletedEventArgs e);
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "2.0.50727.1433")]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    public partial class RegisterKeyCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs {
        
        private object[] results;
        
        internal RegisterKeyCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : 
                base(exception, cancelled, userState) {
            this.results = results;
        }
        
        /// <remarks/>
        public string Result {
            get {
                this.RaiseExceptionIfNecessary();
                return ((string)(this.results[0]));
            }
        }
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "2.0.50727.1433")]
    public delegate void AddDevicesToDeviceSetCompletedEventHandler(object sender, AddDevicesToDeviceSetCompletedEventArgs e);
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "2.0.50727.1433")]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    public partial class AddDevicesToDeviceSetCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs {
        
        private object[] results;
        
        internal AddDevicesToDeviceSetCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : 
                base(exception, cancelled, userState) {
            this.results = results;
        }
        
        /// <remarks/>
        public int Result {
            get {
                this.RaiseExceptionIfNecessary();
                return ((int)(this.results[0]));
            }
        }
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "2.0.50727.1433")]
    public delegate void SetPrivateACLCompletedEventHandler(object sender, SetPrivateACLCompletedEventArgs e);
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "2.0.50727.1433")]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    public partial class SetPrivateACLCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs {
        
        private object[] results;
        
        internal SetPrivateACLCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : 
                base(exception, cancelled, userState) {
            this.results = results;
        }
        
        /// <remarks/>
        public bool Result {
            get {
                this.RaiseExceptionIfNecessary();
                return ((bool)(this.results[0]));
            }
        }
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "2.0.50727.1433")]
    public delegate void SetGlobalACLCompletedEventHandler(object sender, SetGlobalACLCompletedEventArgs e);
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "2.0.50727.1433")]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    public partial class SetGlobalACLCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs {
        
        private object[] results;
        
        internal SetGlobalACLCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : 
                base(exception, cancelled, userState) {
            this.results = results;
        }
        
        /// <remarks/>
        public bool Result {
            get {
                this.RaiseExceptionIfNecessary();
                return ((bool)(this.results[0]));
            }
        }
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "2.0.50727.1433")]
    public delegate void AddSMSNotificationCompletedEventHandler(object sender, AddSMSNotificationCompletedEventArgs e);
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "2.0.50727.1433")]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    public partial class AddSMSNotificationCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs {
        
        private object[] results;
        
        internal AddSMSNotificationCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : 
                base(exception, cancelled, userState) {
            this.results = results;
        }
        
        /// <remarks/>
        public int Result {
            get {
                this.RaiseExceptionIfNecessary();
                return ((int)(this.results[0]));
            }
        }
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "2.0.50727.1433")]
    public delegate void AddEmailNotificationCompletedEventHandler(object sender, AddEmailNotificationCompletedEventArgs e);
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "2.0.50727.1433")]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    public partial class AddEmailNotificationCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs {
        
        private object[] results;
        
        internal AddEmailNotificationCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : 
                base(exception, cancelled, userState) {
            this.results = results;
        }
        
        /// <remarks/>
        public int Result {
            get {
                this.RaiseExceptionIfNecessary();
                return ((int)(this.results[0]));
            }
        }
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "2.0.50727.1433")]
    public delegate void AddNotificationCompletedEventHandler(object sender, AddNotificationCompletedEventArgs e);
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "2.0.50727.1433")]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    public partial class AddNotificationCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs {
        
        private object[] results;
        
        internal AddNotificationCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : 
                base(exception, cancelled, userState) {
            this.results = results;
        }
        
        /// <remarks/>
        public int Result {
            get {
                this.RaiseExceptionIfNecessary();
                return ((int)(this.results[0]));
            }
        }
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "2.0.50727.1433")]
    public delegate void RemoveNotificationCompletedEventHandler(object sender, RemoveNotificationCompletedEventArgs e);
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "2.0.50727.1433")]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    public partial class RemoveNotificationCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs {
        
        private object[] results;
        
        internal RemoveNotificationCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : 
                base(exception, cancelled, userState) {
            this.results = results;
        }
        
        /// <remarks/>
        public bool Result {
            get {
                this.RaiseExceptionIfNecessary();
                return ((bool)(this.results[0]));
            }
        }
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "2.0.50727.1433")]
    public delegate void GetNotificationsCompletedEventHandler(object sender, GetNotificationsCompletedEventArgs e);
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "2.0.50727.1433")]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    public partial class GetNotificationsCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs {
        
        private object[] results;
        
        internal GetNotificationsCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : 
                base(exception, cancelled, userState) {
            this.results = results;
        }
        
        /// <remarks/>
        public System.Data.DataTable Result {
            get {
                this.RaiseExceptionIfNecessary();
                return ((System.Data.DataTable)(this.results[0]));
            }
        }
    }
}

#pragma warning restore 1591