Exemplo n.º 1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="Wind"/> class.
 /// </summary>
 /// <param name="coords">The coordinates of the request.</param>
 /// <param name="altitude">The altitude of the request.</param>
 /// <param name="unit">The unit for the altitude (Imperial/Metric Flight Level/Altitude).</param>
 /// <param name="epoch">The time to request data for.</param>
 private Wind(LatLon coords, int altitude, AltitudeUnit unit, DateTime epoch)
 {
     Coordinates = coords;
     Altitude = altitude;
     Unit = unit;
     Epoch = epoch;
 }
Exemplo n.º 2
0
 private Chart(int width, int height, int level, DateTime epoch, LatLon lowerLeftCoordinates, LatLon upperRightCoordinates)
 {
     Width = width;
     Height = height;
     Level = level;
     Epoch = epoch;
     LowerLeftCoordinates = lowerLeftCoordinates;
     UpperRightCoordinates = upperRightCoordinates;
 }
Exemplo n.º 3
0
 public static Chart For(LatLon lowerLeftCoordinates, LatLon upperRightCoordinates, int level, DateTime epoch, int width, int height)
 {
     return new Chart(width, height, level, epoch, lowerLeftCoordinates, upperRightCoordinates);
 }
Exemplo n.º 4
0
 /// <summary>
 /// Create a TAF request for a specific latitude/longitude.
 /// </summary>
 /// <param name="coords">A LatLon object specifying the coordinates.</param>
 /// <returns>New TAF request object.</returns>
 public static TAF ForCoordinates(LatLon coords)
 {
     return new TAF(coords);
 }
Exemplo n.º 5
0
 private TAF(LatLon coords)
 {
     Coordinates = coords;
 }
Exemplo n.º 6
0
 private Wind(LatLon coords)
 {
     Coordinates = coords;
 }
Exemplo n.º 7
0
 public bool Equals(LatLon other)
 {
     if (ReferenceEquals(null, other)) return false;
     if (ReferenceEquals(this, other)) return true;
     return other.Latitude.Equals(Latitude) && other.Longitude.Equals(Longitude);
 }
Exemplo n.º 8
0
 /// <summary>
 /// Create a METAR request for a specific latitude/longitude.
 /// </summary>
 /// <param name="coords">A LatLon object specifying the coordinates.</param>
 /// <returns>New METAR request object.</returns>
 public static METAR ForCoordinates(LatLon coords)
 {
     return new METAR(coords);
 }
Exemplo n.º 9
0
 private METAR(LatLon coords)
 {
     Coordinates = coords;
 }