Skip to content

Commit

Permalink
introduce altitude and age to satellite response
Browse files Browse the repository at this point in the history
  • Loading branch information
scott-the-programmer committed Jan 10, 2024
1 parent a121a1d commit 73a2b1c
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Satellite.DataAccess/Services/NASASatelliteService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,8 @@ public SatelliteService(ISatelliteClient nasaSatelliteClient, IMemoryCache cache
Name = i.Satname,
Latitude = i.Satlat,
Longitude = i.Satlng,
Altitude = i.Satalt,
Age = i.LaunchDate
};
});

Expand Down
6 changes: 6 additions & 0 deletions Satellite.Models/Satellite.cs
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,12 @@ public class Satellite
[JsonProperty("longitude")]
public float Longitude { get; set; }

[JsonProperty("altitude")]
public float Altitude { get; set; }

[JsonProperty("age")]
public DateTimeOffset Age { get; set; }

}

}

0 comments on commit 73a2b1c

Please sign in to comment.