2020-09-02 10:49:09 +00:00
|
|
|
|
using System;
|
|
|
|
|
using System.Threading.Tasks;
|
|
|
|
|
|
|
|
|
|
namespace FlightLoggerLib
|
|
|
|
|
{
|
|
|
|
|
public class FlightPosition
|
|
|
|
|
{
|
|
|
|
|
public float Latitude { get; set; }
|
|
|
|
|
public float Longitude { get; set; }
|
|
|
|
|
public float Altitude { get; set; }
|
|
|
|
|
public float Airspeed { get; set; }
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-09-09 19:20:42 +00:00
|
|
|
|
public interface IFlightLogger : IAsyncDisposable
|
2020-09-02 10:49:09 +00:00
|
|
|
|
{
|
2020-09-09 19:20:42 +00:00
|
|
|
|
Task NewLog();
|
2020-09-02 10:49:09 +00:00
|
|
|
|
Task LogPosition(DateTime eventTime, FlightPosition position);
|
|
|
|
|
//void LogEvent
|
|
|
|
|
}
|
|
|
|
|
}
|