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); }
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); }
public TCKimlikNoDogrulaRequest(TCKimlikNoDogrulaRequestBody tCKimlikNoDogrulaRequestBody) { this.tCKimlikNoDogrulaRequestBody = tCKimlikNoDogrulaRequestBody; }
public TCKimlikNoDogrulaRequest(TCKimlikNoDogrulaRequestBody Body) { this.Body = Body; }