You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

298 lines
11 KiB
C#

//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------
namespace UserInfoServices
{
using System.Runtime.Serialization;
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Tools.ServiceModel.Svcutil", "2.1.0")]
[System.Runtime.Serialization.DataContractAttribute(Name="userinfo", Namespace="http://schemas.datacontract.org/2004/07/KWERPService.CommServices")]
public partial class userinfo : object
{
private string addressField;
private string branchField;
private string contactInfoField;
private System.DateTime creationDateField;
private System.DateTime editDateField;
private string fullNameField;
private string passField;
private int userlvlField;
private string usernameField;
[System.Runtime.Serialization.DataMemberAttribute()]
public string address
{
get
{
return this.addressField;
}
set
{
this.addressField = value;
}
}
[System.Runtime.Serialization.DataMemberAttribute()]
public string branch
{
get
{
return this.branchField;
}
set
{
this.branchField = value;
}
}
[System.Runtime.Serialization.DataMemberAttribute()]
public string contactInfo
{
get
{
return this.contactInfoField;
}
set
{
this.contactInfoField = value;
}
}
[System.Runtime.Serialization.DataMemberAttribute()]
public System.DateTime creationDate
{
get
{
return this.creationDateField;
}
set
{
this.creationDateField = value;
}
}
[System.Runtime.Serialization.DataMemberAttribute()]
public System.DateTime editDate
{
get
{
return this.editDateField;
}
set
{
this.editDateField = value;
}
}
[System.Runtime.Serialization.DataMemberAttribute()]
public string fullName
{
get
{
return this.fullNameField;
}
set
{
this.fullNameField = value;
}
}
[System.Runtime.Serialization.DataMemberAttribute()]
public string pass
{
get
{
return this.passField;
}
set
{
this.passField = value;
}
}
[System.Runtime.Serialization.DataMemberAttribute()]
public int userlvl
{
get
{
return this.userlvlField;
}
set
{
this.userlvlField = value;
}
}
[System.Runtime.Serialization.DataMemberAttribute()]
public string username
{
get
{
return this.usernameField;
}
set
{
this.usernameField = value;
}
}
}
[System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Tools.ServiceModel.Svcutil", "2.1.0")]
[System.ServiceModel.ServiceContractAttribute(ConfigurationName="UserInfoServices.IUserInfoService")]
public interface IUserInfoService
{
[System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/IUserInfoService/TestCall", ReplyAction="http://tempuri.org/IUserInfoService/TestCallResponse")]
System.Threading.Tasks.Task<string> TestCallAsync();
[System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/IUserInfoService/AuthenticateUser", ReplyAction="http://tempuri.org/IUserInfoService/AuthenticateUserResponse")]
System.Threading.Tasks.Task<UserInfoServices.userinfo> AuthenticateUserAsync(UserInfoServices.userinfo userAttemptingToLogin);
[System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/IUserInfoService/GetUserInfoByUsername", ReplyAction="http://tempuri.org/IUserInfoService/GetUserInfoByUsernameResponse")]
System.Threading.Tasks.Task<UserInfoServices.userinfo> GetUserInfoByUsernameAsync(string username);
[System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/IUserInfoService/GetData", ReplyAction="http://tempuri.org/IUserInfoService/GetDataResponse")]
System.Threading.Tasks.Task<UserInfoServices.userinfo[]> GetDataAsync();
[System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/IUserInfoService/md5Encoding", ReplyAction="http://tempuri.org/IUserInfoService/md5EncodingResponse")]
System.Threading.Tasks.Task<string> md5EncodingAsync(string originalPassword);
}
[System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Tools.ServiceModel.Svcutil", "2.1.0")]
public interface IUserInfoServiceChannel : UserInfoServices.IUserInfoService, System.ServiceModel.IClientChannel
{
}
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Tools.ServiceModel.Svcutil", "2.1.0")]
public partial class UserInfoServiceClient : System.ServiceModel.ClientBase<UserInfoServices.IUserInfoService>, UserInfoServices.IUserInfoService
{
/// <summary>
/// Implement this partial method to configure the service endpoint.
/// </summary>
/// <param name="serviceEndpoint">The endpoint to configure</param>
/// <param name="clientCredentials">The client credentials</param>
static partial void ConfigureEndpoint(System.ServiceModel.Description.ServiceEndpoint serviceEndpoint, System.ServiceModel.Description.ClientCredentials clientCredentials);
public UserInfoServiceClient() :
base(UserInfoServiceClient.GetDefaultBinding(), UserInfoServiceClient.GetDefaultEndpointAddress())
{
this.Endpoint.Name = EndpointConfiguration.BasicHttpBinding_IUserInfoService.ToString();
ConfigureEndpoint(this.Endpoint, this.ClientCredentials);
}
public UserInfoServiceClient(EndpointConfiguration endpointConfiguration) :
base(UserInfoServiceClient.GetBindingForEndpoint(endpointConfiguration), UserInfoServiceClient.GetEndpointAddress(endpointConfiguration))
{
this.Endpoint.Name = endpointConfiguration.ToString();
ConfigureEndpoint(this.Endpoint, this.ClientCredentials);
}
public UserInfoServiceClient(EndpointConfiguration endpointConfiguration, string remoteAddress) :
base(UserInfoServiceClient.GetBindingForEndpoint(endpointConfiguration), new System.ServiceModel.EndpointAddress(remoteAddress))
{
this.Endpoint.Name = endpointConfiguration.ToString();
ConfigureEndpoint(this.Endpoint, this.ClientCredentials);
}
public UserInfoServiceClient(EndpointConfiguration endpointConfiguration, System.ServiceModel.EndpointAddress remoteAddress) :
base(UserInfoServiceClient.GetBindingForEndpoint(endpointConfiguration), remoteAddress)
{
this.Endpoint.Name = endpointConfiguration.ToString();
ConfigureEndpoint(this.Endpoint, this.ClientCredentials);
}
public UserInfoServiceClient(System.ServiceModel.Channels.Binding binding, System.ServiceModel.EndpointAddress remoteAddress) :
base(binding, remoteAddress)
{
}
public System.Threading.Tasks.Task<string> TestCallAsync()
{
return base.Channel.TestCallAsync();
}
public System.Threading.Tasks.Task<UserInfoServices.userinfo> AuthenticateUserAsync(UserInfoServices.userinfo userAttemptingToLogin)
{
return base.Channel.AuthenticateUserAsync(userAttemptingToLogin);
}
public System.Threading.Tasks.Task<UserInfoServices.userinfo> GetUserInfoByUsernameAsync(string username)
{
return base.Channel.GetUserInfoByUsernameAsync(username);
}
public System.Threading.Tasks.Task<UserInfoServices.userinfo[]> GetDataAsync()
{
return base.Channel.GetDataAsync();
}
public System.Threading.Tasks.Task<string> md5EncodingAsync(string originalPassword)
{
return base.Channel.md5EncodingAsync(originalPassword);
}
public virtual System.Threading.Tasks.Task OpenAsync()
{
return System.Threading.Tasks.Task.Factory.FromAsync(((System.ServiceModel.ICommunicationObject)(this)).BeginOpen(null, null), new System.Action<System.IAsyncResult>(((System.ServiceModel.ICommunicationObject)(this)).EndOpen));
}
private static System.ServiceModel.Channels.Binding GetBindingForEndpoint(EndpointConfiguration endpointConfiguration)
{
if ((endpointConfiguration == EndpointConfiguration.BasicHttpBinding_IUserInfoService))
{
System.ServiceModel.BasicHttpBinding result = new System.ServiceModel.BasicHttpBinding();
result.MaxBufferSize = int.MaxValue;
result.ReaderQuotas = System.Xml.XmlDictionaryReaderQuotas.Max;
result.MaxReceivedMessageSize = int.MaxValue;
result.AllowCookies = true;
return result;
}
throw new System.InvalidOperationException(string.Format("Could not find endpoint with name \'{0}\'.", endpointConfiguration));
}
private static System.ServiceModel.EndpointAddress GetEndpointAddress(EndpointConfiguration endpointConfiguration)
{
if ((endpointConfiguration == EndpointConfiguration.BasicHttpBinding_IUserInfoService))
{
return new System.ServiceModel.EndpointAddress("http://kwapp-srv/CommServices/UserInfoService.svc");
}
throw new System.InvalidOperationException(string.Format("Could not find endpoint with name \'{0}\'.", endpointConfiguration));
}
private static System.ServiceModel.Channels.Binding GetDefaultBinding()
{
return UserInfoServiceClient.GetBindingForEndpoint(EndpointConfiguration.BasicHttpBinding_IUserInfoService);
}
private static System.ServiceModel.EndpointAddress GetDefaultEndpointAddress()
{
return UserInfoServiceClient.GetEndpointAddress(EndpointConfiguration.BasicHttpBinding_IUserInfoService);
}
public enum EndpointConfiguration
{
BasicHttpBinding_IUserInfoService,
}
}
}