Beispiel #1
0
        private void button1_Click(object sender, EventArgs e)
        {
            RyanairParameters param = new RyanairParameters();

            param.ADT         = "2";
            param.CHD         = "0";
            param.DateIn      = "2017-08-17";
            param.DateOut     = "2017-08-10";
            param.Destination = "LPA";
            param.Origin      = "KRK";
            param.INF         = "0";
            param.TEEN        = "0";
            param.FlexDaysIn  = "6";
            param.FlexDaysOut = "4";
            param.Exists      = "false";
            param.RoundTrip   = "true";

            RyanairOffert offert = new RyanairOffert(Config.RyanairFlyURL, param);

            _privider = new AirProvider(new System.Net.WebClient(), offert);
            _privider.Get();
        }
Beispiel #2
0
 public RyanairOffert(string offertUrl, RyanairParameters offertParameters)
 {
     OffertUrl   = offertUrl;
     _parameters = offertParameters;
 }