Exemplo n.º 1
0
 public FranceTravel(BookingDatabase bookingDatabase, OysterDatabase oysterDatabase, ShutterStockDatabase shutterDatabase, TripAdvisorDatabase advisorDatabase, Random random)
 {
     this.booking = new BookingIterator(bookingDatabase);
     this.oyster  = new OysterIterator(oysterDatabase);
     this.shutter = new ShutterStockIterator(shutterDatabase);
     this.advisor = new TripAdvisorIterator(advisorDatabase);
     this.random  = random;
 }
Exemplo n.º 2
0
 public FrancePhoto(ShutterStockIterator shutterStock)
 {
     while (this.photo == null)
     {
         if (shutterStock.HasNext)
         {
             PhotMetadata p = shutterStock.GetNext;
             if (p.Longitude >= 0.0 && p.Longitude <= 5.4 && p.Latitude >= 43.6 && p.Latitude <= 50.0)
             {
                 this.photo = p;
             }
         }
         else
         {
             shutterStock.Reset();
         }
     }
 }
Exemplo n.º 3
0
 public PolandPhoto(ShutterStockIterator shutterStock)
 {
     while (this.photo == null)
     {
         if (shutterStock.HasNext)
         {
             PhotMetadata p = shutterStock.GetNext;
             if (p.Longitude >= 14.4 && p.Longitude <= 23.5 && p.Latitude >= 49.8 && p.Latitude <= 54.2)
             {
                 this.photo = p;
             }
         }
         else
         {
             shutterStock.Reset();
         }
     }
 }
Exemplo n.º 4
0
 public ItalyPhoto(ShutterStockIterator shutterStock)
 {
     while (this.photo == null)
     {
         if (shutterStock.HasNext)
         {
             PhotMetadata p = shutterStock.GetNext;
             if (p != null)
             {
                 if (p.Longitude >= 8.8 && p.Longitude <= 15.2 && p.Latitude >= 37.7 && p.Latitude <= 44.0)
                 {
                     this.photo = p;
                 }
             }
         }
         else
         {
             shutterStock.Reset();
         }
     }
 }