












[System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.0.30319.33440")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(Namespace="http://web.service.evote.no/")]
public partial class UnknownHostException
{
    
    private string messageField;
    
    
    [System.Xml.Serialization.XmlElementAttribute(Form=System.Xml.Schema.XmlSchemaForm.Unqualified, Order=0)]
    public string message
    {
        get
        {
            return this.messageField;
        }
        set
        {
            this.messageField = value;
        }
    }
}


[System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.0.30319.33440")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(Namespace="http://web.service.evote.no/")]
public partial class evoteWsFault
{
    
    private string faultCodeField;
    
    private string faultStringField;
    
    
    [System.Xml.Serialization.XmlElementAttribute(Form=System.Xml.Schema.XmlSchemaForm.Unqualified, Order=0)]
    public string faultCode
    {
        get
        {
            return this.faultCodeField;
        }
        set
        {
            this.faultCodeField = value;
        }
    }
    
    
    [System.Xml.Serialization.XmlElementAttribute(Form=System.Xml.Schema.XmlSchemaForm.Unqualified, Order=1)]
    public string faultString
    {
        get
        {
            return this.faultStringField;
        }
        set
        {
            this.faultStringField = value;
        }
    }
}

[System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")]
[System.ServiceModel.ServiceContractAttribute(Namespace="http://web.service.evote.no/", ConfigurationName="GenericFileUploadWS")]
public interface GenericFileUploadWS
{
    
    [System.ServiceModel.OperationContractAttribute(Action="", ReplyAction="*")]
    [System.ServiceModel.FaultContractAttribute(typeof(UnknownHostException), Action="", Name="UnknownHostException")]
    [System.ServiceModel.FaultContractAttribute(typeof(evoteWsFault), Action="", Name="EvoteWsFault")]
    [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults=true)]
    checkStatusResponse checkStatus(checkStatus request);
    
    [System.ServiceModel.OperationContractAttribute(Action="", ReplyAction="*")]
    System.Threading.Tasks.Task<checkStatusResponse> checkStatusAsync(checkStatus request);
    
    [System.ServiceModel.OperationContractAttribute(Action="", ReplyAction="*")]
    [System.ServiceModel.FaultContractAttribute(typeof(UnknownHostException), Action="", Name="UnknownHostException")]
    [System.ServiceModel.FaultContractAttribute(typeof(evoteWsFault), Action="", Name="EvoteWsFault")]
    [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults=true)]
    uploadFileResponse uploadFile(uploadFile request);
    
    [System.ServiceModel.OperationContractAttribute(Action="", ReplyAction="*")]
    System.Threading.Tasks.Task<uploadFileResponse> uploadFileAsync(uploadFile request);
}

[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")]
[System.ServiceModel.MessageContractAttribute(WrapperName="checkStatus", WrapperNamespace="http://web.service.evote.no/", IsWrapped=true)]
public partial class checkStatus
{
    
    [System.ServiceModel.MessageBodyMemberAttribute(Namespace="http://web.service.evote.no/", Order=0)]
    [System.Xml.Serialization.XmlElementAttribute(Form=System.Xml.Schema.XmlSchemaForm.Unqualified)]
    public long batchId;
    
    public checkStatus()
    {
    }
    
    public checkStatus(long batchId)
    {
        this.batchId = batchId;
    }
}

[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")]
[System.ServiceModel.MessageContractAttribute(WrapperName="checkStatusResponse", WrapperNamespace="http://web.service.evote.no/", IsWrapped=true)]
public partial class checkStatusResponse
{
    
    [System.ServiceModel.MessageBodyMemberAttribute(Namespace="http://web.service.evote.no/", Order=0)]
    [System.Xml.Serialization.XmlElementAttribute(Form=System.Xml.Schema.XmlSchemaForm.Unqualified)]
    public int status;
    
    public checkStatusResponse()
    {
    }
    
    public checkStatusResponse(int status)
    {
        this.status = status;
    }
}

[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")]
[System.ServiceModel.MessageContractAttribute(WrapperName="uploadFile", WrapperNamespace="http://web.service.evote.no/", IsWrapped=true)]
public partial class uploadFile
{
    
    [System.ServiceModel.MessageBodyMemberAttribute(Namespace="http://web.service.evote.no/", Order=0)]
    [System.Xml.Serialization.XmlElementAttribute(Form=System.Xml.Schema.XmlSchemaForm.Unqualified, DataType="base64Binary")]
    public byte[] token;
    
    [System.ServiceModel.MessageBodyMemberAttribute(Namespace="http://web.service.evote.no/", Order=1)]
    [System.Xml.Serialization.XmlElementAttribute(Form=System.Xml.Schema.XmlSchemaForm.Unqualified)]
    public string userId;
    
    [System.ServiceModel.MessageBodyMemberAttribute(Namespace="http://web.service.evote.no/", Order=2)]
    [System.Xml.Serialization.XmlElementAttribute(Form=System.Xml.Schema.XmlSchemaForm.Unqualified)]
    public string roleId;
    
    [System.ServiceModel.MessageBodyMemberAttribute(Namespace="http://web.service.evote.no/", Order=3)]
    [System.Xml.Serialization.XmlElementAttribute(Form=System.Xml.Schema.XmlSchemaForm.Unqualified)]
    public string areaPath;
    
    [System.ServiceModel.MessageBodyMemberAttribute(Namespace="http://web.service.evote.no/", Order=4)]
    [System.Xml.Serialization.XmlElementAttribute(Form=System.Xml.Schema.XmlSchemaForm.Unqualified)]
    public string electionPath;
    
    [System.ServiceModel.MessageBodyMemberAttribute(Namespace="http://web.service.evote.no/", Order=5)]
    [System.Xml.Serialization.XmlElementAttribute(Form=System.Xml.Schema.XmlSchemaForm.Unqualified, DataType="base64Binary")]
    public byte[] file;
    
    [System.ServiceModel.MessageBodyMemberAttribute(Namespace="http://web.service.evote.no/", Order=6)]
    [System.Xml.Serialization.XmlElementAttribute(Form=System.Xml.Schema.XmlSchemaForm.Unqualified)]
    public string access;
    
    public uploadFile()
    {
    }
    
    public uploadFile(byte[] token, string userId, string roleId, string areaPath, string electionPath, byte[] file, string access)
    {
        this.token = token;
        this.userId = userId;
        this.roleId = roleId;
        this.areaPath = areaPath;
        this.electionPath = electionPath;
        this.file = file;
        this.access = access;
    }
}

[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")]
[System.ServiceModel.MessageContractAttribute(WrapperName="uploadFileResponse", WrapperNamespace="http://web.service.evote.no/", IsWrapped=true)]
public partial class uploadFileResponse
{
    
    [System.ServiceModel.MessageBodyMemberAttribute(Namespace="http://web.service.evote.no/", Order=0)]
    [System.Xml.Serialization.XmlElementAttribute(Form=System.Xml.Schema.XmlSchemaForm.Unqualified)]
    public long fileId;
    
    public uploadFileResponse()
    {
    }
    
    public uploadFileResponse(long fileId)
    {
        this.fileId = fileId;
    }
}

[System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")]
public interface GenericFileUploadWSChannel : GenericFileUploadWS, System.ServiceModel.IClientChannel
{
}

[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")]
public partial class GenericFileUploadWSClient : System.ServiceModel.ClientBase<GenericFileUploadWS>, GenericFileUploadWS
{
    
    public GenericFileUploadWSClient()
    {
    }
    
    public GenericFileUploadWSClient(string endpointConfigurationName) : 
            base(endpointConfigurationName)
    {
    }
    
    public GenericFileUploadWSClient(string endpointConfigurationName, string remoteAddress) : 
            base(endpointConfigurationName, remoteAddress)
    {
    }
    
    public GenericFileUploadWSClient(string endpointConfigurationName, System.ServiceModel.EndpointAddress remoteAddress) : 
            base(endpointConfigurationName, remoteAddress)
    {
    }
    
    public GenericFileUploadWSClient(System.ServiceModel.Channels.Binding binding, System.ServiceModel.EndpointAddress remoteAddress) : 
            base(binding, remoteAddress)
    {
    }
    
    public checkStatusResponse checkStatus(checkStatus request)
    {
        return base.Channel.checkStatus(request);
    }
    
    public System.Threading.Tasks.Task<checkStatusResponse> checkStatusAsync(checkStatus request)
    {
        return base.Channel.checkStatusAsync(request);
    }
    
    public uploadFileResponse uploadFile(uploadFile request)
    {
        return base.Channel.uploadFile(request);
    }
    
    public System.Threading.Tasks.Task<uploadFileResponse> uploadFileAsync(uploadFile request)
    {
        return base.Channel.uploadFileAsync(request);
    }
}

