//------------------------------------------------------------------------------
// <autogenerated>
//     This code was generated by a tool.
//     Runtime Version: 1.1.4322.2032
//
//     Changes to this file may cause incorrect behavior and will be lost if 
//     the code is regenerated.
// </autogenerated>
//------------------------------------------------------------------------------

// 
// This source code was auto-generated by Microsoft.VSDesigner, Version 1.1.4322.2032.
// 
namespace Orciid.Core.localhost {
    using System.Diagnostics;
    using System.Xml.Serialization;
    using System;
    using System.Web.Services.Protocols;
    using System.ComponentModel;
    using System.Web.Services;
    
    
    /// <remarks/>
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Web.Services.WebServiceBindingAttribute(Name="RemoteCollectionServiceSoap", Namespace="http://tempuri.org/")]
    public class RemoteCollectionService : System.Web.Services.Protocols.SoapHttpClientProtocol {
        
        /// <remarks/>
        public RemoteCollectionService() {
            this.Url = "http://localhost/orciid/WebServices/RemoteCollection.asmx";
        }
        
        /// <remarks/>
        [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://tempuri.org/Login", RequestNamespace="http://tempuri.org/", ResponseNamespace="http://tempuri.org/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
        public bool Login(string login, string pwd, int cid) {
            object[] results = this.Invoke("Login", new object[] {
                        login,
                        pwd,
                        cid});
            return ((bool)(results[0]));
        }
        
        /// <remarks/>
        public System.IAsyncResult BeginLogin(string login, string pwd, int cid, System.AsyncCallback callback, object asyncState) {
            return this.BeginInvoke("Login", new object[] {
                        login,
                        pwd,
                        cid}, callback, asyncState);
        }
        
        /// <remarks/>
        public bool EndLogin(System.IAsyncResult asyncResult) {
            object[] results = this.EndInvoke(asyncResult);
            return ((bool)(results[0]));
        }
        
        /// <remarks/>
        [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://tempuri.org/GetCollectionInfo", RequestNamespace="http://tempuri.org/", ResponseNamespace="http://tempuri.org/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
        public CollectionInfo GetCollectionInfo() {
            object[] results = this.Invoke("GetCollectionInfo", new object[0]);
            return ((CollectionInfo)(results[0]));
        }
        
        /// <remarks/>
        public System.IAsyncResult BeginGetCollectionInfo(System.AsyncCallback callback, object asyncState) {
            return this.BeginInvoke("GetCollectionInfo", new object[0], callback, asyncState);
        }
        
        /// <remarks/>
        public CollectionInfo EndGetCollectionInfo(System.IAsyncResult asyncResult) {
            object[] results = this.EndInvoke(asyncResult);
            return ((CollectionInfo)(results[0]));
        }
        
        /// <remarks/>
        [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://tempuri.org/GetImageCount", RequestNamespace="http://tempuri.org/", ResponseNamespace="http://tempuri.org/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
        public int GetImageCount() {
            object[] results = this.Invoke("GetImageCount", new object[0]);
            return ((int)(results[0]));
        }
        
        /// <remarks/>
        public System.IAsyncResult BeginGetImageCount(System.AsyncCallback callback, object asyncState) {
            return this.BeginInvoke("GetImageCount", new object[0], callback, asyncState);
        }
        
        /// <remarks/>
        public int EndGetImageCount(System.IAsyncResult asyncResult) {
            object[] results = this.EndInvoke(asyncResult);
            return ((int)(results[0]));
        }
        
        /// <remarks/>
        [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://tempuri.org/Search", RequestNamespace="http://tempuri.org/", ResponseNamespace="http://tempuri.org/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
        public string[] Search(string searchconditions) {
            object[] results = this.Invoke("Search", new object[] {
                        searchconditions});
            return ((string[])(results[0]));
        }
        
        /// <remarks/>
        public System.IAsyncResult BeginSearch(string searchconditions, System.AsyncCallback callback, object asyncState) {
            return this.BeginInvoke("Search", new object[] {
                        searchconditions}, callback, asyncState);
        }
        
        /// <remarks/>
        public string[] EndSearch(System.IAsyncResult asyncResult) {
            object[] results = this.EndInvoke(asyncResult);
            return ((string[])(results[0]));
        }
        
        /// <remarks/>
        [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://tempuri.org/GetImageInfo", RequestNamespace="http://tempuri.org/", ResponseNamespace="http://tempuri.org/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
        [return: System.Xml.Serialization.XmlArrayItemAttribute(IsNullable=false)]
        public ImageInfo[] GetImageInfo(string[] ids) {
            object[] results = this.Invoke("GetImageInfo", new object[] {
                        ids});
            return ((ImageInfo[])(results[0]));
        }
        
        /// <remarks/>
        public System.IAsyncResult BeginGetImageInfo(string[] ids, System.AsyncCallback callback, object asyncState) {
            return this.BeginInvoke("GetImageInfo", new object[] {
                        ids}, callback, asyncState);
        }
        
        /// <remarks/>
        public ImageInfo[] EndGetImageInfo(System.IAsyncResult asyncResult) {
            object[] results = this.EndInvoke(asyncResult);
            return ((ImageInfo[])(results[0]));
        }
    }
    
    /// <remarks/>
    [System.Xml.Serialization.XmlTypeAttribute(Namespace="http://tempuri.org/")]
    public class CollectionInfo {
        
        /// <remarks/>
        public string title;
        
        /// <remarks/>
        public string description;
        
        /// <remarks/>
        public string usageagreement;
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("field")]
        public FieldInfo[] field;
    }
    
    /// <remarks/>
    [System.Xml.Serialization.XmlTypeAttribute(Namespace="http://tempuri.org/")]
    public class FieldInfo {
        
        /// <remarks/>
        public string label;
        
        /// <remarks/>
        public string name;
        
        /// <remarks/>
        public int type;
        
        /// <remarks/>
        public string dcelement;
        
        /// <remarks/>
        public string dcrefinement;
        
        /// <remarks/>
        public bool searchable;
        
        /// <remarks/>
        public bool keywordsearchable;
        
        /// <remarks/>
        public bool sortable;
        
        /// <remarks/>
        public bool browsable;
        
        /// <remarks/>
        public int shortview;
        
        /// <remarks/>
        public int mediumview;
        
        /// <remarks/>
        public int longview;
    }
    
    /// <remarks/>
    [System.Xml.Serialization.XmlTypeAttribute(Namespace="http://tempuri.org/")]
    public class FieldDataInfo {
        
        /// <remarks/>
        [System.Xml.Serialization.XmlAttributeAttribute()]
        public string field;
        
        /// <remarks/>
        [System.Xml.Serialization.XmlTextAttribute()]
        public string Value;
    }
    
    /// <remarks/>
    [System.Xml.Serialization.XmlTypeAttribute(Namespace="http://tempuri.org/")]
    public class ImageInfo {
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("fielddata")]
        public FieldDataInfo[] fielddata;
        
        /// <remarks/>
        [System.Xml.Serialization.XmlAttributeAttribute()]
        public string id;
        
        /// <remarks/>
        [System.Xml.Serialization.XmlAttributeAttribute()]
        public System.DateTime created;
        
        /// <remarks/>
        [System.Xml.Serialization.XmlAttributeAttribute()]
        public System.DateTime modified;
        
        /// <remarks/>
        [System.Xml.Serialization.XmlAttributeAttribute()]
        public System.DateTime cacheuntil;
        
        /// <remarks/>
        [System.Xml.Serialization.XmlAttributeAttribute()]
        public System.DateTime expire;
        
        /// <remarks/>
        [System.Xml.Serialization.XmlAttributeAttribute()]
        public System.DateTime filedate;
    }
}
