Beispiel #1
0
        public bool GamerCheck(Gamer gamer)
        {
            KPSPublicSoapClient client = new KPSPublicSoapClient(KPSPublicSoapClient.EndpointConfiguration.KPSPublicSoap);

            TCKimlikNoDogrulaRequestBody body = new TCKimlikNoDogrulaRequestBody(
                (Convert.ToInt64(gamer.TcNo)),
                gamer.FirstName.ToUpper(),
                gamer.LastName.ToUpper(),
                gamer.DateOfBirth.Year);
            TCKimlikNoDogrulaRequest req = new TCKimlikNoDogrulaRequest(body);

            return(client.TCKimlikNoDogrulaAsync(req).Result.Body.TCKimlikNoDogrulaResult);
        }
Beispiel #2
0
        public bool CheckIfRealPerson(Oyuncu oyuncu)
        {
            //KPSPublicSoapClient client = new KPSPublicSoapClient();
            //client.TCKimlikNoDogrulaAsync(oyuncu.TC, oyuncu.Name, oyuncu.Surname, oyuncu.Dogum);
            // return client.TCKimlikNoDogrulaAsync(oyuncu.TC, oyuncu.Name, oyuncu.Surname, oyuncu.Dogum);
            TCKimlikNoDogrulaRequestBody client  = new TCKimlikNoDogrulaRequestBody();
            TCKimlikNoDogrulaRequest     request = new TCKimlikNoDogrulaRequest();

            client.Ad         = oyuncu.Name;
            client.Soyad      = oyuncu.Surname;
            client.TCKimlikNo = oyuncu.TC;
            request.Body      = client;

            return(true);
        }
Beispiel #3
0
 public TCKimlikNoDogrulaRequest(TCKimlikNoDogrulaRequestBody tCKimlikNoDogrulaRequestBody)
 {
     this.tCKimlikNoDogrulaRequestBody = tCKimlikNoDogrulaRequestBody;
 }
Beispiel #4
0
 public TCKimlikNoDogrulaRequest(TCKimlikNoDogrulaRequestBody Body)
 {
     this.Body = Body;
 }