.NET Client for downloading and checking results of Milli Piyango Lotteries (Turkey’s National Lottery Administration).
var milliPiyangonClient = new MilliPiyangoApiClient();
var onNumaraResult = milliPiyangonClient.OnNumara.GetResult(new DateTime(2018, 10, 15));
var milliPiyangonClient = new MilliPiyangoApiClient();
var onNumaraResult = milliPiyangonClient.OnNumara.GetResult(new DateTime(2018, 10, 15), "onnumara-20181015.json");
var milliPiyangonClient = new MilliPiyangoApiClient();
var onNumaraResult = milliPiyangonClient.GetResultFromFile<LotoResult>("onnumara-20181015.json");
Download result once and check many guesses
var milliPiyangonClient = new MilliPiyangoApiClient();
var onNumaraResult = milliPiyangonClient.OnNumara.GetResult(new DateTime(2018, 10, 15));
var onNumaraPrize = milliPiyangonClient.OnNumara.GetPrize(onNumaraResult, new OnNumaraGuess(new List<int> { 1, 8, 14, 24, 25, 35, 41, 9, 10, 11 }));
You can use the GetPrize extension without passing Result object. (Downloads the result each time you call this function)
var milliPiyangonClient = new MilliPiyangoApiClient();
var onNumaraPrize = milliPiyangonClient.OnNumara.GetPrize(new DateTime(2018, 10, 15), new OnNumaraGuess(new List<int> { 1, 8, 14, 24, 25, 35, 41, 9, 10, 11 }));