Exemplo n.º 1
0
        public bool CheckPerson(Gamer gamer)
        {
            KPSPublicSoapClient client = new KPSPublicSoapClient(KPSPublicSoapClient.EndpointConfiguration.KPSPublicSoap);

            return(client.TCKimlikNoDogrulaAsync(
                       new TCKimlikNoDogrulaRequest
                           (new TCKimlikNoDogrulaRequestBody(Convert.ToInt64(gamer.NationalityId), gamer.FirstName, gamer.LastName, gamer.DateOfBirth.Year)))
                   .Result.Body.TCKimlikNoDogrulaResult);
        }
        public bool Validate(User user)
        {
            KPSPublicSoapClient client = new KPSPublicSoapClient(KPSPublicSoapClient.EndpointConfiguration.KPSPublicSoap);

            return(client.TCKimlikNoDogrulaAsync
                       (new TCKimlikNoDogrulaRequest
                           (new TCKimlikNoDogrulaRequestBody(user.IdentityNumber,
                                                             user.FirstName.ToUpper(), user.LastName.ToUpper(), user.BirthYear))).Result.Body.TCKimlikNoDogrulaResult);
        }
Exemplo n.º 3
0
 public bool Validate(Gamer gamer)
 {
     MernisServiceReference.KPSPublicSoapClient client = new KPSPublicSoapClient
                                                             (KPSPublicSoapClient.EndpointConfiguration.KPSPublicSoap);
     return(client.TCKimlikNoDogrulaAsync
                (new TCKimlikNoDogrulaRequest
                    (new TCKimlikNoDogrulaRequestBody(Convert.ToInt64(gamer.IdentityNumber),
                                                      gamer.FirstName.ToUpper(),
                                                      gamer.LastName.ToUpper(), gamer.DateOfBirth.Year))).Result.Body.TCKimlikNoDogrulaResult);
 }
Exemplo n.º 4
0
        public bool CheckIfRealPerson(Gamer gamer)
        {
            KPSPublicSoapClient kPSPublicSoapClient = new KPSPublicSoapClient(KPSPublicSoapClient.EndpointConfiguration.KPSPublicSoap12);
            var result = kPSPublicSoapClient.TCKimlikNoDogrulaAsync(
                Convert.ToInt64(gamer.NationalityId),
                gamer.FirstName.ToUpper(),
                gamer.LastName.ToUpper(),
                gamer.DateOfBirth.Year);

            return(result.Result.Body.TCKimlikNoDogrulaResult);
        }
Exemplo n.º 5
0
        public bool ChechIsRealPerson(Gamer gamer)
        {
            KPSPublicSoapClient client = new KPSPublicSoapClient();

            return(client.TCKimlikNoDogrulaAsync(gamer.NationalityId, gamer.FirstName.ToUpper(), gamer.LastName.ToUpper(), gamer.DateOfBirth.Year));
        }
Exemplo n.º 6
0
        public bool CheckIfRealPerson(Player player)
        {
            KPSPublicSoapClient client = new KPSPublicSoapClient(KPSPublicSoapClient.EndpointConfiguration.KPSPublicSoap);

            return(client.TCKimlikNoDogrulaAsync(player.nationalityId, player.firstName.ToUpper(), player.lastName.ToUpper(), player.dateYear).Result.Body.TCKimlikNoDogrulaResult);
        }
Exemplo n.º 7
0
        public bool Validate(Gamer gamer)
        {
            KPSPublicSoapClient client = new KPSPublicSoapClient(KPSPublicSoapClient.EndpointConfiguration.KPSPublicSoap);

            return(client.TCKimlikNoDogrulaAsync(gamer.NationalityId, gamer.FirstName.ToUpper(), gamer.LastName.ToUpper(), gamer.BirthDate.Year).Result.Body.TCKimlikNoDogrulaResult);
        }