//------------------------------------------------------------------------------
// <auto-generated>
//     This code was generated by a tool.
//     Runtime Version:4.0.30128.1
//
//     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 4.0.30128.1.
// 
#pragma warning disable 1591

namespace StockPortfolio_Web.com.flash_db.www {
    using System;
    using System.Web.Services;
    using System.Diagnostics;
    using System.Web.Services.Protocols;
    using System.ComponentModel;
    using System.Xml.Serialization;
    
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.0.30128.1")]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Web.Services.WebServiceBindingAttribute(Name="CompanyInfoBinding", Namespace="urn:CompanyInfo")]
    public partial class CompanyInfoService : System.Web.Services.Protocols.SoapHttpClientProtocol {
        
        private System.Threading.SendOrPostCallback doCompanyInfoOperationCompleted;
        
        private bool useDefaultCredentialsSetExplicitly;
        
        /// <remarks/>
        public CompanyInfoService() {
            this.Url = global::StockPortfolio_Web.Properties.Settings.Default.StockPortfolio_Web_com_flash_db_www_CompanyInfoService;
            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 doCompanyInfoCompletedEventHandler doCompanyInfoCompleted;
        
        /// <remarks/>
        [System.Web.Services.Protocols.SoapRpcMethodAttribute("urn:CompanyInfoAction", RequestNamespace="urn:CompanyInfo", ResponseNamespace="urn:CompanyInfo")]
        [return: System.Xml.Serialization.SoapElementAttribute("return")]
        public CompanyInfoResult doCompanyInfo(string username, string password, string ticker) {
            object[] results = this.Invoke("doCompanyInfo", new object[] {
                        username,
                        password,
                        ticker});
            return ((CompanyInfoResult)(results[0]));
        }
        
        /// <remarks/>
        public void doCompanyInfoAsync(string username, string password, string ticker) {
            this.doCompanyInfoAsync(username, password, ticker, null);
        }
        
        /// <remarks/>
        public void doCompanyInfoAsync(string username, string password, string ticker, object userState) {
            if ((this.doCompanyInfoOperationCompleted == null)) {
                this.doCompanyInfoOperationCompleted = new System.Threading.SendOrPostCallback(this.OndoCompanyInfoOperationCompleted);
            }
            this.InvokeAsync("doCompanyInfo", new object[] {
                        username,
                        password,
                        ticker}, this.doCompanyInfoOperationCompleted, userState);
        }
        
        private void OndoCompanyInfoOperationCompleted(object arg) {
            if ((this.doCompanyInfoCompleted != null)) {
                System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
                this.doCompanyInfoCompleted(this, new doCompanyInfoCompletedEventArgs(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.Xml", "4.0.30128.1")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.SoapTypeAttribute(Namespace="urn:CompanyInfo")]
    public partial class CompanyInfoResult {
        
        private string symbolField;
        
        private string companyField;
        
        private string lastPriceField;
        
        private string tradedDateField;
        
        private string tradedTimeField;
        
        private string changeField;
        
        private string changePercentField;
        
        private string volumeField;
        
        private string averageVolumeField;
        
        private string bidField;
        
        private string askField;
        
        private string yesterdayCloseField;
        
        private string openField;
        
        private string yearHighField;
        
        private string yearLowField;
        
        private string dayLowField;
        
        private string dayHighField;
        
        private string earnPerShareField;
        
        private string peField;
        
        private string divDateField;
        
        private string yeildField;
        
        private string divShareField;
        
        private string marketCapField;
        
        /// <remarks/>
        public string symbol {
            get {
                return this.symbolField;
            }
            set {
                this.symbolField = value;
            }
        }
        
        /// <remarks/>
        public string company {
            get {
                return this.companyField;
            }
            set {
                this.companyField = value;
            }
        }
        
        /// <remarks/>
        public string lastPrice {
            get {
                return this.lastPriceField;
            }
            set {
                this.lastPriceField = value;
            }
        }
        
        /// <remarks/>
        public string tradedDate {
            get {
                return this.tradedDateField;
            }
            set {
                this.tradedDateField = value;
            }
        }
        
        /// <remarks/>
        public string tradedTime {
            get {
                return this.tradedTimeField;
            }
            set {
                this.tradedTimeField = value;
            }
        }
        
        /// <remarks/>
        public string change {
            get {
                return this.changeField;
            }
            set {
                this.changeField = value;
            }
        }
        
        /// <remarks/>
        public string changePercent {
            get {
                return this.changePercentField;
            }
            set {
                this.changePercentField = value;
            }
        }
        
        /// <remarks/>
        public string volume {
            get {
                return this.volumeField;
            }
            set {
                this.volumeField = value;
            }
        }
        
        /// <remarks/>
        public string averageVolume {
            get {
                return this.averageVolumeField;
            }
            set {
                this.averageVolumeField = value;
            }
        }
        
        /// <remarks/>
        public string bid {
            get {
                return this.bidField;
            }
            set {
                this.bidField = value;
            }
        }
        
        /// <remarks/>
        public string ask {
            get {
                return this.askField;
            }
            set {
                this.askField = value;
            }
        }
        
        /// <remarks/>
        public string yesterdayClose {
            get {
                return this.yesterdayCloseField;
            }
            set {
                this.yesterdayCloseField = value;
            }
        }
        
        /// <remarks/>
        public string open {
            get {
                return this.openField;
            }
            set {
                this.openField = value;
            }
        }
        
        /// <remarks/>
        public string yearHigh {
            get {
                return this.yearHighField;
            }
            set {
                this.yearHighField = value;
            }
        }
        
        /// <remarks/>
        public string yearLow {
            get {
                return this.yearLowField;
            }
            set {
                this.yearLowField = value;
            }
        }
        
        /// <remarks/>
        public string dayLow {
            get {
                return this.dayLowField;
            }
            set {
                this.dayLowField = value;
            }
        }
        
        /// <remarks/>
        public string dayHigh {
            get {
                return this.dayHighField;
            }
            set {
                this.dayHighField = value;
            }
        }
        
        /// <remarks/>
        public string earnPerShare {
            get {
                return this.earnPerShareField;
            }
            set {
                this.earnPerShareField = value;
            }
        }
        
        /// <remarks/>
        public string PE {
            get {
                return this.peField;
            }
            set {
                this.peField = value;
            }
        }
        
        /// <remarks/>
        public string divDate {
            get {
                return this.divDateField;
            }
            set {
                this.divDateField = value;
            }
        }
        
        /// <remarks/>
        public string yeild {
            get {
                return this.yeildField;
            }
            set {
                this.yeildField = value;
            }
        }
        
        /// <remarks/>
        public string divShare {
            get {
                return this.divShareField;
            }
            set {
                this.divShareField = value;
            }
        }
        
        /// <remarks/>
        public string marketCap {
            get {
                return this.marketCapField;
            }
            set {
                this.marketCapField = value;
            }
        }
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.0.30128.1")]
    public delegate void doCompanyInfoCompletedEventHandler(object sender, doCompanyInfoCompletedEventArgs e);
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.0.30128.1")]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    public partial class doCompanyInfoCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs {
        
        private object[] results;
        
        internal doCompanyInfoCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : 
                base(exception, cancelled, userState) {
            this.results = results;
        }
        
        /// <remarks/>
        public CompanyInfoResult Result {
            get {
                this.RaiseExceptionIfNecessary();
                return ((CompanyInfoResult)(this.results[0]));
            }
        }
    }
}

#pragma warning restore 1591